Skip to main content

split_t_junctions

Function split_t_junctions 

Source
pub fn split_t_junctions(
    mesh: &TriMesh,
    tolerance: Tolerance,
) -> Result<(TriMesh, TJunctionSplit), MeshHealError>
Expand description

Split triangle edges at vertices lying on them within tolerance.

The first piece of a split triangle keeps its index; the other pieces are appended in ascending parent order, so triangle indices stay stable. Returns the mesh unchanged when nothing is split.

ยงErrors

MeshHealError::RaggedIndices when the index buffer is not a whole number of triangles.