pub trait FaceBuilder {
    // Required methods
    fn add_interior(&mut self) -> Partial<Cycle>;
    fn update_surface_as_plane(&mut self) -> Partial<Surface>;
    fn infer_curves(&mut self);
}
Expand description

Builder API for PartialFace

Required Methods§

source

fn add_interior(&mut self) -> Partial<Cycle>

Add an interior cycle

source

fn update_surface_as_plane(&mut self) -> Partial<Surface>

Update the face’s surface as a plane

The plane geometry is inferred from three of the face’s vertices. Also infers any undefined SurfaceVertex positions.

Panics

Assumes that the face exterior has exactly three vertices to use. Panics otherwise. This is a temporary limitation, not a fundamental one. It could be overcome with some more work.

source

fn infer_curves(&mut self)

Infer any undefined curves in the face

Implementors§