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

Method GetGhostedGridExtent

Filters/Geometry/vtkStructuredGridConnectivity.h:647–666  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

645
646//------------------------------------------------------------------------------
647inline 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//------------------------------------------------------------------------------
669inline bool vtkStructuredGridConnectivity::IsNodeOnBoundaryOfExtent(int i, int j, int k, int ext[6])

Calls 3

assertFunction · 0.50
emptyMethod · 0.45
sizeMethod · 0.45

Tested by 1

GetGhostedDataSetFunction · 0.64