From 8a4a94466930205826c638a69a3501b6aecd5006 Mon Sep 17 00:00:00 2001 From: Andy Mastbaum Date: Tue, 1 May 2012 11:46:30 -0400 Subject: more unit test fixes update remaining unit tests to build BVHs with ``loader.create_geometry_from_obj`` instead of the (removed) ``build`` method. --- test/test_ray_intersection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/test_ray_intersection.py') 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)) -- cgit