diff --git a/Packages/Polygon/test/Polygon/circulatortest.C b/Packages/Polygon/test/Polygon/circulatortest.C new file mode 100644 index 00000000000..5ad97f1a482 --- /dev/null +++ b/Packages/Polygon/test/Polygon/circulatortest.C @@ -0,0 +1,25 @@ +#include +#include +#include +#include +#include +#include + +typedef CGAL::Cartesian Rep; +typedef CGAL::Polygon_traits_2 Traits; +typedef CGAL::Point_2 Point; +typedef CGAL::Polygon_2 > Polygon; +typedef CGAL::Circulator_from_container< std::vector > Circulator; + +int main() +{ + std::vector pts; + Circulator c1(&pts); + Polygon p1(c1); + pts.push_back(Point(-3.1, 1.0)); + pts.push_back(Point(3.1, 1.0)); + pts.push_back(Point(1.1, 2.0)); + Circulator c2(&pts); + Polygon p2(c2); + return 0; +}