Class MeshValidation
Methods for validating and fixing mesh topology.
Inherited Members
Namespace: UnityEngine.ProBuilder.MeshOperations
Assembly: Unity.ProBuilder.dll
Syntax
public static class MeshValidation
Methods
Name | Description |
---|---|
ContainsDegenerateTriangles(ProBuilderMesh) | Returns whether any face on a mesh contains degenerate triangles. |
ContainsDegenerateTriangles(ProBuilderMesh, IList<Face>) | Returns whether any of the specified faces contains degenerate triangles. |
ContainsDegenerateTriangles(ProBuilderMesh, Face) | Returns whether the specified face contains degenerate triangles. |
ContainsNonContiguousTriangles(ProBuilderMesh, Face) | Checks whether any triangles in a face are disconnected (non-contiguous). |
EnsureFacesAreComposedOfContiguousTriangles(ProBuilderMesh, IEnumerable<Face>) | Ensures that each face in the specified set is composed of contiguous triangle sets. If a face contains any non-contiguous triangles, this method splits them into as many faces as necessary to ensure that each group of adjacent triangles compose a single face. |
RemoveDegenerateTriangles(ProBuilderMesh, List<int>) | Iterates through all faces in a mesh and removes any triangles with an area less than |
RemoveUnusedVertices(ProBuilderMesh, List<int>) | Removes vertices that no face references. |