Merge pull request #34084 from Xrayez/fix-slow-polyline

Fix severe performance drop while deflating polylines
This commit is contained in:
Rémi Verschelde 2019-12-03 15:15:20 +01:00 committed by GitHub
commit 7255d6c123
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1158,7 +1158,7 @@ Vector<Vector<Point2> > Geometry::_polypath_offset(const Vector<Point2> &p_polyp
case END_SQUARE: et = etOpenSquare; break; case END_SQUARE: et = etOpenSquare; break;
case END_ROUND: et = etOpenRound; break; case END_ROUND: et = etOpenRound; break;
} }
ClipperOffset co; ClipperOffset co(2.0, 0.25 * SCALE_FACTOR); // Defaults from ClipperOffset.
Path path; Path path;
// Need to scale points (Clipper's requirement for robust computation). // Need to scale points (Clipper's requirement for robust computation).