pub fn extrude(
points: &[DVec2],
triangles: &[[u32; 3]],
loops: &[Range<usize>],
direction: DVec3,
depth: f64,
) -> Result<TriMesh, GeomError>Expand description
Extrude a triangulated 2D profile along direction by depth.
The profile lies in the local z = 0 plane. Caps use the triangulation; sides are quads split into two triangles per boundary edge.
boundary lists the closed loops of the profile as index ranges into
points: each loop is a contiguous run, matching profile::Rings layout.