Skip to main content

project_exact

Function project_exact 

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

Project a shape into a drawing whose silhouettes and visibility are exact.

The edges and silhouettes are sampled at deflection to become polylines, because a drawing is polylines. What is not sampled is the geometry they sample (exact curves on the surfaces, not mesh edges), or the classification, which asks the faces themselves whether anything stands between a point and the eye.

§Errors

OgeomError::Construction if a face’s silhouette has no closed form, or the shape has no faces.