Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'xs/xsp/Model.xsp')
-rw-r--r--xs/xsp/Model.xsp19
1 files changed, 16 insertions, 3 deletions
diff --git a/xs/xsp/Model.xsp b/xs/xsp/Model.xsp
index 25c26c380..0b59b3126 100644
--- a/xs/xsp/Model.xsp
+++ b/xs/xsp/Model.xsp
@@ -301,7 +301,8 @@ ModelMaterial::attributes()
void translate(double x, double y, double z);
void scale_xyz(Pointf3* versor)
%code{% THIS->scale(*versor); %};
- void rotate(float angle, Axis axis);
+ void rotate(float angle, Pointf3* axis)
+ %code{% THIS->rotate(angle, *axis); %};
void mirror(Axis axis);
Model* cut(double z)
@@ -337,11 +338,23 @@ ModelMaterial::attributes()
%code%{ RETVAL = &THIS->config; %};
Ref<TriangleMesh> mesh()
%code%{ RETVAL = &THIS->mesh; %};
+ Ref<TriangleMesh> convex_hull()
+ %code%{ RETVAL = &THIS->get_convex_hull(); %};
bool modifier()
- %code%{ RETVAL = THIS->modifier; %};
+ %code%{ RETVAL = THIS->is_modifier(); %};
void set_modifier(bool modifier)
- %code%{ THIS->modifier = modifier; %};
+ %code%{ THIS->set_type(modifier ? ModelVolume::PARAMETER_MODIFIER : ModelVolume::MODEL_PART); %};
+ bool model_part()
+ %code%{ RETVAL = THIS->is_model_part(); %};
+ bool support_enforcer()
+ %code%{ RETVAL = THIS->is_support_enforcer(); %};
+ void set_support_enforcer()
+ %code%{ THIS->set_type(ModelVolume::SUPPORT_ENFORCER); %};
+ bool support_blocker()
+ %code%{ RETVAL = THIS->is_support_blocker(); %};
+ void set_support_blocker()
+ %code%{ THIS->set_type(ModelVolume::SUPPORT_BLOCKER); %};
size_t split(unsigned int max_extruders);