From 14309ab8618a80c7f67c7d80d43bbb4779f0bb2f Mon Sep 17 00:00:00 2001 From: Stan Seibert Date: Wed, 18 Jan 2012 23:10:21 -0500 Subject: Simple BVH generator using new infrastructure --- test/test_bvh_simple.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 test/test_bvh_simple.py (limited to 'test/test_bvh_simple.py') diff --git a/test/test_bvh_simple.py b/test/test_bvh_simple.py new file mode 100644 index 0000000..20c0df5 --- /dev/null +++ b/test/test_bvh_simple.py @@ -0,0 +1,14 @@ +import pycuda.autoinit +import unittest +from chroma.bvh import make_simple_bvh, BVH +import chroma.models + +import numpy as np +#from numpy.testing import assert_array_max_ulp, assert_array_equal, \ +# assert_approx_equal + +def test_simple_bvh(): + mesh = chroma.models.lionsolid() + bvh = make_simple_bvh(mesh, degree=2) + assert isinstance(bvh, BVH) + -- cgit