Click or drag to resize
AB4D logo

DXMultiMeshGeometry3D Methods

The DXMultiMeshGeometry3D type exposes the following members.

Methods
 NameDescription
Public methodAddSubMesh Adds list of MeshGeometry3D with their Transformations and optionally custom texture coordinates.
Public methodGetClosestHitResult GetClosestHitResult method returns a DXRayHitTestResult with the closest triangle hit by the specified ray. When no triangle is hit, null is returned.
Public methodGetNextHitResult 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.
Public methodGetTrianglePositions GetTrianglePositions sets the 3 positions that define the triangle with the specified triangle index.
Public methodHitTest Hit test the specified ray against this mesh and returns the closest hit result or null if no hit is found.
Public methodRecreateMesh 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.
Top
See Also