fix missing gapfill

supermerill/SuperSlicer#1351
This commit is contained in:
remi durand 2021-06-23 17:43:23 +02:00
parent 22593685a3
commit 48b8fc16e0

View File

@ -930,10 +930,8 @@ void PerimeterGenerator::process()
min = std::max(min, double(Flow::new_from_spacing(EPSILON, (float)nozzle_diameter, (float)this->layer->height, false).scaled_width()));
double max = 2.2 * perimeter_spacing;
//remove areas that are too big (shouldn't occur...)
ExPolygons gaps_ex_to_test = diff_ex(
gaps,
offset2_ex(gaps, double(-max / 2), double(+max / 2)),
true);
ExPolygons too_big = offset2_ex(gaps, double(-max / 2), double(+max / 2));
ExPolygons gaps_ex_to_test = too_big.empty()? gaps : diff_ex(gaps,too_big,true);
ExPolygons gaps_ex;
const double minarea = scale_(scale_(this->config->gap_fill_min_area.get_abs_value(unscaled((double)perimeter_width)*unscaled((double)perimeter_width))));
// check each gapfill area to see if it's printable.