mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-22 16:21:24 -06:00
Background processing in C++, WIP.
This commit is contained in:
parent
8639df1cfd
commit
33e1108f65
17 changed files with 279 additions and 140 deletions
|
@ -17,7 +17,8 @@
|
|||
|
||||
bool start();
|
||||
bool stop();
|
||||
bool apply_config(DynamicPrintConfig *config);
|
||||
bool apply_config(DynamicPrintConfig *config)
|
||||
%code%{ RETVAL = THIS->apply_config(*config); %};
|
||||
|
||||
bool running();
|
||||
};
|
||||
|
|
|
@ -74,7 +74,7 @@ _constant()
|
|||
Ref<SupportLayer> get_support_layer(int idx);
|
||||
|
||||
bool step_done(PrintObjectStep step)
|
||||
%code%{ RETVAL = THIS->state.is_done(step); %};
|
||||
%code%{ RETVAL = THIS->is_step_done(step); %};
|
||||
|
||||
void adjust_layer_height_profile(coordf_t z, coordf_t layer_thickness_delta, coordf_t band_width, int action)
|
||||
%code%{
|
||||
|
@ -123,9 +123,9 @@ _constant()
|
|||
%code%{ RETVAL = THIS->regions.size(); %};
|
||||
|
||||
bool step_done(PrintStep step)
|
||||
%code%{ RETVAL = THIS->state.is_done(step); %};
|
||||
%code%{ RETVAL = THIS->is_step_done(step); %};
|
||||
bool object_step_done(PrintObjectStep step)
|
||||
%code%{ RETVAL = THIS->step_done(step); %};
|
||||
%code%{ RETVAL = THIS->is_step_done(step); %};
|
||||
|
||||
SV* filament_stats()
|
||||
%code%{
|
||||
|
|
|
@ -185,7 +185,7 @@ TriangleMesh::slice(z)
|
|||
|
||||
std::vector<ExPolygons> layers;
|
||||
TriangleMeshSlicer mslicer(THIS);
|
||||
mslicer.slice(z_f, &layers);
|
||||
mslicer.slice(z_f, &layers, [](){});
|
||||
|
||||
AV* layers_av = newAV();
|
||||
size_t len = layers.size();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue