Skip to main content

placed_edge_curve

Function placed_edge_curve 

Source
pub fn placed_edge_curve(
    model: &Model,
    edge: &Shape,
    tol: Tolerances,
) -> OgeomResult<Option<(Curve, (f64, f64))>>
Expand description

An edge occurrence’s curve where the occurrence stands, and the range of it the edge covers; None for an edge with no curve in space.

The curve is moved by the curve’s own location and then by the occurrence’s, so a reader building geometry from it builds it where the edge is. A placement with a scale rescales a length-parameterized curve’s domain, and the range is carried with it. An unplaced edge’s curve comes back as stored.

§Errors

OgeomError::Dangling if the edge, its curve or a datum is not in model; as Transformable::transformed.