Revert "Fixed long standing bug in elephant foot compensation of holes."
This reverts commit d3d48e9895
.
This commit is contained in:
parent
fd3c41b4d3
commit
a092fdc1ed
1 changed files with 2 additions and 6 deletions
|
@ -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.
|
// 2) Offset the holes one by one, collect the results.
|
||||||
ClipperLib::Paths holes;
|
ClipperLib::Paths holes;
|
||||||
holes.reserve(expoly.holes.size());
|
holes.reserve(expoly.holes.size());
|
||||||
for (const Polygon &hole : expoly.holes) {
|
for (const Polygon& hole : expoly.holes)
|
||||||
ClipperLib::Path offsetted = mittered_offset_path_scaled(hole.points, deltas[1 + &hole - expoly.holes.data()], miter_limit);
|
append(holes, fix_after_outer_offset(mittered_offset_path_scaled(hole.points, deltas[1 + &hole - expoly.holes.data()], miter_limit), ClipperLib::pftNegative, false));
|
||||||
// Make it CCW.
|
|
||||||
std::reverse(offsetted.begin(), offsetted.end());
|
|
||||||
append(holes, fix_after_outer_offset(offsetted, ClipperLib::pftNegative, false));
|
|
||||||
}
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
for (auto &c : holes)
|
for (auto &c : holes)
|
||||||
assert(ClipperLib::Area(c) > 0.);
|
assert(ClipperLib::Area(c) > 0.);
|
||||||
|
|
Loading…
Reference in a new issue