Skip to main content

make_face

Function make_face 

Source
pub fn make_face(
    model: &mut Model,
    surface: SurfaceGeometry,
    wires: &[Shape],
    tol: Tolerances,
) -> OgeomResult<Built>
Expand description

Build a face on surface, bounded by wires.

The first wire is the outer boundary; any others are holes. Every wire must be closed, since an open boundary encloses nothing. On a plane the face faces the plane’s normal and walks its outer boundary counter-clockwise about it and its holes clockwise, whichever way the wires were walked.

§Errors

OgeomError::Construction if a wire is open or is not a wire.