class for handling the geometry == rectangular grids organized in vertices and cells
bool FlowGeometry::getInterpolationAt | ( | vec3 | pos, | |
int * | vtxID, | |||
float * | coef | |||
) |
Returns true if inside. Stores the vertex indices and interpolation weights for the given position in the arrays.
Stores the indexes and weights of vertices surrounding the given position. This information can be used later on for interpolation of channel values.
pos | geometrical position for the lookup | |
vtxID | list of surrounding vertices (given by vertex ID) | |
coef | list of surrounding vertex weights (sum == 1.0) |