Skip to main content

resolve

Function resolve 

Source
pub fn resolve(graph: &GeometryGraph, id: NodeId) -> GeomResult<ResolvedStation>
Expand description

Resolve a CurveStation or an OrientedCurveStation node to its point and frame.

See the module documentation and axiolid_reference::station for the conventions and the accuracy. An oriented station’s frame is turned by its orientation; its point, and ResolvedStation::section, are not. On a seam of the basis curve an oriented station reads the piece its seam names, a plain one the outgoing piece (#263); within its seam-snapping window of one seam, an oriented station is read on that seam (#294).

§Errors

A node that is not a GeometryNode::CurveStation or a GeometryNode::OrientedCurveStation, a basis no station can be measured along (see the module documentation: an instance, a p-curve, a composite with a gap, an undeclared reversed piece or pieces measured differently, a tilted plan-measured placement, a degenerate offset), a distance beyond the basis curve’s length, a degenerate orientation, a seam-snapping window holding two seams or with a seam on its edge, a seam whose distance cannot be certified, and every refusal of the curve evaluators, by name.