mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Ported more Slic3r::GCode methods to XS
This commit is contained in:
parent
801f629fdc
commit
b4019bb438
9 changed files with 237 additions and 165 deletions
|
@ -100,6 +100,24 @@ MultiPoint::remove_duplicate_points()
|
|||
}
|
||||
}
|
||||
|
||||
void
|
||||
MultiPoint::append(const Point &point)
|
||||
{
|
||||
this->points.push_back(point);
|
||||
}
|
||||
|
||||
void
|
||||
MultiPoint::append(const Points &points)
|
||||
{
|
||||
this->append(points.begin(), points.end());
|
||||
}
|
||||
|
||||
void
|
||||
MultiPoint::append(const Points::const_iterator &begin, const Points::const_iterator &end)
|
||||
{
|
||||
this->points.insert(this->points.end(), begin, end);
|
||||
}
|
||||
|
||||
Points
|
||||
MultiPoint::_douglas_peucker(const Points &points, const double tolerance)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue