Skip to main content

Module functions

Module functions 

Source
Expand description

Auto-generated module

🤖 Generated with SplitRS

Functions§

catmull_clark_subdivide
Catmull-Clark subdivision adapted for triangle meshes.
collapse_short_edges
Collapse edges shorter than min_len by merging endpoints.
detect_boundary_loops
Detect boundary (open) edge loops in mesh.
detect_feature_edges
Detect feature edges in mesh whose dihedral angle exceeds threshold_deg degrees.
fill_all_holes
Repair mesh by detecting all boundary loops and filling each with a fan.
fill_hole_fan
Fill a single boundary loop with a fan triangulation from its centroid.
fix_non_manifold_vertices
Remove non-manifold vertices (vertices shared by more than two disconnected fans) by duplicating them.
generate_texture_atlas
Generate a simple texture atlas by partitioning the mesh into connected components and packing their UV patches into a square atlas.
isotropic_remesh
Isotropic remeshing targeting a uniform target edge length.
laplacian_smooth
Apply iters passes of uniform Laplacian smoothing with step lambda.
loop_subdivide
Loop subdivision with proper weighting for interior vertices.
lscm_parameterize
Least-Squares Conformal Maps (LSCM) UV parameterization.
mesh_quality_stats
Compute aggregate quality statistics for mesh.
mesh_union
Boolean union of two meshes (retains all faces from both).
midpoint_subdivide
Simple midpoint (butterfly) subdivision: each edge is split and each triangle becomes four smaller triangles.
point_in_mesh
Test whether a point p is inside mesh using ray casting.
qem_decimate
Decimate a mesh to at most target_faces triangles using quadric error metrics with greedy edge collapses.
split_long_edges
Split edges longer than max_len by inserting midpoints.
taubin_smooth
Apply Taubin λ/μ smoothing to reduce shrinkage.
triangle_quality
Compute quality metrics for a single triangle given its three vertices.
tutte_parameterize
Tutte parameterization: map boundary to a circle, solve harmonic interior.

Type Aliases§

Face
A triangular face represented as three vertex indices.
Uv
A 2-D UV coordinate pair.
Vertex
A 3-D vertex position stored as plain [f64; 3].