20 Eigen::VectorXd boundMin(3);
21 boundMin << 1.0, 2.0, 3.0;
22 Eigen::VectorXd boundMax(3);
23 boundMax << 4.0, 5.0, 6.0;
31 Eigen::VectorXd boundMin(2);
33 Eigen::VectorXd boundMax(2);
78 Vertex v1(Eigen::Vector3d(-1.0, 3.0, 0.5), 0);
83 BOOST_TEST(bb.dataVector() == compareData);
88 Vertex v1(Eigen::Vector2d(-4.0, 2.0), 0);
92 BOOST_TEST(bb.dataVector() == compareData);
174 Eigen::Vector3d compareMin(0.0, -1.0, 2.0);
175 Eigen::Vector3d compareMax(1.0, 3.0, 4.0);
176 BOOST_TEST(compareMin == bb.minCorner());
177 BOOST_TEST(compareMax == bb.maxCorner());
183 Eigen::Vector2d compareMin(-1.0, 2.0);
184 Eigen::Vector2d compareMax(3.0, 4.0);
185 BOOST_TEST(compareMin == bb.minCorner());
186 BOOST_TEST(compareMax == bb.maxCorner());
198 BOOST_TEST(bb.getEdgeLength(0) == 1.0);
199 BOOST_TEST(bb.getEdgeLength(1) == 4.0);
200 BOOST_TEST(bb.getEdgeLength(2) == 2.0);
202 BOOST_TEST(bb.longestEdgeLength() == 4.0);
208 BOOST_TEST(bb.getEdgeLength(0) == 4.0);
209 BOOST_TEST(bb.getEdgeLength(1) == 2.0);
211 BOOST_TEST(bb.longestEdgeLength() == 4.0);
224 double compareArea = 4.0;
225 BOOST_TEST(bb.getArea(deadAxis) == compareArea);
229 double compareArea = 2.0;
230 BOOST_TEST(bb.getArea(deadAxis) == compareArea);
234 double compareArea = 8.0;
235 BOOST_TEST(bb.getArea(deadAxis) == compareArea);
239 double compareArea = 8.0;
240 BOOST_TEST(bb.getArea(deadAxis) == compareArea);
248 double compareArea = 1.0;
249 BOOST_TEST(bb.getArea(deadAxis) == compareArea);
253 double compareArea = 4.0;
254 BOOST_TEST(bb.getArea(deadAxis) == compareArea);
258 double compareArea = 4.0;
259 BOOST_TEST(bb.getArea(deadAxis) == compareArea);
331 Vertex v1(Eigen::Vector3d(0.2, 1.0, 3.0), 0);
332 Vertex v2(Eigen::Vector3d(1.2, -2.0, 5.0), 0);
334 BOOST_TEST(bb.contains(v1));
335 BOOST_TEST(!bb.contains(v2));
340 Vertex v1(Eigen::Vector2d(0.2, 1.0), 0);
341 Vertex v2(Eigen::Vector2d(1.2, -2.0), 0);
343 BOOST_TEST(bb.contains(v1));
344 BOOST_TEST(!bb.contains(v2));
348 Vertex v1(Eigen::Vector3d(0.0, 0.0, 0.0), 0);
349 Vertex v2(Eigen::Vector3d(1.2, -2.0, 1.0), 0);
351 BOOST_TEST(bb.contains(v1));
352 BOOST_TEST(!bb.contains(v2));
356 Vertex v1(Eigen::Vector2d(0.0, 0.0), 0);
357 Vertex v2(Eigen::Vector2d(1.2, -2.0), 0);
359 BOOST_TEST(bb.contains(v1));
360 BOOST_TEST(!bb.contains(v2));