Path: Adaptive - added stock to leave option

This commit is contained in:
kreso-t
2018-08-28 22:30:02 +02:00
committed by wmayer
parent 092b358df5
commit 0c13ef45ed
6 changed files with 32 additions and 7 deletions

View File

@@ -854,7 +854,12 @@ namespace AdaptivePath {
inputPaths.push_back(cpth);
}
SimplifyPolygons(inputPaths);
if(fabs(stockToLeave)>NTOL) {
clipof.Clear();
clipof.AddPaths(inputPaths,JoinType::jtRound,EndType::etClosedPolygon);
clipof.Execute(inputPaths,-stockToLeave*scaleFactor);
}
// *******************************
// Resolve hierarchy and run processing
// ********************************