Skip to main content

subdivide_loop

Function subdivide_loop 

Source
pub fn subdivide_loop(mesh: &Mesh3D, levels: u32) -> Mesh3D
Expand description

Performs Loop smooth triangle subdivision with exact 4x per-level triangle growth and boundary crease preservation.

§Arguments

  • &Mesh3D - Source triangle mesh to subdivide.
  • u32 - Number of subdivision levels (clamped to 0..=5).

§Returns

  • Mesh3D - Smoothly subdivided triangle mesh with recomputed unit normals, tangents, and meshlets.