Do not generate other than sparse infill lines

Split jobs if candidates bounding boxes do not overlap - otherwise it can become completely linearized and very slow
Improve formatting
This commit is contained in:
PavelMikus 2023-03-10 15:35:11 +01:00 committed by Pavel Mikuš
parent ad693532d3
commit d223eef38d
2 changed files with 121 additions and 81 deletions
src/libslic3r/Fill

View file

@ -649,6 +649,10 @@ Polylines Layer::generate_sparse_infill_polylines_for_anchoring(FillAdaptive::Oc
Polylines sparse_infill_polylines{};
for (SurfaceFill &surface_fill : surface_fills) {
if (surface_fill.surface.surface_type != stInternal) {
continue;
}
switch (surface_fill.params.pattern) {
case ipLightning: {
auto polylines = to_polylines(shrink_ex(surface_fill.expolygons, 5.0 * surface_fill.params.flow.scaled_spacing()));