Skip to main content

project_edge_onto_plane

Function project_edge_onto_plane 

Source
pub fn project_edge_onto_plane(
    model: &Model,
    edge: &Shape,
    plane: &Plane,
    tol: Tolerances,
) -> OgeomResult<ProjectedCurve>
Expand description

The orthogonal projection of an edge onto a plane, in the plane’s own 2D coordinates (its frame’s x and y axes). The edge’s placement is applied first.

§Errors

OgeomError::Construction if edge is not an edge with a curve of its own, or if a curve with no closed-form projection cannot be fitted; plus whatever evaluating the curve refuses.