Mesh |
public class MeshTrianglesSorter
The MeshTrianglesSorter type exposes the following members.
Name | Description | |
---|---|---|
MeshTrianglesSorter(PositionNormal, Int32) | Constructor | |
MeshTrianglesSorter(PositionNormalTexture, Int32) | Constructor | |
MeshTrianglesSorter(Vector3, Int32) | Constructor |
Name | Description | |
---|---|---|
SortedIndicesArray | Gets a sorted triangle indices array that is sorted when calling SortByCameraDistance(Vector3, Boolean) method. | |
TransformMatrix | Gets the transformation matrix that was used to transform the matrices. |
Name | Description | |
---|---|---|
SortByCameraDistance | Sorts the triangle indices by distance to the specified camera position and sets the sorted indices into SortedIndicesArray. When the checkIfAlreadySorted parameter is true (by default), then the currently sorted positions are first checked if they are already sorted and in this case do not sort the array. | |
Transform | Sets the transformation matrix that transforms the positions of the mesh. |