DXMulti |
public class DXMultiMeshGeometry3D : MeshBase, IRayHitTestedObject, ITriangularMesh
The DXMultiMeshGeometry3D type exposes the following members.
Name | Description | |
---|---|---|
DXMultiMeshGeometry3D | Constructor |
Name | Description | |
---|---|---|
IsHitTestVisible | IsHitTestVisible specifies if this DXMultiMeshGeometry3D can be hit tested. If you do not need to hit test this DXMultiMeshGeometry3D, then you can set IsHitTestVisible to false to free the memory used for vertex and index buffer arrays. | |
TrianglesCount | Gets the number of triangles that are used to define this mesh. |
Name | Description | |
---|---|---|
AddSubMesh | Adds list of MeshGeometry3D with their Transformations and optionally custom texture coordinates. | |
GetClosestHitResult | GetClosestHitResult method returns a DXRayHitTestResult with the closest triangle hit by the specified ray. When no triangle is hit, null is returned. | |
GetNextHitResult | GetNextHitResult method continues hit testing from the previously returned hit test and returns a DXRayHitTestResult with the next hit triangle (not necessary the next closest triangle) or null if no other triangle is hit. This method can be used to get all hit results. | |
GetTrianglePositions | GetTrianglePositions sets the 3 positions that define the triangle with the specified triangle index. | |
HitTest | Hit test the specified ray against this mesh and returns the closest hit result or null if no hit is found. | |
RecreateMesh | Creates new VertexBuffers and IndexBuffer from the added submeshes. This method also clears the list of added submeshes - you will need to call AddSubMesh method again before next RecreateMesh call. |