Geogram  Version 1.9.1
A programming library of geometric algorithms
GEO::TrglGradient Class Reference

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 vec3vertex (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
 

Detailed Description

Definition at line 64 of file geometry.h.

Constructor & Destructor Documentation

◆ TrglGradient()

GEO::TrglGradient::TrglGradient ( )

Creates an uninitialized TrglGradient

Member Function Documentation

◆ basis()

void GEO::TrglGradient::basis ( vec3 origin,
vec3 X,
vec3 Y,
vec3 Z 
) const

Returns the orthonormal basis in which gradient computation are performed.

◆ TX()

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

◆ TY()

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) }

◆ vertex()

const vec3& GEO::TrglGradient::vertex ( index_t  i) const

Returns the ith vertex of the triangle.

Parameters
iis the index of the vertex, which can be one of 0,1,2.

The documentation for this class was generated from the following file: