mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Ported ExPolygon->area()
This commit is contained in:
parent
792fcba7be
commit
706851f836
7 changed files with 19 additions and 12 deletions
|
@ -55,7 +55,7 @@ Polygon::split_at_first_point()
|
|||
}
|
||||
|
||||
double
|
||||
Polygon::area()
|
||||
Polygon::area() const
|
||||
{
|
||||
ClipperLib::Polygon p;
|
||||
Slic3rPolygon_to_ClipperPolygon(*this, p);
|
||||
|
@ -63,7 +63,7 @@ Polygon::area()
|
|||
}
|
||||
|
||||
bool
|
||||
Polygon::is_counter_clockwise()
|
||||
Polygon::is_counter_clockwise() const
|
||||
{
|
||||
ClipperLib::Polygon* p = new ClipperLib::Polygon();
|
||||
Slic3rPolygon_to_ClipperPolygon(*this, *p);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue