Background processing in C++, WIP.

This commit is contained in:
bubnikv 2018-03-28 17:05:31 +02:00
parent 8639df1cfd
commit 33e1108f65
17 changed files with 279 additions and 140 deletions

View file

@ -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();
};

View file

@ -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%{

View file

@ -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();