Class SurfaceTopology
Utilities for working with triangle and quad primitives.
Inherited Members
Namespace: UnityEngine.ProBuilder.MeshOperations
Assembly: Unity.ProBuilder.dll
Syntax
public static class SurfaceTopology
Methods
Name | Description |
---|---|
ConformNormals(ProBuilderMesh, IEnumerable<Face>) | Ensures that all adjacent face normals are pointing in a uniform direction. This function supports multiple islands of connected faces, but it may not unify each island the same way. This is equivalent to the Conform Normals (Faces) action. |
FlipEdge(ProBuilderMesh, Face) | Reverses the orientation of the middle edge in a quad.
This is the equivalent to the Flip Face Edge action. |
GetWindingOrder(IList<Vector2>) | Returns the winding order for a set of ordered points. |
GetWindingOrder(ProBuilderMesh, Face) | Returns the winding order for a face. |
ToTriangles(ProBuilderMesh, IList<Face>) | Converts a selection of faces from n-gons to triangles. When this method successfully converts a face to triangles, it creates each new triangle as a separate face and deletes the original face. |