mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-30 00:22:01 +08:00
Revert "Fixed long standing bug in elephant foot compensation of holes."
This reverts commit d3d48e98955303181cd228729fd88a4cc0cedf50.
This commit is contained in:
parent
fd3c41b4d3
commit
a092fdc1ed
@ -1317,12 +1317,8 @@ ExPolygons variable_offset_inner_ex(const ExPolygon &expoly, const std::vector<s
|
||||
// 2) Offset the holes one by one, collect the results.
|
||||
ClipperLib::Paths holes;
|
||||
holes.reserve(expoly.holes.size());
|
||||
for (const Polygon &hole : expoly.holes) {
|
||||
ClipperLib::Path offsetted = mittered_offset_path_scaled(hole.points, deltas[1 + &hole - expoly.holes.data()], miter_limit);
|
||||
// Make it CCW.
|
||||
std::reverse(offsetted.begin(), offsetted.end());
|
||||
append(holes, fix_after_outer_offset(offsetted, ClipperLib::pftNegative, false));
|
||||
}
|
||||
for (const Polygon& hole : expoly.holes)
|
||||
append(holes, fix_after_outer_offset(mittered_offset_path_scaled(hole.points, deltas[1 + &hole - expoly.holes.data()], miter_limit), ClipperLib::pftNegative, false));
|
||||
#ifndef NDEBUG
|
||||
for (auto &c : holes)
|
||||
assert(ClipperLib::Area(c) > 0.);
|
||||
|
Loading…
x
Reference in New Issue
Block a user