X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fbezier.cpp;h=83db943692e39a2f0509425234f2c43e82c49cdd;hp=88d9c1ce4255eb55053a43863c766e04b4163be3;hb=HEAD;hpb=f0b6c9b6b95fde134927c395afbfbbbc057868e6 diff --git a/src/bezier.cpp b/src/bezier.cpp index 88d9c1c..83db943 100644 --- a/src/bezier.cpp +++ b/src/bezier.cpp @@ -96,16 +96,13 @@ vector SolveCubic(const BReal & a, const BReal & b, const BReal & c, cons //Debug("%u turning points", turns.size()); for (unsigned i = 1; i < turns.size(); ++i) { - if (tl > max) break; - tu = std::min(turns[i],tu); + //if (tl > max) break; + tu = turns[i]; CubicSolveSegment(roots, a, b, c, d, tl, tu,delta); tl = turns[i]; } - if (tu < max) - { - tu = max; - CubicSolveSegment(roots, a, b, c, d, tl, tu,delta); - } + tu = max; + CubicSolveSegment(roots, a, b, c, d, tl, tu,delta); return roots; }