Skip to content
Snippets Groups Projects
Commit 7601ea0e authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

test no hits case for rayIntersection method

parent 51a87a4d
No related branches found
No related tags found
No related merge requests found
......@@ -219,7 +219,7 @@ def test_trimesh_no_trimesh():
assert mesh.trimesh() is None
locs, tris = mesh.rayIntersection([[0, 0, 0]], [[0, 0, 1]])
assert locs.size == 0
assert locs.size == 0
assert tris.size == 0
def test_trimesh():
......@@ -253,3 +253,8 @@ def test_rayIntersection():
expected[0, axis] = -1
assert np.all(np.isclose(loc, expected))
loc, tri = mesh.rayIntersection([[-1, -1, -1]], [[-1, -1, -1]])
assert loc.size == 0
assert tri.size == 0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment