test/polygon_event_point_test.cpp
// The polygons are sorted in different orders in different dimensions.
The polygons are sorted in different orders in different dimensions.
The polygons are sorted in different orders in different dimensions .
TEST(MakeEventPoints, DifferentDimensionSort) {
  std::vector<BSPPolygon<AABBConvexPolygon<>>> polygons;
  polygons.push_back(MakeTriangleForInterval(0, Point3(0, 0, 0),
                                             Point3(1, 1, 1)));
  polygons.push_back(MakeTriangleForInterval(0, Point3(1, 2, 2),
                                             Point3(2, 3, 3)));
  polygons.push_back(MakeTriangleForInterval(0, Point3(2, 1, 1),
                                             Point3(3, 2, 2)));
  for (size_t dimension = 0; dimension < 3; ++dimension) {
    PolygonEventPoint event_points[8];
    MakeEventPoints(dimension, polygons, event_points);
    CheckSorted(dimension, polygons, event_points);
  }
}
TEST ( MakeEventPoints , DifferentDimensionSort ) { std :: vector < BSPPolygon < AABBConvexPolygon < > > > polygons ; polygons . push_back ( MakeTriangleForInterval ( 0 , Point3 ( 0 , 0 , 0 ) , Point3 ( 1 , 1 , 1 ) ) ) ; polygons . push_back ( MakeTriangleForInterval ( 0 , Point3 ( 1 , 2 , 2 ) , Point3 ( 2 , 3 , 3 ) ) ) ; polygons . push_back ( MakeTriangleForInterval ( 0 , Point3 ( 2 , 1 , 1 ) , Point3 ( 3 , 2 , 2 ) ) ) ; for ( size_t dimension = 0 ; dimension < 3 ; ++ dimension ) { PolygonEventPoint event_points [ 8 ] ; MakeEventPoints ( dimension , polygons , event_points ) ; CheckSorted ( dimension , polygons , event_points ) ; } }
The polygons are sorted in different orders in different dimensions.
The polygons are sorted in different orders in different dimensions .