fix cam tests

tbh the test seems kind of unstable
This commit is contained in:
David Kaufman
2025-10-08 17:00:37 -04:00
committed by Kacper Donat
parent 62caf967c7
commit f4f8bd2c81

View File

@@ -1759,7 +1759,7 @@ std::list<AdaptiveOutput> Adaptive2d::Execute(
tolerance = min(tolerance, 1.0);
// 1/"tolerance" = number of min-size adaptive steps per stepover
scaleFactor = MIN_STEP_CLIPPER / tolerance / (stepOverFactor * toolDiameter);
scaleFactor = MIN_STEP_CLIPPER / tolerance / min(1.0, stepOverFactor * toolDiameter);
current_region = 0;
cout << "Tool Diameter: " << toolDiameter << endl;