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

Function _half_space_plane

src/ifcquery/ifcquery/info.py:70–79  ·  view source on GitHub ↗
(half_space)

Source from the content-addressed store, hash-verified

68
69
70def _half_space_plane(half_space) -> dict | None:
71 if not half_space.is_a("IfcHalfSpaceSolid"):
72 return None
73 surface = half_space.BaseSurface
74 if not surface or not surface.is_a("IfcPlane"):
75 return None
76 pos = surface.Position
77 loc = _rc(pos.Location.Coordinates)
78 normal = _rc(pos.Axis.DirectionRatios) if pos.Axis else [0.0, 0.0, 1.0]
79 return {"location": loc, "normal": normal}
80
81
82def _walk_clipping(item) -> tuple:

Callers 1

_walk_clippingFunction · 0.85

Calls 2

_rcFunction · 0.85
is_aMethod · 0.45

Tested by

no test coverage detected