From 5edb1858a6baf60d427a78a760806c9577737713 Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Mon, 6 Feb 2012 16:03:16 -0500 Subject: 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. --- chroma/bvh/bvh.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chroma/bvh') 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.''' -- cgit