Function bounded_half_space

Source
pub fn bounded_half_space(
    boundary: &Rings,
    plane: Plane3,
    agreement: bool,
    margin: ClipMargin,
    tolerance: Tolerance,
) -> Result<TriMesh, GeomError>
Expand description

Build the finite solid that represents a half-space bounded by a profile.

agreement selects which side of the plane survives: true keeps the normal side, false the opposite one. The boundary profile is assumed to lie in the plane’s own frame, which is how the graph stores it.

The margin scales the extrusion depth relative to the boundary’s own size. It is relative rather than absolute so the result does not depend on the model’s units.