Skip to main content

placement

Function placement 

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

Resolve an InstanceAtStation node’s placement (#264).

The frame is the one resolve gives the node’s OrientedCurveStation, seam side included; the transform maps the source’s local x, y, z onto its oriented tangent, left lateral and up (axiolid_model::station names the mapping).

§Errors

A node that is not an InstanceAtStation, and every refusal of resolve: a distance beyond the basis curve’s length, a zero or vertical tangent where the frame needs a plan, a degenerate orientation, a basis no station can be measured along (an instance, a p-curve, a composite whose pieces do not meet or are measured differently, a degenerate offset), each by name.