Click or drag to resize
AB4D logo

MeshTrianglesSorter Class

MeshTrianglesSorter can be used to sort triangle indices by camera distance. Sorting is done by calling SortByCameraDistance(Vector3, Boolean) method. After that call the SortedIndicesArray array is set to the sorted triangle indices array. MeshTrianglesSorter can be created by vertex buffer defined by PositionNormalTexture, PositionNormal or Vector3.
Inheritance Hierarchy
SystemObject
  Ab3d.DirectXMeshTrianglesSorter

Namespace: Ab3d.DirectX
Assembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.1.9105.2048 (1.0.0.0)
Syntax
C#
public class MeshTrianglesSorter

The MeshTrianglesSorter type exposes the following members.

Constructors
Properties
 NameDescription
Public propertySortedIndicesArray Gets a sorted triangle indices array that is sorted when calling SortByCameraDistance(Vector3, Boolean) method.
Public propertyTransformMatrix Gets the transformation matrix that was used to transform the matrices.
Top
Methods
 NameDescription
Public methodSortByCameraDistance 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.
Public methodTransform Sets the transformation matrix that transforms the positions of the mesh.
Top
See Also