diff options
author | Andy Mastbaum <mastbaum@hep.upenn.edu> | 2012-05-01 11:46:30 -0400 |
---|---|---|
committer | tlatorre <tlatorre@uchicago.edu> | 2021-05-09 08:42:39 -0700 |
commit | 8a4a94466930205826c638a69a3501b6aecd5006 (patch) | |
tree | 61196154e6b40e3cbebc9b7ac7fa7b75ec6f2d05 /test/test_ray_intersection.py | |
parent | b22129a30493e415a6d239cc64f1695eb1a8be93 (diff) | |
download | chroma-8a4a94466930205826c638a69a3501b6aecd5006.tar.gz chroma-8a4a94466930205826c638a69a3501b6aecd5006.tar.bz2 chroma-8a4a94466930205826c638a69a3501b6aecd5006.zip |
more unit test fixes
update remaining unit tests to build BVHs with
``loader.create_geometry_from_obj`` instead of the (removed) ``build``
method.
Diffstat (limited to 'test/test_ray_intersection.py')
-rw-r--r-- | test/test_ray_intersection.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_ray_intersection.py b/test/test_ray_intersection.py index 8a33ac3..d79a9dd 100644 --- a/test/test_ray_intersection.py +++ b/test/test_ray_intersection.py @@ -9,7 +9,8 @@ class TestRayIntersection(unittest.TestCase): self.context = chroma.gpu.create_cuda_context() self.module = chroma.gpu.get_cu_module('mesh.h') self.gpu_funcs = chroma.gpu.GPUFuncs(self.module) - self.box = chroma.gpu.GPUGeometry(chroma.build(chroma.make.cube(size=1000.0))) + cube = chroma.loader.create_geometry_from_obj(chroma.make.cube(size=1000.0), update_bvh_cache=False) + self.box = chroma.gpu.GPUGeometry(cube) pos, dir = chroma.project.from_film() self.pos_gpu = ga.to_gpu(chroma.gpu.to_float3(pos)) |