Added debug output to help fixing unit test for 2D convex hull of sinking object on RasperryPi
This commit is contained in:
parent
90be278d98
commit
49f29e8353
1 changed files with 7 additions and 5 deletions
|
@ -109,11 +109,13 @@ SCENARIO("2D convex hull of sinking object", "[3mf]") {
|
||||||
{ -4244, 19502998 },
|
{ -4244, 19502998 },
|
||||||
{ -4242640, -8537523 }
|
{ -4242640, -8537523 }
|
||||||
};
|
};
|
||||||
bool res = hull_2d.points.size() == result.size();
|
|
||||||
if (res) {
|
bool res = hull_2d.points == result;
|
||||||
for (size_t i = 0; i < hull_2d.points.size(); ++i) {
|
|
||||||
res &= hull_2d.points[i].isApprox(result[i]);
|
std::cout << "hull_2d vertices count: " << hull_2d.points.size() << "\n";
|
||||||
}
|
std::cout << "hull_2d vertices:\n";
|
||||||
|
for (size_t i = 0; i < hull_2d.points.size(); ++i) {
|
||||||
|
std::cout << hull_2d.points[i].x() << ", " << hull_2d.points[i].y() << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
THEN("2D convex hull should match with reference") {
|
THEN("2D convex hull should match with reference") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue