Critics are panning the quadtree's panning.
[ipdf/code.git] / src / bezier.cpp
index 99611dc..9b594a0 100644 (file)
@@ -54,9 +54,11 @@ static void CubicSolveSegment(vector<Real> & roots, const Real & a, const Real &
        Real l = a*tl*tl*tl + b*tl*tl + c*tl + d;
        Real u = a*tu*tu*tu + b*tu*tu + c*tu + d;
        if ((l < 0 && u < 0) || (l > 0 && u > 0))
-               return;
+               Debug("Discarding segment (no roots) l = %f (%f), u = %f (%f)", tl, l, tu, u);
+               //return;
        
        bool negative = (u < l); // lower point > 0, upper point < 0
+       //Debug("%ft^3 + %ft^2 + %ft + %f is negative (%f < %f) %d", a,b,c,d,u,l, negative);
        while (tu - tl > delta)
        {
                Real t(tu+tl);

UCC git Repository :: git.ucc.asn.au