Expand description
IfcPolyline and IfcIndexedPolyCurve: the two vertex-list curves.
§Why they are in one module
Both describe a chain of points, but they differ in a way that matters for
file size and for correctness. IfcPolyline holds a list of
IfcCartesianPoint entities, one STEP record per vertex. An
IfcIndexedPolyCurve holds a single IfcCartesianPointList plus integer
indices into it, which is how IFC4 made large surveyed geometry tractable.
§The 1-based index trap
IfcLineIndex and IfcArcIndex are lists of IfcPositiveInteger, indexing
the point list the way EXPRESS aggregates are indexed: from 1. Reading
them as Rust indices shifts every vertex by one and produces geometry that
looks almost right, which is the worst kind of wrong. This module never
exposes a raw index: PolySegment hands back zero-based indices already
converted and range-checked against the point count.
Structs§
- Indexed
Poly Curve - A borrowed view of an
IfcIndexedPolyCurve. - Polyline
- A borrowed view of an
IfcPolyline.
Enums§
- Poly
Segment - One segment of an
IfcIndexedPolyCurve, with indices already zero-based.