CAM: fix too long comments that are problematic for precommit

This commit is contained in:
Adrian Insaurralde Avalos
2024-08-26 15:09:36 -04:00
parent cd6c1d9aa2
commit 261ef09348
3 changed files with 221 additions and 111 deletions

View File

@@ -2843,9 +2843,11 @@ void Adaptive2d::ProcessPolyNode(Paths boundPaths, Paths toolBoundPaths)
areaPD = area / double(stepScaled); // area per distance
interp.addPoint(areaPD, angle);
double error = areaPD - targetAreaPD;
// cout << " iter:" << iteration << " angle:" << angle << " area:" << areaPD << " target:" << targetAreaPD << " error:" << error << " max:"<< maxError << endl;
if (fabs(error) < maxError)
double error = areaPD - targetAreaPD;
// cout << " iter:" << iteration << " angle:" << angle << " area:" << areaPD
// << " target:" << targetAreaPD << " error:" << error << " max:" << maxError
// << endl;
if (fabs(error) < maxError)
{
angleHistory.push_back(angle);
if (angleHistory.size() > ANGLE_HISTORY_POINTS)