VTK  9.4.20241121
PyrI2Basis.h
Go to the documentation of this file.
1if (abs(tt - 1.0) < eps)
2{
3 if (tt <= 1.0)
4 {
5 tt = 1.0 - eps;
6 }
7 else
8 {
9 tt = 1.0 + eps;
10 }
11}
12
13RealT ww = 1.0 / (1.0 - tt);
14
15basis[0] = 0.25 * (-rr - ss - 1.0) * ((1.0 - rr) * (1.0 - ss) - tt + rr * ss * tt * ww);
16basis[1] = 0.25 * (rr - ss - 1.0) * ((1.0 + rr) * (1.0 - ss) - tt - rr * ss * tt * ww);
17basis[2] = 0.25 * (rr + ss - 1.0) * ((1.0 + rr) * (1.0 + ss) - tt + rr * ss * tt * ww);
18basis[3] = 0.25 * (-rr + ss - 1.0) * ((1.0 - rr) * (1.0 + ss) - tt - rr * ss * tt * ww);
19
20basis[4] = tt * (2.0 * tt - 1.0);
21
22basis[5] = 0.5 * (1.0 + rr - tt) * (1.0 - rr - tt) * (1.0 - ss - tt) * ww;
23basis[6] = 0.5 * (1.0 + ss - tt) * (1.0 - ss - tt) * (1.0 + rr - tt) * ww;
24basis[7] = 0.5 * (1.0 + rr - tt) * (1.0 - rr - tt) * (1.0 + ss - tt) * ww;
25basis[8] = 0.5 * (1.0 + ss - tt) * (1.0 - ss - tt) * (1.0 - rr - tt) * ww;
26
27basis[9] = tt * (1.0 - rr - tt) * (1.0 - ss - tt) * ww;
28basis[10] = tt * (1.0 + rr - tt) * (1.0 - ss - tt) * ww;
29basis[11] = tt * (1.0 + rr - tt) * (1.0 + ss - tt) * ww;
30basis[12] = tt * (1.0 - rr - tt) * (1.0 + ss - tt) * ww;
basis[0]
Definition PyrI2Basis.h:15
RealT ww
Definition PyrI2Basis.h:13