mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Plater: increase, decrease, set_number_of_copies, arrange
This commit is contained in:
parent
6563cff246
commit
8337d4675f
7 changed files with 110 additions and 58 deletions
|
@ -609,6 +609,15 @@ ModelInstance* ModelObject::add_instance(const ModelInstance &other)
|
|||
return i;
|
||||
}
|
||||
|
||||
ModelInstance* ModelObject::add_instance(const Vec3d &offset, const Vec3d &scaling_factor, const Vec3d &rotation)
|
||||
{
|
||||
auto *instance = add_instance();
|
||||
instance->set_offset(offset);
|
||||
instance->set_scaling_factor(scaling_factor);
|
||||
instance->set_rotation(rotation);
|
||||
return instance;
|
||||
}
|
||||
|
||||
void ModelObject::delete_instance(size_t idx)
|
||||
{
|
||||
ModelInstancePtrs::iterator i = this->instances.begin() + idx;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue