Skip to main content

loop_subdivision

Function loop_subdivision 

Source
pub fn loop_subdivision(mesh: &SubdivMesh) -> SubdivMesh
Expand description

Apply one level of Loop subdivision.

Loop (1987) is a smooth approximating scheme for triangle meshes.

  • Each edge midpoint is computed using edge and opposite-vertex weights.
  • Each original vertex is moved using one-ring weights.

Boundary handling: boundary vertices and edges use simpler averaging rules.