yorikvanhavre / FreeCAD-NativeIFC

A FreeCAD module to work with IFC files natively
GNU General Public License v3.0
66 stars 12 forks source link

Link placements #38

Closed yorikvanhavre closed 1 year ago

yorikvanhavre commented 1 year ago

Link FreeCAD placements to underlying IFC placements. We need the following functionality:

IfcOpenShell related structures: https://blenderbim.org/docs-python/autoapi/ifcopenshell/util/placement/index.html https://blenderbim.org/docs-python/autoapi/ifcopenshell/api/geometry/edit_object_placement/index.html

yorikvanhavre commented 1 year ago

Interesting discussion linked to this: https://github.com/yorikvanhavre/FreeCAD-NativeIFC/issues/14 Basically we can consider the global/local placement issue as handled internally by IfcOpenShell and just concentrate on what we are showing the user, that is, the final position of the object.

yorikvanhavre commented 1 year ago

This contains good examples: https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.7.0/src/ifcopenshell-python/test/api/geometry/test_edit_object_placement.py