38 #ifndef GEOTESSPOSITIONLINEAR_OBJECT_H
39 #define GEOTESSPOSITIONLINEAR_OBJECT_H
90 vector<int>& vt = vertices[tid];
91 vector<double>& hc = hCoefficients[tid];
96 const int* trngl = grid.getTriangleVertexIndexes(getTriangle(tid));
100 if (GeoTessUtils::dot(unitVector, grid.getVertex(trngl[0])) > cos(1e-7))
101 { vt.push_back(trngl[0]); hc.push_back(1.0);
return; }
103 if (GeoTessUtils::dot(unitVector, grid.getVertex(trngl[1])) > cos(1e-7))
104 { vt.push_back(trngl[1]); hc.push_back(1.0);
return; }
106 if (GeoTessUtils::dot(unitVector, grid.getVertex(trngl[2])) > cos(1e-7))
107 { vt.push_back(trngl[2]); hc.push_back(1.0);
return; }
110 vector<double>& lc = linearCoefficients[tid];
111 vt.push_back(trngl[0]);
113 vt.push_back(trngl[1]);
115 vt.push_back(trngl[2]);
145 #endif // GEOTESSPOSITIONLINEAR_OBJECT_H