------------------------------------------------------------------------------
| 224 | |
| 225 | //------------------------------------------------------------------------------ |
| 226 | int vtkExtractStructuredGridHelper::GetMappedExtentValue(int dim, int outExtVal) |
| 227 | { |
| 228 | // Sanity Checks |
| 229 | assert("pre: dimension dim is out-of-bounds!" && dim >= 0 && dim < 3); |
| 230 | assert("pre: extent value out-of-bounds!" && outExtVal >= this->OutputWholeExtent[2 * dim] && |
| 231 | outExtVal <= this->OutputWholeExtent[2 * dim + 1]); |
| 232 | int outIdx = outExtVal - this->OutputWholeExtent[2 * dim]; |
| 233 | return this->IndexMap->Mapping[dim][outIdx] + this->InputWholeExtent[2 * dim]; |
| 234 | } |
| 235 | |
| 236 | //------------------------------------------------------------------------------ |
| 237 | int vtkExtractStructuredGridHelper::GetMappedExtentValueFromIndex(int dim, int outIdx) |
no test coverage detected