diff --git a/src/libslic3r/Fill/Fill.cpp b/src/libslic3r/Fill/Fill.cpp index abf4b1a2b..ed735a38b 100644 --- a/src/libslic3r/Fill/Fill.cpp +++ b/src/libslic3r/Fill/Fill.cpp @@ -20,7 +20,7 @@ namespace Slic3r { -static constexpr const float NarrowInfillAreaThresholdMM = 3.f; +//static constexpr const float NarrowInfillAreaThresholdMM = 3.f; struct SurfaceFillParams { diff --git a/src/libslic3r/GCode/WipeTower.cpp b/src/libslic3r/GCode/WipeTower.cpp index 54c6199ec..82b602211 100644 --- a/src/libslic3r/GCode/WipeTower.cpp +++ b/src/libslic3r/GCode/WipeTower.cpp @@ -1364,14 +1364,9 @@ std::vector> WipeTower::extract_wipe_volumes(const PrintConfi wipe_volumes.push_back(std::vector(wiping_matrix.begin()+i*number_of_extruders, wiping_matrix.begin()+(i+1)*number_of_extruders)); // Also include filament_minimal_purge_on_wipe_tower. This is needed for the preview. - for (unsigned int i = 0; iexpolygon); + worth_bridging = intersection(closing(worth_bridging, float(SCALED_EPSILON)), s->expolygon); candidate_surfaces.push_back(CandidateSurface(s, lidx, worth_bridging, region, 0)); #ifdef DEBUG_BRIDGE_OVER_INFILL @@ -1860,7 +1860,7 @@ void PrintObject::bridge_over_infill() // cluster layers by depth needed for thick bridges. Each cluster is to be processed by single thread sequentially, so that bridges cannot appear one on another std::vector> clustered_layers_for_threads; - float target_flow_height_factor = 0.9; + float target_flow_height_factor = 0.9f; { std::vector layers_with_candidates; std::map layer_area_covered_by_candidates; @@ -1937,9 +1937,9 @@ void PrintObject::bridge_over_infill() } } layers_sparse_infill = union_ex(layers_sparse_infill); - layers_sparse_infill = closing_ex(layers_sparse_infill, SCALED_EPSILON); + layers_sparse_infill = closing_ex(layers_sparse_infill, float(SCALED_EPSILON)); not_sparse_infill = union_ex(not_sparse_infill); - not_sparse_infill = closing_ex(not_sparse_infill, SCALED_EPSILON); + not_sparse_infill = closing_ex(not_sparse_infill, float(SCALED_EPSILON)); return diff(layers_sparse_infill, not_sparse_infill); }; @@ -2276,8 +2276,8 @@ void PrintObject::bridge_over_infill() lightning_area.insert(lightning_area.end(), l.begin(), l.end()); } } - total_fill_area = closing(total_fill_area, SCALED_EPSILON); - expansion_area = closing(expansion_area, SCALED_EPSILON); + total_fill_area = closing(total_fill_area, float(SCALED_EPSILON)); + expansion_area = closing(expansion_area, float(SCALED_EPSILON)); expansion_area = intersection(expansion_area, deep_infill_area); Polylines anchors = intersection_pl(infill_lines[lidx - 1], shrink(expansion_area, spacing)); Polygons internal_unsupported_area = shrink(deep_infill_area, spacing * 4.5);