mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Ported Polygon->area
This commit is contained in:
parent
1f734807b9
commit
792fcba7be
5 changed files with 12 additions and 7 deletions
|
@ -54,6 +54,14 @@ Polygon::split_at_first_point()
|
|||
return this->split_at_index(0);
|
||||
}
|
||||
|
||||
double
|
||||
Polygon::area()
|
||||
{
|
||||
ClipperLib::Polygon p;
|
||||
Slic3rPolygon_to_ClipperPolygon(*this, p);
|
||||
return ClipperLib::Area(p);
|
||||
}
|
||||
|
||||
bool
|
||||
Polygon::is_counter_clockwise()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue