Skip to main content

tessellate

Function tessellate 

Source
pub fn tessellate(
    model: &mut Model,
    shape: &Shape,
    deflection: Deflection,
    tol: Tolerances,
) -> OgeomResult<Tessellated>
Expand description

Tessellate every face and edge below shape, storing the result on the model.

Replaces any tessellation already stored: a cache built to a different deflection is not the one that was asked for. Faces, edges and vertices below shape that other shapes hold as well are copied first (Model::unshare), so their stored tessellations stay as they are.

ยงErrors

As triangulate_face, plus OgeomError::Dangling if a handle fails to resolve.