Evaluate u,v,w at x,y,z,t
| 52 | static int tmp_count = 0; |
| 53 | // Evaluate u,v,w at x,y,z,t |
| 54 | int vtkGenericInterpolatedVelocityField::FunctionValues(double* x, double* f) |
| 55 | { |
| 56 | vtkGenericDataSet* ds; |
| 57 | if (!this->LastDataSet && !this->DataSets->empty()) |
| 58 | { |
| 59 | ds = (*this->DataSets)[0]; |
| 60 | this->LastDataSet = ds; |
| 61 | } |
| 62 | else |
| 63 | { |
| 64 | ds = this->LastDataSet; |
| 65 | } |
| 66 | int retVal = this->FunctionValues(ds, x, f); |
| 67 | if (!retVal) |
| 68 | { |
| 69 | tmp_count = 0; |
| 70 | for (DataSetsTypeBase::iterator i = this->DataSets->begin(); i != this->DataSets->end(); ++i) |
| 71 | { |
| 72 | ds = *i; |
| 73 | if (ds && ds != this->LastDataSet) |
| 74 | { |
| 75 | this->ClearLastCell(); |
| 76 | retVal = this->FunctionValues(ds, x, f); |
| 77 | if (retVal) |
| 78 | { |
| 79 | this->LastDataSet = ds; |
| 80 | return retVal; |
| 81 | } |
| 82 | } |
| 83 | } |
| 84 | this->ClearLastCell(); |
| 85 | return 0; |
| 86 | } |
| 87 | tmp_count++; |
| 88 | return retVal; |
| 89 | } |
| 90 | |
| 91 | const double vtkGenericInterpolatedVelocityField::TOLERANCE_SCALE = 1.0E-8; |
| 92 |
no test coverage detected