Geogram
Version 1.9.1
A programming library of geometric algorithms
|
Public Member Functions | |
TrglGradient (const vec3 &p0, const vec3 &p1, const vec3 &p2) | |
TrglGradient () | |
void | initialize (const vec3 &p0, const vec3 &p1, const vec3 &p2) |
const vec3 & | vertex (index_t i) const |
void | basis (vec3 &origin, vec3 &X, vec3 &Y, vec3 &Z) const |
double | TX (index_t i) const |
double | TY (index_t i) const |
bool | is_flat () const |
vec3 | gradient_3d (double value0, double value1, double value2) const |
Definition at line 64 of file geometry.h.
GEO::TrglGradient::TrglGradient | ( | ) |
Creates an uninitialized TrglGradient
Returns the orthonormal basis in which gradient computation are performed.
double GEO::TrglGradient::TX | ( | index_t | i | ) | const |
Returns the coefficients determining the gradient in this triangle.
grad_X = sum_i { TX(i) * vertex(i)-> embedding(prop) } Note: TX(2) == 0
double GEO::TrglGradient::TY | ( | index_t | i | ) | const |
Returns the coefficients determining the gradient in this triangle.
grad_Y = sum_i { TY(i) * vertex(i)-> embedding(prop) }
Returns the ith vertex of the triangle.
i | is the index of the vertex, which can be one of 0,1,2. |