mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-28 15:45:30 +00:00
Ported ModelObject::split() to XS
This commit is contained in:
@@ -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);
|
||||
%};
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user