36 #ifndef GEOTESSPOSITIONLINEAR_OBJECT_H
37 #define GEOTESSPOSITIONLINEAR_OBJECT_H
86 virtual void update2D(
int tid)
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