X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2Fbezier.cpp;h=99611dc5d5ba99722e1e1fc05ea652abea703320;hp=9d2467283ab47acb0df212787ee0aae24de10a30;hb=0361b11485ec41d2c2ddeb279abf846f777f5363;hpb=8b3424a48d2d2e20de1a0e60ff6e1d84b9b5e226 diff --git a/src/bezier.cpp b/src/bezier.cpp index 9d24672..99611dc 100644 --- a/src/bezier.cpp +++ b/src/bezier.cpp @@ -97,23 +97,6 @@ vector SolveCubic(const Real & a, const Real & b, const Real & c, const Re tu = max; CubicSolveSegment(roots, a, b, c, d, tl, tu,delta); return roots; - /* - Real maxi(100); - Real prevRes(d); - for(int i = 0; i <= 100; ++i) - { - Real x(i); - x /= maxi; - Real y = a*(x*x*x) + b*(x*x) + c*x + d; - if (((y < Real(0)) && (prevRes > Real(0))) || ((y > Real(0)) && (prevRes < Real(0)))) - { - //Debug("Found root of %fx^3 + %fx^2 + %fx + %f at %f (%f)", a, b, c, d, x, y); - roots.push_back(x); - } - prevRes = y; - } - return roots; - */ } /**