Expand description
Auto-generated module
🤖 Generated with SplitRS
Functions§
- average_
edge_ length - Compute the average edge length of the mesh.
- classify_
edge - Classify an edge between two triangles by their dihedral angle.
- classify_
feature_ vertices - Classify every vertex as smooth or feature based on the maximum dihedral angle between its adjacent triangle faces.
- cluster_
id - Compute the grid cell coordinates for vertex
vwith cell sizegrid_size. - collapse_
edge - Collapse edge (v1, v2): move v1 to
new_pos, redirect all references to v2 toward v1, then remove any resulting degenerate (zero-area) triangles. Returns the index of the surviving vertex (v1, updated in-place). - collect_
decimation_ metrics - Collect decimation statistics before and after simplification.
- compute_
vertex_ quadrics - Compute per-vertex quadric matrices by summing Kp over adjacent triangles.
- edge_
collapse_ cost - Compute the optimal collapse target and error for collapsing edge (v1→v2).
- feature_
aware_ cost - Feature-aware QEM cost: penalizes collapsing crease or boundary edges.
- find_
boundary_ edges - Return all edges that belong to exactly one triangle (boundary edges).
- is_
manifold_ after_ collapse - Check whether collapsing edge (v1, v2) preserves manifold topology.
- mesh_
centroid - Area-weighted centroid of the mesh surface.
- mesh_
compactness - Compactness ratio: 36π V² / A³ (= 1 for a sphere, < 1 otherwise).
- mesh_
volume - Signed volume of the mesh via the divergence theorem. Positive for outward-facing normals with CCW winding.
- one_
sided_ hausdorff - Compute the Hausdorff-like error between two meshes (approximate).
- simplify_
with_ features - Simplify
meshusing QEM edge collapses, preserving feature vertices (those for whichis_feature[v] == truewill never be the removed vertex). - vertex_
clustering - Decimate
meshby merging all vertices that fall inside the same voxel cell. Each cluster is represented by the average position of its members. Triangles with two or more vertices in the same cluster are discarded. - vertex_
clustering_ decimate - Vertex clustering decimation: reduces mesh by merging vertices within cells of a uniform grid, then rebuilding triangles.