mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-06-26 12:36:31 +03:00
Ported Polygon->is_valid() and ExPolygon->is_valid()
This commit is contained in:
@@ -92,4 +92,10 @@ Polygon::make_clockwise()
|
||||
return false;
|
||||
}
|
||||
|
||||
bool
|
||||
Polygon::is_valid() const
|
||||
{
|
||||
return this->points.size() >= 3;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user