pub fn extrude(
points: &[Point2],
triangles: &[[u32; 3]],
loops: &[Range<usize>],
direction: Vec3,
depth: Scalar,
) -> GeomResult<TriMesh>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.