Path: Adaptive - fix for stock to leave for outside region

This commit is contained in:
kreso-t
2018-09-01 17:56:30 +02:00
committed by wmayer
parent 68b281b813
commit 0868db2fc4

View File

@@ -874,7 +874,10 @@ namespace AdaptivePath {
if(stockToLeave>NTOL) {
clipof.Clear();
clipof.AddPaths(inputPaths,JoinType::jtRound,EndType::etClosedPolygon);
clipof.Execute(inputPaths,-stockToLeave*scaleFactor);
if(opType==OperationType::otClearingOutside || opType==OperationType::otProfilingOutside)
clipof.Execute(inputPaths,stockToLeave*scaleFactor);
else
clipof.Execute(inputPaths,-stockToLeave*scaleFactor);
} else {
// fix for clipper glitches
clipof.Clear();