mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-16 21:42:19 +00:00
get_mappeditem_transformation()
This commit is contained in:
@@ -91,6 +91,11 @@ def get_cartesiantransformationoperator3d(inst):
|
|||||||
return m4
|
return m4
|
||||||
|
|
||||||
|
|
||||||
|
def get_mappeditem_transformation(item):
|
||||||
|
m4 = ifcopenshell.util.placement.get_axis2placement(item.MappingSource.MappingOrigin)
|
||||||
|
return get_cartesiantransformationoperator(item.MappingTarget) @ m4
|
||||||
|
|
||||||
|
|
||||||
def get_storey_elevation(storey):
|
def get_storey_elevation(storey):
|
||||||
if storey.ObjectPlacement:
|
if storey.ObjectPlacement:
|
||||||
matrix = get_local_placement(storey.ObjectPlacement)
|
matrix = get_local_placement(storey.ObjectPlacement)
|
||||||
|
|||||||
Reference in New Issue
Block a user