summaryrefslogtreecommitdiff
path: root/chroma
diff options
context:
space:
mode:
Diffstat (limited to 'chroma')
-rw-r--r--chroma/bvh/bvh.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/chroma/bvh/bvh.py b/chroma/bvh/bvh.py
index 1c26088..baf95d6 100644
--- a/chroma/bvh/bvh.py
+++ b/chroma/bvh/bvh.py
@@ -233,6 +233,11 @@ class BVHLayerSlice(object):
'''Return number of nodes in this layer'''
return len(self.nodes)
+ def areas_fixed(self):
+ '''Return array of surface areas of all the nodes in this layer in
+ fixed point units.'''
+ return node_areas(self.nodes)
+
def area_fixed(self):
'''Return the surface area of all the nodes in this layer in
fixed point units.'''