mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-21 15:51:10 -06:00
Ported ModelObject::rotate() and ModelObject::flip() to XS, as well as axes constants
This commit is contained in:
parent
be2f46ca68
commit
5eb3bc52ef
11 changed files with 84 additions and 46 deletions
|
@ -87,4 +87,16 @@ simplify_polygons(polygons, tolerance)
|
|||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
IV
|
||||
_constant()
|
||||
ALIAS:
|
||||
X = X
|
||||
Y = Y
|
||||
Z = Z
|
||||
PROTOTYPE:
|
||||
CODE:
|
||||
RETVAL = ix;
|
||||
OUTPUT: RETVAL
|
||||
|
||||
%}
|
||||
|
||||
|
|
|
@ -182,6 +182,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 flip(Axis axis);
|
||||
|
||||
Model* cut(double z)
|
||||
%code%{
|
||||
|
|
|
@ -184,6 +184,7 @@ Clone<BridgeDetector> O_OBJECT_SLIC3R_T
|
|||
|
||||
GLVertexArray* O_OBJECT_SLIC3R
|
||||
|
||||
Axis T_UV
|
||||
ExtrusionLoopRole T_UV
|
||||
ExtrusionRole T_UV
|
||||
FlowRole T_UV
|
||||
|
|
|
@ -173,6 +173,12 @@
|
|||
%typemap{SupportLayerPtrs*};
|
||||
|
||||
|
||||
%typemap{Axis}{parsed}{
|
||||
%cpp_type{Axis};
|
||||
%precall_code{%
|
||||
$CVar = (Axis)SvUV($PerlVar);
|
||||
%};
|
||||
};
|
||||
%typemap{SurfaceType}{parsed}{
|
||||
%cpp_type{SurfaceType};
|
||||
%precall_code{%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue