2
0
mirror of https://github.com/boostorg/polygon.git synced 2026-02-13 12:42:12 +00:00

fixed missing function from bad merge

[SVN r69628]
This commit is contained in:
Luke Simonson
2011-03-07 18:59:29 +00:00
parent fdc7abc5c5
commit 60da85594f

View File

@@ -13,6 +13,18 @@ using namespace boost::polygon::operators;
#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)