//Debug("%u turning points", turns.size());
for (unsigned i = 1; i < turns.size(); ++i)
{
//Debug("%u turning points", turns.size());
for (unsigned i = 1; i < turns.size(); ++i)
{
CubicSolveSegment(roots, a, b, c, d, tl, tu,delta);
tl = 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);