mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 09:47:58 -06:00
Implemented avoid_crossing_perimeters with VisiLibity
This commit is contained in:
parent
a02a7f1a0f
commit
5fe5021fd7
19 changed files with 6216 additions and 13 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue