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:
Ton Roosendaal
2012-11-01 13:00:24 +00:00
parent 4fc1a3c8b3
commit 09cf0fa6f3

View File

@@ -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;