Skip to main content

lscm_parameterize

Function lscm_parameterize 

Source
pub fn lscm_parameterize(mesh: &ProcessMesh) -> UvParameterization
Expand description

Least-Squares Conformal Maps (LSCM) UV parameterization.

Minimises the conformal (angle-preserving) energy over all triangles by solving the Lévy 2002 sparse linear system. Two vertices are pinned to break the rotation/translation ambiguity:

  • vertex 0 → UV (0, 0)
  • vertex 1 → UV (1, 0)

The free-vertex system A_free^T A_free x = A_free^T b is solved with the oxiphysics_fem::parallel_solver::ParallelPcgSolver.

§Returns

A UvParameterization with UV coordinates clamped to [0, 1] per axis.