octree_spec.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. local octree = require "modules.octree"
  2. describe("octree:", function()
  3. end)
  4. --[[
  5. local function new(initialWorldSize, initialWorldPos, minNodeSize, looseness)
  6. function Octree:add(obj, objBounds)
  7. function Octree:remove(obj)
  8. function Octree:is_colliding(checkBounds)
  9. function Octree:get_colliding(checkBounds)
  10. function Octree:cast_ray(ray, func, out)
  11. function Octree:draw_bounds(cube)
  12. function Octree:draw_objects(cube, filter)
  13. function Octree:grow(direction)
  14. function Octree:shrink()
  15. function Octree:get_root_pos_index(xDir, yDir, zDir)
  16. function OctreeNode:add(obj, objBounds)
  17. function OctreeNode:remove(obj)
  18. function OctreeNode:is_colliding(checkBounds)
  19. function OctreeNode:get_colliding(checkBounds, results)
  20. function OctreeNode:cast_ray(ray, func, out, depth)
  21. function OctreeNode:set_children(childOctrees)
  22. function OctreeNode:shrink_if_possible(minLength)
  23. function OctreeNode:set_values(baseLength, minSize, looseness, center)
  24. function OctreeNode:split()
  25. function OctreeNode:merge()
  26. function OctreeNode:best_fit_child(objBounds)
  27. function OctreeNode:should_merge()
  28. function OctreeNode:has_any_objects()
  29. function OctreeNode:draw_bounds(cube, depth)
  30. function OctreeNode:draw_objects(cube, filter)
  31. --]]