Skip to main content

project

Function project 

Source
pub fn project(
    model: &Model,
    shape: &Shape,
    view: &View,
    deflection: Deflection,
    tol: Tolerances,
) -> OgeomResult<Drawing>
Expand description

Project a shape into a classified 2D drawing.

The model’s edges and the tessellation’s silhouettes, each split into visible and hidden runs by occlusion against the shape’s own mesh. Segments that project to nothing (an edge running straight along the view direction) are dropped: a point is not a line in a drawing.

§Errors

As ogeom_mesh::triangulate(); and OgeomError::Construction if the shape has no faces to draw.