mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 23:31:13 -06:00
Objects can be selected in 3D preview now. Double click and right click work as well
This commit is contained in:
parent
b0aa1260e2
commit
d1f58cbed5
7 changed files with 190 additions and 44 deletions
|
@ -20,6 +20,8 @@
|
|||
void clear_objects();
|
||||
size_t objects_count()
|
||||
%code%{ RETVAL = THIS->objects.size(); %};
|
||||
Ref<ModelObject> get_object(int idx)
|
||||
%code%{ RETVAL = THIS->objects.at(idx); %};
|
||||
|
||||
Ref<ModelMaterial> get_material(t_model_material_id material_id)
|
||||
%code%{
|
||||
|
|
|
@ -93,6 +93,10 @@ Point::coincides_with(point_sv)
|
|||
%code{% RETVAL = THIS->x; %};
|
||||
double y()
|
||||
%code{% RETVAL = THIS->y; %};
|
||||
void set_x(double val)
|
||||
%code{% THIS->x = val; %};
|
||||
void set_y(double val)
|
||||
%code{% THIS->y = val; %};
|
||||
void translate(double x, double y);
|
||||
void scale(double factor);
|
||||
void rotate(double angle, Pointf* center)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue