summaryrefslogtreecommitdiff
path: root/chroma
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2012-02-06 16:03:16 -0500
committertlatorre <tlatorre@uchicago.edu>2021-05-09 08:42:38 -0700
commit5edb1858a6baf60d427a78a760806c9577737713 (patch)
tree01cfb9e94714b0cfabce4f4fb7af8839667f2222 /chroma
parent630aecaaf9df6afb43ccd5f509ec3b8a118f40f2 (diff)
downloadchroma-5edb1858a6baf60d427a78a760806c9577737713.tar.gz
chroma-5edb1858a6baf60d427a78a760806c9577737713.tar.bz2
chroma-5edb1858a6baf60d427a78a760806c9577737713.zip
Add a chroma-bvh hist function that displays a ROOT histogram of the
areas of the BVH nodes in a particular layer of the tree.
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.'''