mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 11:17:51 -06:00
Refactored ClipperUtils API for a more consistent arguments convention
This commit is contained in:
parent
28466750e6
commit
bf0eb1af0c
14 changed files with 204 additions and 205 deletions
|
@ -96,7 +96,7 @@ double
|
|||
Polygon::area() const
|
||||
{
|
||||
ClipperLib::Path p;
|
||||
Slic3rMultiPoint_to_ClipperPath(*this, p);
|
||||
Slic3rMultiPoint_to_ClipperPath(*this, &p);
|
||||
return ClipperLib::Area(p);
|
||||
}
|
||||
|
||||
|
@ -104,7 +104,7 @@ bool
|
|||
Polygon::is_counter_clockwise() const
|
||||
{
|
||||
ClipperLib::Path p;
|
||||
Slic3rMultiPoint_to_ClipperPath(*this, p);
|
||||
Slic3rMultiPoint_to_ClipperPath(*this, &p);
|
||||
return ClipperLib::Orientation(p);
|
||||
}
|
||||
|
||||
|
@ -163,7 +163,7 @@ Polygon::simplify(double tolerance) const
|
|||
|
||||
Polygons pp;
|
||||
pp.push_back(p);
|
||||
simplify_polygons(pp, pp);
|
||||
simplify_polygons(pp, &pp);
|
||||
return pp;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue