Path: Adaptive - bugfix

This commit is contained in:
kreso-t
2018-09-01 10:22:06 +02:00
committed by wmayer
parent 8ab4031073
commit b5646b7504

View File

@@ -855,9 +855,20 @@ namespace AdaptivePath {
}
SimplifyPolygons(inputPaths);
clipof.Clear();
clipof.AddPaths(inputPaths,JoinType::jtRound,EndType::etClosedPolygon);
clipof.Execute(inputPaths,-stockToLeave*scaleFactor-1);
if(stockToLeave>NTOL) {
clipof.Clear();
clipof.AddPaths(inputPaths,JoinType::jtRound,EndType::etClosedPolygon);
clipof.Execute(inputPaths,-stockToLeave*scaleFactor);
} else {
// fix for clipper glitches
clipof.Clear();
clipof.AddPaths(inputPaths,JoinType::jtRound,EndType::etClosedPolygon);
clipof.Execute(inputPaths,-1);
clipof.Clear();
clipof.AddPaths(inputPaths,JoinType::jtRound,EndType::etClosedPolygon);
clipof.Execute(inputPaths,1);
}
// *******************************
// Resolve hierarchy and run processing