pub fn make_solid(model: &mut Model, shells: &[Shape]) -> OgeomResult<Built>Expand description
Build a solid from shells.
The first shell is the outer boundary; any others are voids inside it.
Every face of a solid faces away from its material: the outer shell
out of the volume it bounds, a void’s shell into its cavity. A closed
shell whose faces agree with each other (every edge walked once each
way) but face the other way is used turned over: the outer shell where
its meshed volume comes out negative, a void’s where it comes out
positive. A shell that is open, whose faces disagree, or whose mesh
does not close is used as given; so is anything put together with
Model::add_solid, for a builder whose shell faces in on purpose
(the material outside a closed face).
§Errors
OgeomError::Construction if a child is not
a shell, or the list is empty.