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§
- Atlas
Chart - A single chart (UV island) for texture atlas packing.
- Atlas
Pack Result - Result of packing multiple charts into a texture atlas.
- Harmonic
MapParameterization - Harmonic map UV parameterization (also known as harmonic embedding).
- Lscm
Parameterization - Least Squares Conformal Maps parameterization.
- Param
Quality Report - Summary quality report for a UV parameterization.
- Param
TriMesh - A triangle mesh with UV coordinates and normals, used for parameterization.
- Tutte
Parameterization - 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
vlies 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
toldistance 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.