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

Function _geometry_summary

src/ifcquery/ifcquery/info.py:153–165  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

151
152
153def _geometry_summary(element) -> dict | None:
154 if not hasattr(element, "Representation") or not element.Representation:
155 return None
156 body_rep = next(
157 (r for r in element.Representation.Representations if r.RepresentationIdentifier == "Body"),
158 None,
159 )
160 if body_rep is None:
161 return None
162 try:
163 return _summarize_rep(body_rep)
164 except Exception:
165 return None
166
167
168def _serialize_attribute(value: Any) -> Any:

Callers 1

infoFunction · 0.85

Calls 1

_summarize_repFunction · 0.85

Tested by

no test coverage detected