3DScene timer and _variable_layer_thickness_action method moved to c++

This commit is contained in:
Enrico Turri 2018-05-30 15:18:45 +02:00
parent 2f773a89df
commit 30a3b2179b
11 changed files with 389 additions and 136 deletions

View file

@ -4,6 +4,9 @@
#include "Geometry.hpp"
#include "SupportMaterial.hpp"
#include "Surface.hpp"
//############################################################################################################################################
#include "Slicing.hpp"
//############################################################################################################################################
#include <utility>
#include <boost/log/trivial.hpp>
@ -1961,4 +1964,14 @@ void PrintObject::reset_layer_height_profile()
this->model_object()->layer_height_profile_valid = false;
}
//############################################################################################################################################
void PrintObject::adjust_layer_height_profile(coordf_t z, coordf_t layer_thickness_delta, coordf_t band_width, int action)
{
update_layer_height_profile(_model_object->layer_height_profile);
Slic3r::adjust_layer_height_profile(slicing_parameters(), _model_object->layer_height_profile, z, layer_thickness_delta, band_width, LayerHeightEditActionType(action));
_model_object->layer_height_profile_valid = true;
layer_height_profile_valid = false;
}
//############################################################################################################################################
} // namespace Slic3r