mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 16:45:55 +08:00
Fix dense_infill when infill/perimeter encroachment is 0
supermerill/SuperSlicer#2243
This commit is contained in:
parent
878ea577c7
commit
56b2f2b483
@ -43,6 +43,7 @@ public:
|
||||
// and for re-starting of infills.
|
||||
ExPolygons fill_expolygons;
|
||||
// Unspecified fill polygons, used for interecting when we don't want the infill/perimeter overlap
|
||||
// note: if empty, that means there is no overlap, so you don't need to intersect with it.
|
||||
ExPolygons fill_no_overlap_expolygons;
|
||||
// collection of surfaces for infill generation
|
||||
SurfaceCollection fill_surfaces;
|
||||
|
@ -1330,7 +1330,9 @@ namespace Slic3r {
|
||||
for (int idx_dense = 0; idx_dense < dense_polys.size(); idx_dense++) {
|
||||
ExPolygon dense_poly = dense_polys[idx_dense];
|
||||
//remove overlap with perimeter
|
||||
ExPolygons offseted_dense_polys = intersection_ex({ dense_poly }, layerm->fill_no_overlap_expolygons);
|
||||
ExPolygons offseted_dense_polys = layerm->fill_no_overlap_expolygons.empty()
|
||||
? ExPolygons{dense_poly}
|
||||
: intersection_ex({ dense_poly }, layerm->fill_no_overlap_expolygons);
|
||||
//add overlap with everything
|
||||
offseted_dense_polys = offset_ex(offseted_dense_polys, overlap);
|
||||
for (ExPolygon offseted_dense_poly : offseted_dense_polys) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user