MCPcopy Create free account
hub / github.com/Kitware/VTK / GetMappedExtentValue

Method GetMappedExtentValue

Common/DataModel/vtkExtractStructuredGridHelper.cxx:226–234  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

224
225//------------------------------------------------------------------------------
226int 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//------------------------------------------------------------------------------
237int vtkExtractStructuredGridHelper::GetMappedExtentValueFromIndex(int dim, int outIdx)

Callers 3

CopyCellDataMethod · 0.95
RequestDataImplMethod · 0.80

Calls 1

assertFunction · 0.50

Tested by

no test coverage detected