MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_x_angle

Function get_x_angle

src/bonsai/bonsai/bim/handler.py:156–159  ·  view source on GitHub ↗
(extrusion: ifcopenshell.entity_instance)

Source from the content-addressed store, hash-verified

154 return
155
156 def get_x_angle(extrusion: ifcopenshell.entity_instance) -> float:
157 x, y, z = extrusion.ExtrudedDirection.DirectionRatios
158 x_angle = Vector((0, 1)).angle_signed(Vector((y, z)))
159 return x_angle
160
161 si_conversion = ifcopenshell.util.unit.calculate_unit_scale(tool.Ifc.get())
162 if not AuthoringData.is_loaded:

Callers 1

update_bim_tool_propsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected