65 double point[3], point1[3], point2[3];
66 vtkIdType j, firstId, lastId;
70 vtkPolyData* pdata = vtkPolyData::SafeDownCast(this->
DataSet);
85 for (j=0; j<3*this->
NPoints; j++)
93 for (j=firstId; j<=lastId; j++)
95 pdata->GetPoint(this->
PointIds[j],point1);
97 int jplus = (j+1) % this->NPoints;
98 pdata->GetPoint(this->
PointIds[jplus],point2);
102 this->
Gamma(point,point1,point2,gamma);
107 this->
Gamma(point,point2,point1,gamma);
112 this->
Gamma(point1,point,point2,gamma);
113 this->
Weights[3*j+0] += gamma[0] * areaWeight;
114 this->
Weights[3*j+1] += gamma[1] * areaWeight;
115 this->
Weights[3*j+2] += gamma[2] * areaWeight;
117 this->
Gamma(point1,point2,point,gamma);
118 this->
Weights[3*j+0] += gamma[0] * areaWeight;
119 this->
Weights[3*j+1] += gamma[1] * areaWeight;
120 this->
Weights[3*j+2] += gamma[2] * areaWeight;
122 this->
Gamma(point2,point1,point,gamma);
123 this->
Weights[3*jplus+0] += gamma[0] * areaWeight;
124 this->
Weights[3*jplus+1] += gamma[1] * areaWeight;
125 this->
Weights[3*jplus+2] += gamma[2] * areaWeight;
127 this->
Gamma(point2,point,point1,gamma);
128 this->
Weights[3*jplus+0] += gamma[0] * areaWeight;
129 this->
Weights[3*jplus+1] += gamma[1] * areaWeight;
130 this->
Weights[3*jplus+2] += gamma[2] * areaWeight;