mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-17 02:42:47 -07:00
Implemented avoid_crossing_perimeters with VisiLibity
This commit is contained in:
@@ -84,11 +84,14 @@ ExPolygon::is_valid() const
|
||||
bool
|
||||
ExPolygon::contains_line(const Line &line) const
|
||||
{
|
||||
Polylines pl;
|
||||
pl.push_back(line);
|
||||
|
||||
return this->contains_polyline(line);
|
||||
}
|
||||
|
||||
bool
|
||||
ExPolygon::contains_polyline(const Polyline &polyline) const
|
||||
{
|
||||
Polylines pl_out;
|
||||
diff(pl, *this, pl_out);
|
||||
diff((Polylines)polyline, *this, pl_out);
|
||||
return pl_out.empty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user