From 03a66e3e2cb530104da373fbd5c25dc05c0da030 Mon Sep 17 00:00:00 2001 From: Geert-Jan Giezeman Date: Wed, 6 Oct 1999 11:17:04 +0000 Subject: [PATCH] Polygon initialised with circulator --- .../Polygon/test/Polygon/circulatortest.C | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Packages/Polygon/test/Polygon/circulatortest.C 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; +}