92 vtkErrorMacro(
"No Source specified!");
96 vtkDataArray *sourceScalars = this->
Source->GetPointData()->GetScalars();
100 vtkErrorMacro(
"No scalars to interpolate!");
104 int numberOfPoints = this->
Source->GetNumberOfPoints();
107 vtkWarningMacro(
"Empty Source specified!");
115 x =
new double[numberOfPoints];
116 A =
new double* [numberOfPoints];
119 for (i=0; i<numberOfPoints; i++)
121 A[i] =
new double[numberOfPoints];
122 x[i] = sourceScalars->GetComponent(i,0);
127 for (i=0; i<numberOfPoints; i++)
129 this->
Source->GetPoint(i,center);
130 for (j=0; j<numberOfPoints; j++)
136 int ret = vtkMath::SolveLinearSystem(A,x,numberOfPoints);
140 vtkErrorMacro(<<
"Cannot compute coefficients: error during linear system solve");
143 for (i=0; i<numberOfPoints; i++)
149 for (i=0; i<numberOfPoints; i++)