Skip to main content

Module curve

Module curve 

Source
Expand description

Exact curve lowering.

§Scope

Covers IfcPolyline, IfcLine, IfcCircle, IfcTrimmedCurve, IfcCompositeCurve, the explicit-knot IfcBSplineCurveWithKnots / IfcRationalBSplineCurveWithKnots, and the IFC4X3 curves: IfcCurveSegment (segment.rs, spiral laws in spiral.rs), IfcGradientCurve (gradient.rs) and IfcOffsetCurveByDistances (lower::station). Other families report a typed Unsupported naming the entity, so a gap is a diagnostic rather than a wrong shape.

§Trim parameters are not all lengths

IfcTrimmedCurve carries IfcParameterValues in the basis curve’s own parameterisation. For an IfcLine that parameter is a length along the direction vector and scales with the length unit. For an IfcCircle it is an angle in the model’s plane-angle unit. Applying the length factor to a conic parameter silently rescales every arc: on a millimetre file the 0.082 rad arc in swept_disk_composite_arc_crankbar.ifc would become 82 radians and wrap the circle thirteen times. The basis curve therefore decides which unit conversion applies.

§Why the frame is applied here and not deferred

Curves are lowered as world-space geometry, matching lower::brep: the caller’s frame is applied to points and to conic frames as they are built. Deferring would require every consumer to carry a parallel transform stack.

Functions§

lower_curve_node
Lower any supported curve, returning its node.