![]() | |
Mesh |
The MeshOctTreeNode type exposes the following members.
Name | Description | |
---|---|---|
![]() | AddTriangle | Adds a triangle with the specified triangleBoundingBox and index to this or any child node. |
![]() ![]() | CollectBoundingBoxesInLevel | CollectBoundingBoxesInLevel is a diagnostics method and fills the boundingBoxes list with bounding boxes from child nodes. |
![]() ![]() | CollectNodesCountInLevel | CollectNodesCountInLevel is a diagnostics method and returns the number of nodes (MeshOctTreeNode objects) in the specified targetNodeLevel level. |
![]() ![]() | CollectNodesTrianglesCountInLevel | CollectNodesTrianglesCountInLevel is a diagnostics method and fills a list of triangles count as int values with number of triangles in each node |
![]() | GetAllHitResults | Hit test a ray against the triangles in this and child MeshOctTreeNodes and adds all hit result int the specified hitResults list. |
![]() ![]() | GetTrianglesCountInLevel | Gets number of triangles in the specified node and its child nodes. |
![]() | HitTest | Hit test a ray against the triangles in this and child MeshOctTreeNodes and returns the closest hit result. |
![]() | Optimize | Optimize method optimizes this oct tree node and its child nodes. It is possible to remove empty child nodes and in case of a single child node move its triangles to this node. This method is automatically called from the MeshOctTree constructor. |