+
+ virtual vec_t txcoord(vec_t point) const
+ {
+ vec_t t1 = vec_new(S(0.0), S(0.0), S(0.0));
+ vec_t t2 = vec_new(S(1.0), S(0.0), S(0.0));
+ vec_t t3 = vec_new(S(1.0), S(1.0), S(0.0));
+ scal_t bc[3];
+ barycentric(bc, point);
+ return vec_interp(t1, t2, t3, bc);
+ }