3if (abs(tt - 1.0) < eps)
15RealT
ww = 1.0 / (1.0 - tt);
18 0.25 * ((1.0 - rr) * (1.0 - ss) - tt + rr * ss * tt *
ww);
19basisGradient[1] = 0.25 * (-1.0 - rr - ss) * (-1.0 + rr + rr * tt *
ww) -
20 0.25 * ((1.0 - rr) * (1.0 - ss) - tt + rr * ss * tt *
ww);
24 0.25 * ((1.0 + rr) * (1.0 - ss) - tt - rr * ss * tt *
ww);
25basisGradient[4] = 0.25 * (-1.0 + rr - ss) * (-1.0 - rr - rr * tt *
ww) -
26 0.25 * ((1.0 + rr) * (1.0 - ss) - tt - rr * ss * tt *
ww);
30 0.25 * ((1.0 + rr) * (1.0 + ss) - tt + rr * ss * tt *
ww);
32 0.25 * ((1.0 + rr) * (1.0 + ss) - tt + rr * ss * tt *
ww);
35basisGradient[9] = 0.25 * (-1.0 - rr + ss) * (-1.0 - ss - ss * tt *
ww) -
36 0.25 * ((1.0 - rr) * (1.0 + ss) - tt - rr * ss * tt *
ww);
37basisGradient[10] = 0.25 * (-1.0 - rr + ss) * (1.0 - rr - rr * tt *
ww) +
38 0.25 * ((1.0 - rr) * (1.0 + ss) - tt - rr * ss * tt *
ww);
39basisGradient[11] = 0.25 * (-1.0 - rr + ss) * (-1.0 - rr * ss *
ww - rr * ss * tt *
ww *
ww);