Skip to main content

Module mesh_param

Module mesh_param 

Source
Expand description

Triangle mesh parameterization (UV unwrapping) and mesh processing utilities.

Implements LSCM and Tutte parameterization, UV quality metrics, mesh subdivision, and mesh repair operations.

Structs§

AtlasChart
A single chart (UV island) for texture atlas packing.
AtlasPackResult
Result of packing multiple charts into a texture atlas.
HarmonicMapParameterization
Harmonic map UV parameterization (also known as harmonic embedding).
LscmParameterization
Least Squares Conformal Maps parameterization.
ParamQualityReport
Summary quality report for a UV parameterization.
ParamTriMesh
A triangle mesh with UV coordinates and normals, used for parameterization.
TutteParameterization
Tutte (barycentric) parameterization.
UvSeam
A UV seam: a set of edges where the UV mapping has a discontinuity.

Functions§

angle_distortion
Compute the angle distortion per triangle.
boundary_vertices
Return the set of boundary vertices (those on at least one boundary edge).
build_halfedge
Build a half-edge table for a triangle mesh.
fill_holes
Fill holes by fan-triangulating boundary loops.
is_boundary_vertex
Return true if vertex v lies on the boundary of the mesh.
isometric_distortion
Compute the isometric distortion: ratio of singular values of the Jacobian for each triangle.
loop_subdivision
Loop subdivision: split each triangle into 4 sub-triangles.
mean_angle_distortion
Mean angle distortion across all triangles.
midpoint_subdivision
Simple midpoint subdivision: each edge gets a midpoint, 1 triangle -> 4.
pack_atlas_charts
Pack a list of AtlasCharts into a texture atlas using a simple row-based packing.
parameterization_quality_report
Compute a comprehensive quality report for a UV parameterization.
remove_duplicate_vertices
Merge vertices within tol distance and return the cleaned mesh.
texture_distortion
Compute per-triangle texture distortion: ratio of UV area to 3D area.
uv_overlap_check
Count triangles with inverted UV mapping (negative signed area).
uv_stretch
Mean UV distortion across all triangles.
vertex_neighbors
Return all vertices adjacent to vertex_idx.