Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juj committed May 14, 2020
1 parent a577cf7 commit bf93621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/NegativeTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1714,7 +1714,7 @@ RANDOMIZED_TEST(RayTriangleMeshNoIntersect)
Plane p(vec::RandomBox(rng, POINT_VEC_SCALAR(-SCALE), POINT_VEC_SCALAR(SCALE)), vec::RandomDir(rng));
Polyhedron a = RandomPolyhedronInHalfspace(p);
TriangleMesh tm;
tm.Set(a);
tm.SetConvex(a);
p.ReverseNormal();
Ray b = RandomRayInHalfspace(p);
float d = tm.IntersectRay(b);
Expand All @@ -1727,7 +1727,7 @@ RANDOMIZED_TEST(RayKdTreeNoIntersect)
Plane p(vec::RandomBox(rng, POINT_VEC_SCALAR(-SCALE), POINT_VEC_SCALAR(SCALE)), vec::RandomDir(rng));
Polyhedron a = RandomPolyhedronInHalfspace(p);
KdTree<Triangle> t;
TriangleArray tris = a.Triangulate();
TriangleArray tris = a.TriangulateConvex();
if (!tris.empty())
t.AddObjects((Triangle*)&tris[0], (int)tris.size());
t.Build();
Expand Down

0 comments on commit bf93621

Please sign in to comment.