Skip to main content

Module line

Module line 

Source
Expand description

IfcLine: a point and a vector, unbounded in both directions.

§The trap: Dir is an IfcVector, not an IfcDirection

The parameterisation is P(u) = Pnt + u * Dir, where Dir carries a magnitude as well as an orientation. A caller that normalises Dir to a unit vector silently rescales the parameter space by that magnitude, which matters the moment the line is used as an IfcTrimmedCurve basis curve trimmed by parameter: the trim values are in units of Dir, not in length units. This view therefore hands back the IfcVector reference untouched.

Structs§

Line
A borrowed view of an IfcLine.