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.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/chroma/bvh/grid.py b/chroma/bvh/grid.py
new file mode 100644
index 0000000..9fcf125
--- /dev/null
+++ b/chroma/bvh/grid.py
@@ -0,0 +1,19 @@
+from chroma.bvh.bvh import BVH
+
+def make_recursive_grid_bvh(self, mesh, bits=11):
+ '''Returns a binary tree BVH created using a 'recursive grid' method.
+
+ This method is somewhat similar to the original Chroma BVH generator,
+ with a few adjustments:
+ * It is a strict binary tree, with dummy nodes inserted when
+ only one child is required on an inner node.
+ * Every triangle is boxed individually by a leaf node in the BVH
+ * Triangles are not rearranged in Morton order since the
+ leaf nodes are sorted instead.
+ * The GPU is used to assist in the calculation of the tree to
+ speed things up.
+
+ '''
+ pass
+
+