Some static methods to do operations on MeshEdges.
static void KrablMesh.Ops.RemoveDoubleVertices |
( |
BaseMesh |
mesh | ) |
|
|
static |
Joins vertices in a mesh that have the same geometric location based on the mesh's equalityTolerance parameter which is set when a mesh is create (it's usually zero.)
- Parameters
-
mesh | The mesh to search for duplicate vertices. |
static void KrablMesh.Ops.TrisToQuads |
( |
MeshEdges |
mesh, |
|
|
float |
maximumEdgeAngle |
|
) |
| |
|
static |
Joins neighbour triangles to quads in a mesh by dissolving selected edges. This method needs the mesh to have its edges calculated. The edges are sorted by their angles and dissolved in order until the maximum edge angle is reached. Special edges such as uv borders or material seams are not dissolved and concave quads are avoided. This method is used by the quad-based subdivision algorithm as it works much better with quads.
- Parameters
-
mesh | The mesh to process. |
maximumEdgeAngle | The maximum angle between two triangles to be joined to a (non-planar) quad. |