Krabl Mesh Library
A C# library to process meshes in Unity3D
 All Classes Namespaces Functions Variables Pages
List of all members
KrablMesh.Ops Class Reference

Description

Some static methods to do operations on MeshEdges.

Functions

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
meshThe 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
meshThe mesh to process.
maximumEdgeAngleThe maximum angle between two triangles to be joined to a (non-planar) quad.