Skip to content

Commit

Permalink
fix for issue #873
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsSkibaModuleWorks committed Jul 23, 2024
1 parent 3879d3d commit c86ec77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CPP/Clipper2Lib/src/clipper.offset.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,11 @@ void ClipperOffset::OffsetPoint(Group& group, const Path64& path, size_t j, size
#else
path_out.push_back(GetPerpendic(path[j], norms[k], group_delta_));
#endif

// this extra point is the only simple way to ensure that path reversals
// (ie over-shrunk paths) are fully cleaned out with the trailing union op.
// However it's probably safe to skip this whenever an angle is almost flat.
if (cos_a < 0.99) path_out.push_back(path[j]); // (#405)
if (cos_a < 0.999) path_out.push_back(path[j]); // (#405) (#873)

#ifdef USINGZ
path_out.push_back(Point64(GetPerpendic(path[j], norms[j], group_delta_), path[j].z));
Expand Down

0 comments on commit c86ec77

Please sign in to comment.