pub fn bounded_half_space_prism(
boundary: &Rings,
plane: Plane3,
prism: BoundaryPrism,
agreement: bool,
depth: SlabDepth,
tolerance: Tolerance,
) -> Result<TriMesh, GeomError>Expand description
Build the slab of a half-space bounded by the prism of boundary along
any axis that crosses the plane (#321).
The region is the side of plane that agreement selects (true the
normal side) within prism, cut off at depth from the plane. The
prism may stand at any angle to the plane: the near cap is the boundary
carried along the axis onto the plane, the far cap the same moved along
the axis to the depth. The boundary’s winding is its own affair: a ring
wound either way, under a frame of either handedness, gives the same
outward-facing solid, the loft’s stations ordered to suit.
§Errors
InvalidInput, by name, for a plane without a normal, a boundary of
fewer than 3 vertices, a prism axis that is zero, not finite or within
the angular tolerance of the plane (its prism never crosses it), a frame
whose x and y carried onto the plane are parallel or zero, and a
depth that is not positive and finite. A boundary that bounds no region
is refused by the cap triangulation, naming the ring.