Skip to content

Commit

Permalink
test/python: test empty BVH model
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Dec 30, 2023
1 parent 22074cc commit f1c068f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/python_unit/geometric_shapes.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,11 @@ def test_cone(self):
Ic_ref = np.diag([Icx_ref, Icx_ref, Iz_ref])
self.assertApprox(Ic, Ic_ref)

def test_BVH(self):
bvh = hppfcl.BVHModelOBBRSS()
self.assertEqual(bvh.num_vertices, 0)
self.assertEqual(bvh.vertices().shape, (0, 3))

def test_convex(self):
verts = hppfcl.StdVec_Vec3f()
faces = hppfcl.StdVec_Triangle()
Expand Down

0 comments on commit f1c068f

Please sign in to comment.