Skip to main content

extrude_profile

Function extrude_profile 

Source
pub fn extrude_profile(
    rings: &Rings,
    direction: Vec3,
    depth: Scalar,
    tolerance: Tolerance,
) -> GeomResult<TriMesh>
Expand description

Triangulate rings and extrude them in one step.

The loop layout must match triangulate’s vertex order exactly, so the two are derived from the same Rings value here rather than by a caller reconstructing the ranges.

A direction within tolerance of the profile plane (|o.z| <= tolerance for the offset o) is refused as "extrusion direction in the profile plane", exactly as extrude_profile_exact refuses it.