Implemented avoid_crossing_perimeters with VisiLibity

This commit is contained in:
Alessandro Ranellucci 2014-05-13 20:06:01 +02:00
parent a02a7f1a0f
commit 5fe5021fd7
19 changed files with 6216 additions and 13 deletions

View file

@ -3,6 +3,17 @@
namespace Slic3r {
ExPolygonCollection::operator Points() const
{
Points points;
Polygons pp = *this;
for (Polygons::const_iterator poly = pp.begin(); poly != pp.end(); ++poly) {
for (Points::const_iterator point = poly->points.begin(); point != poly->points.end(); ++point)
points.push_back(*point);
}
return points;
}
ExPolygonCollection::operator Polygons() const
{
Polygons polygons;
@ -15,6 +26,11 @@ ExPolygonCollection::operator Polygons() const
return polygons;
}
ExPolygonCollection::operator ExPolygons&()
{
return this->expolygons;
}
void
ExPolygonCollection::scale(double factor)
{