mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Ported regular_points() to XS and renamed it to equally_spaced_points()
This commit is contained in:
@@ -53,6 +53,15 @@ Polygon::split_at_first_point() const
|
||||
return this->split_at_index(0);
|
||||
}
|
||||
|
||||
Points
|
||||
Polygon::equally_spaced_points(double distance) const
|
||||
{
|
||||
Polyline* polyline = this->split_at_first_point();
|
||||
Points pts = polyline->equally_spaced_points(distance);
|
||||
delete polyline;
|
||||
return pts;
|
||||
}
|
||||
|
||||
double
|
||||
Polygon::area() const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user