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

Method SetGhostedGridExtent

Filters/Geometry/vtkStructuredGridConnectivity.h:622–633  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

620
621//------------------------------------------------------------------------------
622inline void vtkStructuredGridConnectivity::SetGhostedGridExtent(int gridID, int ext[6])
623{
624 assert("pre: gridID is out-of-bounds" && (gridID >= 0) &&
625 (gridID < static_cast<int>(this->NumberOfGrids)));
626 assert("pre: ghosted-extents vector has not been allocated" &&
627 (this->NumberOfGrids == this->GhostedExtents.size() / 6));
628
629 for (int i = 0; i < 6; ++i)
630 {
631 this->GhostedExtents[gridID * 6 + i] = ext[i];
632 }
633}
634
635//------------------------------------------------------------------------------
636inline void vtkStructuredGridConnectivity::GetGridExtent(int gridID, int ext[6])

Callers 1

CreateGhostedExtentMethod · 0.95

Calls 2

assertFunction · 0.50
sizeMethod · 0.45

Tested by

no test coverage detected