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

Function _walk_clipping

src/ifcquery/ifcquery/info.py:82–91  ·  view source on GitHub ↗

Return (base_solid, [clipping_plane_dicts]) from a BooleanClippingResult chain.

(item)

Source from the content-addressed store, hash-verified

80
81
82def _walk_clipping(item) -> tuple:
83 """Return (base_solid, [clipping_plane_dicts]) from a BooleanClippingResult chain."""
84 planes = []
85 current = item
86 while current.is_a("IfcBooleanClippingResult"):
87 plane = _half_space_plane(current.SecondOperand)
88 if plane:
89 planes.append(plane)
90 current = current.FirstOperand
91 return current, planes
92
93
94def _swept_solid_dict(item) -> dict:

Callers 1

_summarize_repFunction · 0.85

Calls 3

_half_space_planeFunction · 0.85
is_aMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected