mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-22 18:19:45 -07:00
Refactoring: removed _islands members in Slic3r::GCode
This commit is contained in:
@@ -64,6 +64,24 @@ ExPolygonCollection::contains_point(const Point &point) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
ExPolygonCollection::contains_line(const Line &line) const
|
||||
{
|
||||
for (ExPolygons::const_iterator it = this->expolygons.begin(); it != this->expolygons.end(); ++it) {
|
||||
if (it->contains_line(line)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
ExPolygonCollection::contains_polyline(const Polyline &polyline) const
|
||||
{
|
||||
for (ExPolygons::const_iterator it = this->expolygons.begin(); it != this->expolygons.end(); ++it) {
|
||||
if (it->contains_polyline(polyline)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
ExPolygonCollection::simplify(double tolerance)
|
||||
{
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
#include <myinit.h>
|
||||
#include "ExPolygon.hpp"
|
||||
#include "Line.hpp"
|
||||
#include "Polyline.hpp"
|
||||
|
||||
namespace Slic3r {
|
||||
|
||||
@@ -23,6 +25,8 @@ class ExPolygonCollection
|
||||
void translate(double x, double y);
|
||||
void rotate(double angle, const Point ¢er);
|
||||
bool contains_point(const Point &point) const;
|
||||
bool contains_line(const Line &line) const;
|
||||
bool contains_polyline(const Polyline &polyline) const;
|
||||
void simplify(double tolerance);
|
||||
void convex_hull(Polygon* hull) const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user