Path: Adaptive - fine tuning

This commit is contained in:
kreso-t
2018-08-29 18:27:11 +02:00
committed by wmayer
parent 51e3396759
commit 4603f61661
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -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