Bugreport - Christian Krupa in irc:
Curves behaved totally bad suddenly. Caused by Campbell code cleanup, replacing this: /* this is for float inaccuracy */ if (t < knots[0]) t = knots[0]; else if (t > knots[opp2]) t = knots[opp2]; with: t = (t < knots[0]) ? knots[0] : knots[opp2]; Tss!
This commit is contained in:
@@ -818,7 +818,10 @@ static void basisNurb(float t, short order, short pnts, float *knots, float *bas
|
||||
opp2 = orderpluspnts - 1;
|
||||
|
||||
/* this is for float inaccuracy */
|
||||
t = (t < knots[0]) ? knots[0] : knots[opp2];
|
||||
if (t < knots[0])
|
||||
t = knots[0];
|
||||
else if (t > knots[opp2])
|
||||
t = knots[opp2];
|
||||
|
||||
/* this part is order '1' */
|
||||
o2 = order + 1;
|
||||
|
||||
Reference in New Issue
Block a user