---------------------------------------------------------------------------
| 345 | |
| 346 | //--------------------------------------------------------------------------- |
| 347 | vtkIdType vtkHyperTree::GetGlobalIndexFromLocal(vtkIdType index) const |
| 348 | { |
| 349 | if (!this->Datas->GlobalIndexTable.empty()) |
| 350 | { |
| 351 | // Case explicit global node index |
| 352 | assert("pre: not_validindex" && index >= 0 && |
| 353 | index < (vtkIdType)this->Datas->GlobalIndexTable.size()); |
| 354 | assert("pre: not_positive_globalindex" && this->Datas->GlobalIndexTable[index] >= 0); |
| 355 | return this->Datas->GlobalIndexTable[index]; |
| 356 | } |
| 357 | // Case implicit global node index |
| 358 | assert("pre: not_positive_startindex" && this->Datas->GlobalIndexStart >= 0); |
| 359 | assert("pre: not_validindex" && index >= 0); |
| 360 | return this->Datas->GlobalIndexStart + index; |
| 361 | } |
| 362 | |
| 363 | //--------------------------------------------------------------------------- |
| 364 | vtkIdType vtkHyperTree::GetGlobalNodeIndexMax() const |