Diagonal curve should be bypassed when it is linear, regardless of node count, fixes #3902

This commit is contained in:
Morgan Hardwood
2017-05-31 18:55:41 +02:00
parent ebf93dfaa8
commit 95f3eaf001

View File

@@ -58,7 +58,7 @@ DiagonalCurve::DiagonalCurve (const std::vector<double>& p, int poly_pn)
x[i] = p[ix++]; x[i] = p[ix++];
y[i] = p[ix++]; y[i] = p[ix++];
if (x[i] != y[i]) { if (std::fabs(x[i] - y[i]) >= 0.000009) {
identity = false; identity = false;
} }
} }