From 4603f616614647613833d9586c2ea9232effe8a9 Mon Sep 17 00:00:00 2001 From: kreso-t Date: Wed, 29 Aug 2018 18:27:11 +0200 Subject: [PATCH] Path: Adaptive - fine tuning --- src/Mod/Path/libarea/Adaptive.cpp | 2 +- src/Mod/Path/libarea/Adaptive.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mod/Path/libarea/Adaptive.cpp b/src/Mod/Path/libarea/Adaptive.cpp index a614709b46..6cead6c467 100644 --- a/src/Mod/Path/libarea/Adaptive.cpp +++ b/src/Mod/Path/libarea/Adaptive.cpp @@ -1413,7 +1413,7 @@ namespace AdaptivePath { toClearPath.clear(); Perf_ExpandCleared.Stop(); } - if(cumulativeCutArea>MIN_CUT_AREA_FACTOR*stepScaled*stepOverFactor*referenceCutArea) { + if(cumulativeCutArea>tolerance*MIN_CUT_AREA_FACTOR*stepScaled*stepOverFactor*referenceCutArea) { Path cleaned; CleanPath(passToolPath,cleaned,CLEAN_PATH_TOLERANCE); total_output_points+=cleaned.size(); diff --git a/src/Mod/Path/libarea/Adaptive.hpp b/src/Mod/Path/libarea/Adaptive.hpp index 7b37ee6b07..e46774f541 100644 --- a/src/Mod/Path/libarea/Adaptive.hpp +++ b/src/Mod/Path/libarea/Adaptive.hpp @@ -115,7 +115,7 @@ namespace AdaptivePath { const double FINISHING_CLEAN_PATH_TOLERANCE = 0.1; // used for filtering out of insignificant cuts: - const double MIN_CUT_AREA_FACTOR = 0.02; // influences filtering of cuts that with cumulative area below threshold, reasonable value is between 0.01 and 0.1 + const double MIN_CUT_AREA_FACTOR = 0.1; // influences filtering of cuts that with cumulative area below threshold, reasonable value is between 0.1 and 1 const long PASSES_LIMIT = __LONG_MAX__; // limit used while debugging const long POINTS_PER_PASS_LIMIT = __LONG_MAX__; // limit used while debugging