summaryrefslogtreecommitdiff
path: root/test/test_bvh_simple.py
blob: 20c0df56f47eae37c528b87203d67483f1a5be06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)