mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 18:57:17 +00:00
Boundary geom creation : fix math + small ui fix (#1938)
_Neo accidentally took the red pill so I transposed the matrix to make it blue_ * Fix how placement matrix of updated geometry is created. * Fix ui: was throwing an error when boundary had no `RelatedBuildingElement`
This commit is contained in:
@@ -305,6 +305,7 @@ class UpdateBoundaryGeometry(bpy.types.Operator):
|
|||||||
matrix[0].xyz = i
|
matrix[0].xyz = i
|
||||||
matrix[1].xyz = j
|
matrix[1].xyz = j
|
||||||
matrix[2].xyz = k
|
matrix[2].xyz = k
|
||||||
|
matrix.transpose()
|
||||||
matrix.translation = location
|
matrix.translation = location
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@@ -145,6 +145,10 @@ class BIM_PT_SpaceBoundaries(Panel):
|
|||||||
boundary_data = Data.boundaries[boundary_id]
|
boundary_data = Data.boundaries[boundary_id]
|
||||||
building_element = self.ifc_file.by_id(boundary_data["RelatedBuildingElement"])
|
building_element = self.ifc_file.by_id(boundary_data["RelatedBuildingElement"])
|
||||||
row = self.layout.row()
|
row = self.layout.row()
|
||||||
row.label(text=f"{boundary_id} > {building_element.is_a()}/{building_element.Name}", icon="GHOST_ENABLED")
|
if building_element:
|
||||||
|
bld_el_description = f"{building_element.is_a()}/{building_element.Name}"
|
||||||
|
else:
|
||||||
|
bld_el_description = None
|
||||||
|
row.label(text=f"{boundary_id} > {bld_el_description}", icon="GHOST_ENABLED")
|
||||||
op = row.operator("bim.load_boundary", text="", icon="RESTRICT_SELECT_OFF")
|
op = row.operator("bim.load_boundary", text="", icon="RESTRICT_SELECT_OFF")
|
||||||
op.boundary_id = boundary_id
|
op.boundary_id = boundary_id
|
||||||
|
|||||||
Reference in New Issue
Block a user