Merge pull request #2505 from kreso-t/master
PathAdaptive: Increased accuracy for small tools
This commit is contained in:
@@ -1676,11 +1676,14 @@ std::list<AdaptiveOutput> Adaptive2d::Execute(const DPaths &stockPaths, const DP
|
||||
tolerance = 0.2;
|
||||
|
||||
scaleFactor = RESOLUTION_FACTOR / tolerance;
|
||||
long maxScaleFactor = toolDiameter<1.0 ? 10000: 1000;
|
||||
|
||||
if (stepOverFactor * toolDiameter < 1.0)
|
||||
scaleFactor *= 1.0 / (stepOverFactor * toolDiameter);
|
||||
if (scaleFactor > 1000)
|
||||
scaleFactor = 1000;
|
||||
|
||||
|
||||
if (scaleFactor > maxScaleFactor )
|
||||
scaleFactor = maxScaleFactor;
|
||||
//scaleFactor = round(scaleFactor);
|
||||
|
||||
current_region=0;
|
||||
|
||||
Reference in New Issue
Block a user