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

Method GetGridNeighbor

Filters/Geometry/vtkStructuredGridConnectivity.cxx:206–214  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

204
205//------------------------------------------------------------------------------
206vtkStructuredNeighbor vtkStructuredGridConnectivity::GetGridNeighbor(int gridID, int nei)
207{
208 assert("pre: gridID out-of-bounds!" &&
209 (gridID >= 0 && gridID < static_cast<int>(this->NumberOfGrids)));
210 assert(
211 "pre: nei index is out-of-bounds!" && (nei >= 0) && (nei < this->GetNumberOfNeighbors(gridID)));
212
213 return (this->Neighbors[gridID][nei]);
214}
215
216//------------------------------------------------------------------------------
217vtkIdList* vtkStructuredGridConnectivity::GetNeighbors(int gridID, int* extents)

Callers 1

EstablishNeighborsMethod · 0.80

Calls 2

assertFunction · 0.50
GetNumberOfNeighborsMethod · 0.45

Tested by

no test coverage detected