Skip to main content

solid_from_polygons

Function solid_from_polygons 

Source
pub fn solid_from_polygons(
    faces: &[Vec<Vec3>],
) -> Result<BrepSolid, KernelRefusal>
Expand description

The solid bounded by the plane polygons faces, each its corners in order (either way round): every polygon a flat face, joined along their common sides (crate::solid_from_sheets) and turned outward. The polygons need not be convex, nor the solid; each side of each polygon must be a whole side of exactly one other.