Krabl Mesh Library
A C# library to process meshes in Unity3D
|
Static methods to convert between Unity meshes and Krabl Mesh Library meshes.
|
static |
Copies a Unity Mesh to a KrablMesh.MeshEdges.
unityMesh | The Unity Mesh to use as input. |
meshEdges | The KrablMesh.meshEdges to fill with the data from the input mesh. Needs to be empty. |
tolerance | The maximum difference between two values (vertex coordinates, normal coordinates) to treat as begin equal. Some modelling software outputs float values that are only almost the same when they should be the same. In this case using a tolerance of about 1e-5f can fix problems. |
|
static |
Copy mesh data from a KrablMesh meshEdges to a Unity Mesh.
meshEdges | The input mesh. |
unityMesh | The output Unity Mesh. Any data it contains will be overwritten. |