65 std::array<Point, 3> m = {
Point(1, 0, 0),
Point(0, 1, 0),
Point(0, 0, 1) };
71 while (estimator.advance().first) {
75 auto state = estimator.hexagonState();
76 if (state == Estimator::Neighborhood::HexagonState::Planar) {
77 std::cout <<
"Planar" << std::endl;
78 }
else if (state == Estimator::Neighborhood::HexagonState::Empty) {
79 std::cout <<
"Empty" << std::endl;
80 }
else if (state == Estimator::Neighborhood::HexagonState::NonPlanar) {
81 std::cout <<
"NonPlanar" << std::endl;
82 }
else if (state == Estimator::Neighborhood::HexagonState::NonConvex) {
83 std::cout <<
"NonConvex" << std::endl;
87 std::clog <<
"it = " << it <<
" "
88 << estimator.m(0) <<
" " << estimator.m(1) <<
" " << estimator.m(2) <<
" "
89 << estimator.getNormal() << std::endl;
96 ASSERT(estimator.getNormal() == n);