Skip to content
Snippets Groups Projects
Commit a815876b authored by Joseph Mirabel's avatar Joseph Mirabel
Browse files

[Minor] Fix compilation warning in unit test.

parent 0af9bc88
No related branches found
No related tags found
No related merge requests found
...@@ -71,7 +71,7 @@ void testBVHModelPointCloud() ...@@ -71,7 +71,7 @@ void testBVHModelPointCloud()
return; return;
} }
Box box; Box box (Vec3f::Ones());
double a = box.halfSide[0]; double a = box.halfSide[0];
double b = box.halfSide[1]; double b = box.halfSide[1];
double c = box.halfSide[2]; double c = box.halfSide[2];
...@@ -110,7 +110,7 @@ template<typename BV> ...@@ -110,7 +110,7 @@ template<typename BV>
void testBVHModelTriangles() void testBVHModelTriangles()
{ {
boost::shared_ptr<BVHModel<BV> > model(new BVHModel<BV>); boost::shared_ptr<BVHModel<BV> > model(new BVHModel<BV>);
Box box(1,1,1); Box box (Vec3f::Ones());
AABB aabb (Vec3f(-1,0,-1), Vec3f(1,1,1)); AABB aabb (Vec3f(-1,0,-1), Vec3f(1,1,1));
double a = box.halfSide[0]; double a = box.halfSide[0];
...@@ -200,7 +200,7 @@ template<typename BV> ...@@ -200,7 +200,7 @@ template<typename BV>
void testBVHModelSubModel() void testBVHModelSubModel()
{ {
boost::shared_ptr<BVHModel<BV> > model(new BVHModel<BV>); boost::shared_ptr<BVHModel<BV> > model(new BVHModel<BV>);
Box box; Box box (Vec3f::Ones());
double a = box.halfSide[0]; double a = box.halfSide[0];
double b = box.halfSide[1]; double b = box.halfSide[1];
......
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