From 60da85594f73db458b15265fd9a166c1514d0ed5 Mon Sep 17 00:00:00 2001 From: Luke Simonson Date: Mon, 7 Mar 2011 18:59:29 +0000 Subject: [PATCH] fixed missing function from bad merge [SVN r69628] --- test/gtl_boost_unit_test.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/gtl_boost_unit_test.cpp b/test/gtl_boost_unit_test.cpp index 4e949bb..ee3e9a1 100644 --- a/test/gtl_boost_unit_test.cpp +++ b/test/gtl_boost_unit_test.cpp @@ -13,6 +13,18 @@ using namespace boost::polygon::operators; #include namespace boost { namespace polygon{ + void addpoly(polygon_45_set_data& pset, + int* pts, int numpts) { + std::vector > mppts; + for(unsigned int i = 0; i < numpts*2; i += 2) { + point_data pt(pts[i], pts[i+1]); + mppts.push_back(pt); + } + polygon_45_data poly; + poly.set(mppts.begin(), mppts.end()); + pset += poly; + } + template std::ostream& operator << (std::ostream& o, const interval_data& i)