Click or drag to resize
Ab4d.SharpEngine logo

MeshOctreeNode Methods

The MeshOctreeNode type exposes the following members.

Methods
 NameDescription
Public methodAddTriangle Adds a triangle with the specified triangleBoundingBox and index to this or any child node.
Public methodStatic memberCollectBoundingBoxesInLevel CollectBoundingBoxesInLevel is a diagnostics method and fills the boundingBoxes list with bounding boxes from child nodes.
Public methodStatic memberCollectNodesCountInLevel CollectNodesCountInLevel is a diagnostics method and returns the number of nodes (MeshOctreeNode objects) in the specified targetNodeLevel level.
Public methodStatic memberCollectNodesTrianglesCountInLevel CollectNodesTrianglesCountInLevel is a diagnostics method and fills a list of triangles count as int values with number of triangles in each node
Public methodGetAllHitResults Hit test a ray against the triangles in this and child MeshOctreeNodes and adds all hit result int the specified hitResults list.
Public methodStatic memberGetTrianglesCountInLevel Gets number of triangles in the specified node and its child nodes.
Public methodHitTest Hit test a ray against the triangles in this and child MeshOctreeNodes and returns the closest hit result.
Public methodOptimize Optimize method optimizes this octree 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 MeshOctree constructor.
Top
See Also