pub fn make_polyhedron_brep(
points: &[Vec3],
faces: &[Vec<usize>],
) -> Result<BrepSolid, KernelRefusal>Expand description
The closed polyhedron whose faces are the polygons faces over points:
each face a loop of point indices running counter-clockwise seen from
outside, flat (every corner within a billionth of the polyhedron’s size
of its plane), its consecutive corners distinct.
Refuses fewer than four faces, a face of fewer than three corners, an
index past points, a face that is not flat or has no area, faces that
do not close (every edge must be used once each way) and faces that form
more than one closed part.