source file : bezier_2d_isect.c
function : ControlPolygonFlatEnough()
in case the first and last point of the bezier curve have the same Y:
a = V[Y] - V[degree][Y];
we have a division by zero:
a2 = a;
b2 = b;
c2 = c + max_distance_above;
det = a1 * b2 - a2 * b1; dInv = 1.0/det;
being a1 always ZERO, det is != ZERO only if a2==a id different from ZERO.
Log in to post a comment.