36 #ifndef GEOTESSPOSITIONLINEAR_OBJECT_H
37 #define GEOTESSPOSITIONLINEAR_OBJECT_H
88 vector<int>& vt = vertices[tid];
89 vector<double>& hc = hCoefficients[tid];
94 const int* trngl = grid.getTriangleVertexIndexes(getTriangle(tid));
98 if (GeoTessUtils::dot(unitVector, grid.getVertex(trngl[0])) > cos(1e-7))
99 { vt.push_back(trngl[0]); hc.push_back(1.0);
return; }
101 if (GeoTessUtils::dot(unitVector, grid.getVertex(trngl[1])) > cos(1e-7))
102 { vt.push_back(trngl[1]); hc.push_back(1.0);
return; }
104 if (GeoTessUtils::dot(unitVector, grid.getVertex(trngl[2])) > cos(1e-7))
105 { vt.push_back(trngl[2]); hc.push_back(1.0);
return; }
108 vector<double>& lc = linearCoefficients[tid];
109 vt.push_back(trngl[0]);
111 vt.push_back(trngl[1]);
113 vt.push_back(trngl[2]);
136 return GeoTessInterpolatorType::LINEAR;
145 #endif // GEOTESSPOSITIONLINEAR_OBJECT_H
Information about an interpolated point at an arbitrary position in a model.
Definition: GeoTessPosition.h:101
Enumeration of the interpolation algorithms supported by GeoTess including LINEAR, NATURAL_NEIGHBOR and CUBIC_SPLINE.
Definition: GeoTessInterpolatorType.h:71
virtual void update2D(int tid)
Definition: GeoTessPositionLinear.h:86
virtual const GeoTessInterpolatorType & getInterpolatorType() const
Definition: GeoTessPositionLinear.h:134
Top level class that manages the GeoTessMetaData, GeoTessGrid and Data that comprise a 3D Earth model...
Definition: GeoTessModel.h:119
Implements linear interpolation in geographic dimensions of a grid.
Definition: GeoTessPositionLinear.h:76
#define GEOTESS_EXP_IMP
Definition: CPPGlobals.h:71