Click or drag to resize
Ab4d.SharpEngine logo

MeshOctree Methods

The MeshOctree type exposes the following members.

Methods
 NameDescription
Public methodCollectBoundingBoxesInLevel CollectBoundingBoxesInLevel is a diagnostics method and returns a list of bounding boxes from child nodes.
Public methodDumpNodeStatistics Writes string that describes the details about this MeshOctree to the console (when the application is debugged in Visual Studio the result is written to Output window or Immediate Window if started from there; in Rider the result is written to Debug Output window).
Public methodGetAllHitResults HitTest method executes a ray hit test on this octree and returns a list of RayHitTestResult with all the hit results sorted from the closest to the farthest. If no triangle is hit, an empty list is returned. To get only the closest hit results call method.
Public methodGetNodesCountInLevel GetNodesCountInLevel is a diagnostics method and returns the number of nodes (MeshOctreeNode objects) in the specified node level.
Public methodGetNodeStatistics GetNodeStatistics is a diagnostics method and returns a string that describes the details about this MeshOctree.
Public methodGetTrianglesCountInLevel GetTrianglesCountInLevel is a diagnostics method and returns the number of triangles in the specified node level.
Public methodHitTest HitTest method executes a ray hit test on this octree and returns a RayHitTestResult with the closest triangle in this octree that is hit by the specified ray. If not triangle is hit, null is returned. To get all hit results call method.
Top
See Also