mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Support the new Clipper API
This commit is contained in:
parent
c5f7318fc9
commit
1d6a18071a
4 changed files with 51 additions and 51 deletions
|
@ -65,7 +65,7 @@ Polygon::equally_spaced_points(double distance) const
|
|||
double
|
||||
Polygon::area() const
|
||||
{
|
||||
ClipperLib::Polygon p;
|
||||
ClipperLib::Path p;
|
||||
Slic3rPolygon_to_ClipperPolygon(*this, p);
|
||||
return ClipperLib::Area(p);
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ Polygon::area() const
|
|||
bool
|
||||
Polygon::is_counter_clockwise() const
|
||||
{
|
||||
ClipperLib::Polygon* p = new ClipperLib::Polygon();
|
||||
ClipperLib::Path* p = new ClipperLib::Path();
|
||||
Slic3rPolygon_to_ClipperPolygon(*this, *p);
|
||||
bool orientation = ClipperLib::Orientation(*p);
|
||||
delete p;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue