#414 overhang detection for bridge flow.

forgot to remove half of the external perimeter width
This commit is contained in:
supermerill 2020-08-20 19:17:50 +02:00
parent a42bf8602f
commit 016b1dc2e0

View File

@ -97,7 +97,8 @@ void PerimeterGenerator::process()
// We consider overhang any part where the entire nozzle diameter is not supported by the
// lower layer, so we take lower slices and offset them by half the nozzle diameter used
// in the current layer
this->_lower_slices_p = offset(*this->lower_slices, double(scale_(config->overhangs_width.get_abs_value(nozzle_diameter))));
double offset_val = double(scale_(config->overhangs_width.get_abs_value(nozzle_diameter))) - (float)(ext_perimeter_width / 2);
this->_lower_slices_p = offset(*this->lower_slices, offset_val);
}
// have to grown the perimeters if mill post-process