diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-12-03 15:15:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-03 15:15:20 +0100 |
commit | 7255d6c1232661b5f67c89f8a3fc35b5f88814a8 (patch) | |
tree | d77791e182464d4d52fdea401ca6ea012e497ae1 | |
parent | 52e2105e61704bd078e9d0e2a07257512e761cb3 (diff) | |
parent | 749d917424e20d6af61746c0d69fb54c50619f80 (diff) |
Merge pull request #34084 from Xrayez/fix-slow-polyline
Fix severe performance drop while deflating polylines
-rw-r--r-- | core/math/geometry.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/geometry.cpp b/core/math/geometry.cpp index e0ead8446f..ada5107a2c 100644 --- a/core/math/geometry.cpp +++ b/core/math/geometry.cpp @@ -1158,7 +1158,7 @@ Vector<Vector<Point2> > Geometry::_polypath_offset(const Vector<Point2> &p_polyp case END_SQUARE: et = etOpenSquare; break; case END_ROUND: et = etOpenRound; break; } - ClipperOffset co; + ClipperOffset co(2.0, 0.25 * SCALE_FACTOR); // Defaults from ClipperOffset. Path path; // Need to scale points (Clipper's requirement for robust computation). |