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

Function _swept_solid_dict

src/ifcquery/ifcquery/info.py:94–102  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

92
93
94def _swept_solid_dict(item) -> dict:
95 result: dict[str, Any] = {"solid_type": item.is_a()}
96 if item.is_a("IfcExtrudedAreaSolid"):
97 result["depth"] = item.Depth
98 if item.ExtrudedDirection:
99 result["direction"] = _rc(item.ExtrudedDirection.DirectionRatios)
100 if item.SweptArea:
101 result["profile"] = _profile_summary(item.SweptArea)
102 return result
103
104
105def _summarize_rep(rep) -> dict:

Callers 1

_summarize_repFunction · 0.85

Calls 3

_rcFunction · 0.85
_profile_summaryFunction · 0.85
is_aMethod · 0.45

Tested by

no test coverage detected