mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 04:15:51 +08:00
#609 fix a bug that can happens when (positive) offsetting with a big miter limit and two island merge
This commit is contained in:
parent
491e49a2eb
commit
b63d791685
@ -2768,6 +2768,8 @@ FillRectilinear2Peri::fill_surface_extrusion(const Surface *surface, const FillP
|
||||
ExPolygons path_perimeter = offset2_ex(surface->expolygon,
|
||||
scale_(-this->get_spacing()), scale_(this->get_spacing() / 2),
|
||||
ClipperLib::jtMiter, scale_(this->get_spacing()) * 10);
|
||||
//fix a bug that can happens when (positive) offsetting with a big miter limit and two island merge. See https://github.com/supermerill/SuperSlicer/issues/609
|
||||
path_perimeter = intersection_ex(path_perimeter, offset_ex(surface->expolygon, scale_(-this->get_spacing() / 2)));
|
||||
for (ExPolygon &expolygon : path_perimeter) {
|
||||
expolygon.contour.make_counter_clockwise();
|
||||
polylines_1.push_back(expolygon.contour.split_at_index(0));
|
||||
|
Loading…
x
Reference in New Issue
Block a user