WIP you can now partially edit the object placement of an object. See #1222.

This commit is contained in:
Dion Moult
2021-01-02 19:33:32 +11:00
parent 0ecf66f7fa
commit a997b2f999
4 changed files with 86 additions and 14 deletions
@@ -13,6 +13,7 @@ import ifcopenshell.util.geolocation
import ifcopenshell.util.element
import ifcopenshell.util.schema
import tempfile
import numpy as np
from . import export_ifc
from . import import_ifc
from . import qto
@@ -4351,6 +4352,13 @@ class BakeParametricGeometry(bpy.types.Operator):
self.file = ifc.IfcStore.get_file()
element = self.file.by_id(obj.data.BIMMeshProperties.ifc_definition_id)
import blenderbim.bim.module.geometry.add_object_placement as add_object_placement
usecase = add_object_placement.Usecase(self.file, {
"product": self.file.by_id(obj.BIMObjectProperties.ifc_definition_id),
"matrix": np.array(obj.matrix_world)
})
result = usecase.execute()
import blenderbim.bim.module.geometry.add_shape_representation as add_shape_representation
usecase = add_shape_representation.Usecase(self.file, {
"context": element.ContextOfItems,