Module bvh
BVH Tree
Functions
OctreeNode:draw_bounds (cube, depth) | Draws node boundaries visually for debugging. |
OctreeNode:draw_objects (cube, filter) | Draws the bounds of all objects in the tree visually for debugging. |
Functions
- OctreeNode:draw_bounds (cube, depth)
-
Draws node boundaries visually for debugging.
Parameters:
- cube Cube model to draw
- depth Used for recurcive calls to self method
- OctreeNode:draw_objects (cube, filter)
-
Draws the bounds of all objects in the tree visually for debugging.
Parameters:
- cube Cube model to draw
- filter a function returning true or false to determine visibility.