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

Method GetMappedIndex

Common/DataModel/vtkExtractStructuredGridHelper.cxx:206–212  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

204
205//------------------------------------------------------------------------------
206int vtkExtractStructuredGridHelper::GetMappedIndex(int dim, int outIdx)
207{
208 // Sanity Checks
209 assert("pre: dimension dim is out-of-bounds!" && dim >= 0 && dim < 3);
210 assert("pre: point index out-of-bounds!" && outIdx >= 0 && outIdx < this->GetSize(dim));
211 return this->IndexMap->Mapping[dim][outIdx];
212}
213
214//------------------------------------------------------------------------------
215int vtkExtractStructuredGridHelper::GetMappedIndexFromExtentValue(int dim, int outExtVal)

Callers 1

RequestDataImplMethod · 0.80

Calls 2

GetSizeMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected