Adds IfcPolyline representation for alignment. Also some general cleanup

This commit is contained in:
Richard Brice
2025-07-13 16:34:52 -07:00
parent e93a66be49
commit 73b76ba666
11 changed files with 230 additions and 45 deletions
@@ -26,6 +26,7 @@ import ifcopenshell.util.representation
def get_curve(alignment: entity_instance) -> entity_instance:
"""
Returns the geometric representation curve for an alignment.
An alignment without layouts will have a curve of type IfcPolyLine or IfcIndexedPolyCurve
A horizontal only will have a curve of type IfcCompositeCurve
A horizontal+vertical will have a curve of type IfcGradientCurve
A horizontal+vertical+cant will have a curve of tyep IfcSegmentedReferenceCurve