mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Ported three PrintObject methods to XS
This commit is contained in:
parent
f8986d0ef5
commit
33fe53fd7c
5 changed files with 31 additions and 21 deletions
|
@ -53,6 +53,29 @@ PrintObject::copies() const
|
|||
return this->_copies;
|
||||
}
|
||||
|
||||
bool
|
||||
PrintObject::add_copy(const Pointf &point)
|
||||
{
|
||||
Points points = this->_copies;
|
||||
points.push_back(Point::new_scale(point.x, point.y));
|
||||
return this->set_copies(points);
|
||||
}
|
||||
|
||||
bool
|
||||
PrintObject::delete_last_copy()
|
||||
{
|
||||
Points points = this->_copies;
|
||||
points.pop_back();
|
||||
return this->set_copies(points);
|
||||
}
|
||||
|
||||
bool
|
||||
PrintObject::delete_all_copies()
|
||||
{
|
||||
Points points;
|
||||
return this->set_copies(points);
|
||||
}
|
||||
|
||||
bool
|
||||
PrintObject::set_copies(const Points &points)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue