mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
Ported ModelObject::split() to XS
This commit is contained in:
parent
334086d605
commit
a5df9fb795
4 changed files with 48 additions and 52 deletions
|
@ -14,8 +14,8 @@
|
|||
%code%{ RETVAL = THIS; %};
|
||||
|
||||
%name{_add_object} Ref<ModelObject> add_object();
|
||||
Ref<ModelObject> _add_object_clone(ModelObject* other)
|
||||
%code%{ RETVAL = THIS->add_object(*other); %};
|
||||
Ref<ModelObject> _add_object_clone(ModelObject* other, bool copy_volumes = true)
|
||||
%code%{ RETVAL = THIS->add_object(*other, copy_volumes); %};
|
||||
void delete_object(size_t idx);
|
||||
void clear_objects();
|
||||
size_t objects_count()
|
||||
|
@ -206,6 +206,12 @@ ModelMaterial::attributes()
|
|||
RETVAL = new Model();
|
||||
THIS->cut(z, RETVAL);
|
||||
%};
|
||||
|
||||
ModelObjectPtrs* split_object()
|
||||
%code%{
|
||||
RETVAL = new ModelObjectPtrs(); // leak?
|
||||
THIS->split(RETVAL);
|
||||
%};
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue