------------------------------------------------------------------------------
| 645 | |
| 646 | //------------------------------------------------------------------------------ |
| 647 | inline void vtkStructuredGridConnectivity::GetGhostedGridExtent(int gridID, int ext[6]) |
| 648 | { |
| 649 | assert("pre: gridID out-of-bounds!" && |
| 650 | (gridID >= 0 && gridID < static_cast<int>(this->NumberOfGrids))); |
| 651 | |
| 652 | if (this->GhostedExtents.empty()) |
| 653 | { |
| 654 | ext[0] = ext[2] = ext[4] = -1; |
| 655 | ext[1] = ext[3] = ext[5] = 0; |
| 656 | vtkErrorMacro("No ghosted extents found for registered grid extends!!!"); |
| 657 | return; |
| 658 | } |
| 659 | |
| 660 | assert("GhostedExtents are not aligned with registered grid extents" && |
| 661 | (this->GhostedExtents.size() == this->GridExtents.size())); |
| 662 | for (int i = 0; i < 6; ++i) |
| 663 | { |
| 664 | ext[i] = this->GhostedExtents[gridID * 6 + i]; |
| 665 | } |
| 666 | } |
| 667 | |
| 668 | //------------------------------------------------------------------------------ |
| 669 | inline bool vtkStructuredGridConnectivity::IsNodeOnBoundaryOfExtent(int i, int j, int k, int ext[6]) |