Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r69628 - trunk/libs/polygon/test
From: lucanus.j.simonson_at_[hidden]
Date: 2011-03-07 13:59:30


Author: ljsimons
Date: 2011-03-07 13:59:29 EST (Mon, 07 Mar 2011)
New Revision: 69628
URL: http://svn.boost.org/trac/boost/changeset/69628

Log:
fixed missing function from bad merge
Text files modified:
   trunk/libs/polygon/test/gtl_boost_unit_test.cpp | 12 ++++++++++++
   1 files changed, 12 insertions(+), 0 deletions(-)

Modified: trunk/libs/polygon/test/gtl_boost_unit_test.cpp
==============================================================================
--- trunk/libs/polygon/test/gtl_boost_unit_test.cpp (original)
+++ trunk/libs/polygon/test/gtl_boost_unit_test.cpp 2011-03-07 13:59:29 EST (Mon, 07 Mar 2011)
@@ -13,6 +13,18 @@
 #include <stdlib.h>
 
 namespace boost { namespace polygon{
+ void addpoly(polygon_45_set_data<int>& pset,
+ int* pts, int numpts) {
+ std::vector<point_data<int> > mppts;
+ for(unsigned int i = 0; i < numpts*2; i += 2) {
+ point_data<int> pt(pts[i], pts[i+1]);
+ mppts.push_back(pt);
+ }
+ polygon_45_data<int> poly;
+ poly.set(mppts.begin(), mppts.end());
+ pset += poly;
+ }
+
 
   template <class T>
   std::ostream& operator << (std::ostream& o, const interval_data<T>& i)


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk