Incomplete work for porting simplify() to XS

This commit is contained in:
Alessandro Ranellucci 2013-11-21 20:25:24 +01:00
parent 7475762a27
commit 518798beb3
24 changed files with 121 additions and 41 deletions

View file

@ -47,4 +47,14 @@ ExPolygonCollection::contains_point(const Point* point) const
return false;
}
void
ExPolygonCollection::simplify(double tolerance)
{
ExPolygons t;
for (ExPolygons::const_iterator it = this->expolygons.begin(); it != this->expolygons.end(); ++it) {
it->simplify_and_append_to(tolerance, t);
}
this->expolygons = t;
}
}