Removing debug printf statements and fixed threading flag.

This commit is contained in:
igiannakas 2023-09-11 20:51:52 +01:00
parent 7f0b97e84f
commit 066dbcc0ed
3 changed files with 1 additions and 9 deletions

View file

@ -270,7 +270,6 @@ public:
float ext_perimeter_speed, float ext_perimeter_speed,
float original_speed) float original_speed)
{ {
//printf("Estimate extrusion quality triggered \n");
size_t speed_sections_count = std::min(overlaps.values.size(), speeds.values.size()); size_t speed_sections_count = std::min(overlaps.values.size(), speeds.values.size());
std::vector<std::pair<float, float>> speed_sections; std::vector<std::pair<float, float>> speed_sections;

View file

@ -502,12 +502,10 @@ void PrintObject::generate_support_material()
void PrintObject::estimate_curled_extrusions() void PrintObject::estimate_curled_extrusions()
{ {
if (this->set_started(posEstimateCurledExtrusions)) { if (this->set_started(posEstimateCurledExtrusions)) {
printf("Estimating curled Extrusions \n");
if ( std::any_of(this->print()->m_print_regions.begin(), this->print()->m_print_regions.end(), if ( std::any_of(this->print()->m_print_regions.begin(), this->print()->m_print_regions.end(),
[](const PrintRegion *region) { return region->config().enable_overhang_speed.getBool(); })) { [](const PrintRegion *region) { return region->config().enable_overhang_speed.getBool(); })) {
// Estimate curling of support material and add it to the malformaition lines of each layer // Estimate curling of support material and add it to the malformaition lines of each layer
//printf("Estimating curling of support material and add it to the malformaition lines of each layer \n");
float support_flow_width = support_material_flow(this, this->config().layer_height).width(); float support_flow_width = support_material_flow(this, this->config().layer_height).width();
SupportSpotsGenerator::Params params{this->print()->m_config.filament_type.values, SupportSpotsGenerator::Params params{this->print()->m_config.filament_type.values,
float(this->print()->m_config.inner_wall_acceleration.getFloat()), float(this->print()->m_config.inner_wall_acceleration.getFloat()),
@ -516,7 +514,7 @@ void PrintObject::estimate_curled_extrusions()
SupportSpotsGenerator::estimate_malformations(this->layers(), params); SupportSpotsGenerator::estimate_malformations(this->layers(), params);
m_print->throw_if_canceled(); m_print->throw_if_canceled();
} }
//this->set_done(posEstimateCurledExtrusions); this->set_done(posEstimateCurledExtrusions);
} }
} }

View file

@ -175,11 +175,6 @@ void estimate_malformations(LayerPtrs &layers, const Params &params)
line_out.curled_up_height = estimate_curled_up_height(middle_distance * sign, 0.5 * (a.curvature + b.curvature), line_out.curled_up_height = estimate_curled_up_height(middle_distance * sign, 0.5 * (a.curvature + b.curvature),
l->height, flow_width, bottom_line.curled_up_height, params); l->height, flow_width, bottom_line.curled_up_height, params);
/*printf("middle_distance %f, sign %f , curvature %f , l->height %f, flow_width %f, bottom_line.curled_up_height%f\n",
middle_distance, sign , 0.5 * (a.curvature + b.curvature), l->height, flow_width, bottom_line.curled_up_height);*/
//printf("Curled up height: %f\n", line_out.curled_up_height);
current_layer_lines.push_back(line_out); current_layer_lines.push_back(line_out);
} }