39 #define BOOST_TEST_MODULE COAL_BROADPHASE_DYNAMIC_AABB_TREE
40 #include <boost/test/included/unit_test.hpp>
66 return distance_callback(o1, o2, &
data, dist);
73 const std::vector<CollisionObject*>& objects = *(
data->objects);
74 const bool object0_first =
a == objects[0];
75 BOOST_CHECK_EQUAL(
data->expect_object0_then_object1, object0_first);
80 data->expect_object0_then_object1 = !
data->expect_object0_then_object1;
104 const Eigen::Vector3d position0(0.1, 0.2, 0.3);
105 const Eigen::Vector3d position1(0.11, 0.21, 0.31);
118 std::vector<CollisionObject*> objects;
119 objects.push_back(&object0);
120 objects.push_back(&object1);
122 std::vector<Eigen::Vector3d> positions;
123 positions.push_back(position0);
124 positions.push_back(position1);
127 for (
size_t i = 0; i < objects.size(); ++i) {
128 objects[i]->setTranslation(positions[i]);
129 objects[i]->computeAABB();
134 callback.data.expect_object0_then_object1 =
false;
139 for (
int count = 0; count < 8; ++count) {