pub fn solid_piece_by_plane(
solid: &BrepSolid,
plane_point: Vec3,
plane_normal: Vec3,
above: bool,
cover: f64,
) -> Result<Option<BrepSolid>, String>Expand description
The piece of solid on one side of the plane through plane_point with
normal plane_normal: the −n side when above is false, the +n side when
it is true. The cutting box spans cover times the diagonal of the
solid’s control-point box (at least 1; split_solid_by_plane uses 3),
centred on that box’s centre projected onto the plane, so it covers every
part of the solid on its side whenever the plane meets that box.
Ok(None) when nothing of the solid lies on that side; an error only when
the cut itself fails, so a caller can tell a plane that misses from a
boolean that declined (which split_solid_by_plane reports alike).