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

Function _curve_points

src/ifcquery/ifcquery/info.py:40–45  ·  view source on GitHub ↗
(curve)

Source from the content-addressed store, hash-verified

38
39
40def _curve_points(curve) -> list | None:
41 if curve.is_a("IfcPolyline"):
42 return [_rc(p.Coordinates) for p in curve.Points]
43 if curve.is_a("IfcIndexedPolyCurve"):
44 return [_rc(c) for c in curve.Points.CoordList]
45 return None
46
47
48def _profile_summary(profile) -> dict:

Callers 1

_profile_summaryFunction · 0.85

Calls 2

_rcFunction · 0.85
is_aMethod · 0.45

Tested by

no test coverage detected