mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-25 07:34:03 -06:00
Merge branch 'acp-voronoi'
Conflicts: xs/xsp/my.map
This commit is contained in:
commit
3ff613d166
18 changed files with 509 additions and 18 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue