------------------------------------------------------------------------------
| 184 | |
| 185 | //------------------------------------------------------------------------------ |
| 186 | bool vtkAMRBaseParticlesReader::CheckLocation(double x, double y, double z) |
| 187 | { |
| 188 | if (!this->FilterLocation) |
| 189 | { |
| 190 | return true; |
| 191 | } |
| 192 | |
| 193 | double coords[3]; |
| 194 | coords[0] = x; |
| 195 | coords[1] = y; |
| 196 | coords[2] = z; |
| 197 | |
| 198 | for (int i = 0; i < 3; ++i) |
| 199 | { |
| 200 | if (this->MinLocation[i] > coords[i] || coords[i] > this->MaxLocation[i]) |
| 201 | { |
| 202 | return false; |
| 203 | } |
| 204 | } // END for all dimensions |
| 205 | |
| 206 | return true; |
| 207 | } |
| 208 | |
| 209 | //------------------------------------------------------------------------------ |
| 210 | int vtkAMRBaseParticlesReader::RequestData(vtkInformation* vtkNotUsed(request), |
no outgoing calls
no test coverage detected