------------------------------------------------------------------------------
| 86 | |
| 87 | //------------------------------------------------------------------------------ |
| 88 | int vtkAMRMetaData::GetAbsoluteBlockIndex(unsigned int level, unsigned int relativeBlockIndex) const |
| 89 | { |
| 90 | if (level >= this->GetNumberOfLevels()) |
| 91 | { |
| 92 | vtkErrorMacro("Invalid level to GetAbsoluteBlockIndex: " << level); |
| 93 | return -1; |
| 94 | } |
| 95 | |
| 96 | return this->NumBlocks[level] + relativeBlockIndex; |
| 97 | } |
| 98 | |
| 99 | //------------------------------------------------------------------------------ |
| 100 | void vtkAMRMetaData::ComputeIndexPair(unsigned int index, unsigned int& level, unsigned int& id) |