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]);
Enumeration of the interpolation algorithms supported by GeoTess including LINEAR,...
Top level class that manages the GeoTessMetaData, GeoTessGrid and GeoTessData that comprise a 3D Eart...
Information about an interpolated point at an arbitrary position in a model.
Implements linear interpolation in geographic dimensions of a grid.
GeoTessPositionLinear(GeoTessModel *model, const GeoTessInterpolatorType &radialType)
virtual ~GeoTessPositionLinear()
virtual const GeoTessInterpolatorType & getInterpolatorType() const
virtual void update2D(int tid)