summaryrefslogtreecommitdiff
path: root/chroma/bvh/grid.py
diff options
context:
space:
mode:
Diffstat (limited to 'chroma/bvh/grid.py')
-rw-r--r--chroma/bvh/grid.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/chroma/bvh/grid.py b/chroma/bvh/grid.py
index 0b36a2f..5392976 100644
--- a/chroma/bvh/grid.py
+++ b/chroma/bvh/grid.py
@@ -1,4 +1,4 @@
-from chroma.bvh.bvh import BVH, node_area
+from chroma.bvh.bvh import BVH, node_areas
from chroma.gpu.bvh import create_leaf_nodes
def make_recursive_grid_bvh(mesh, bits=11):
@@ -23,6 +23,6 @@ def make_recursive_grid_bvh(mesh, bits=11):
morton_codes[argsort]
- print node_area(leaf_nodes) * world_coords.world_scale**2
+ print node_areas(leaf_nodes).sum() * world_coords.world_scale**2