diff options
author | Stan Seibert <stan@mtrr.org> | 2012-02-15 15:32:23 -0500 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2021-05-09 08:42:38 -0700 |
commit | 65bf1df06c3a97f8346fb27b9c7dcc5f4d52e5f7 (patch) | |
tree | 4f19e62dc9794a9504641ef44eb6d985ae00fd84 /bin | |
parent | bd4a0d0cc59b80dca84471174b2928bbd4c1586e (diff) | |
download | chroma-65bf1df06c3a97f8346fb27b9c7dcc5f4d52e5f7.tar.gz chroma-65bf1df06c3a97f8346fb27b9c7dcc5f4d52e5f7.tar.bz2 chroma-65bf1df06c3a97f8346fb27b9c7dcc5f4d52e5f7.zip |
New BVH algorithm: Recursive Grid
This is an adaptation of the original Chroma BVH construction algorithm.
The generation stage is very slow, but can be fixed.
Diffstat (limited to 'bin')
-rw-r--r-- | bin/chroma-bvh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/chroma-bvh b/bin/chroma-bvh index 1bc256e..e3e6a8c 100644 --- a/bin/chroma-bvh +++ b/bin/chroma-bvh @@ -9,7 +9,7 @@ import numpy as np from chroma.cache import Cache from chroma.loader import load_geometry_from_string from chroma.log import logger, logging -from chroma.bvh import make_simple_bvh +from chroma.bvh import make_recursive_grid_bvh from chroma.gpu import create_cuda_context from chroma.gpu.bvh import optimize_layer @@ -85,7 +85,7 @@ def create(cache, args): start = time.time() context = create_cuda_context() - bvh = make_simple_bvh(geometry.mesh, degree=degree) + bvh = make_recursive_grid_bvh(geometry.mesh, target_degree=degree) context.pop() logger.info('BVH generated in %1.1f seconds.' % (time.time() - start)) |