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

Method RegisterGrid

Filters/Geometry/vtkStructuredGridConnectivity.cxx:168–183  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

166
167//------------------------------------------------------------------------------
168void vtkStructuredGridConnectivity::RegisterGrid(int gridID, int ext[6],
169 vtkUnsignedCharArray* nodesGhostArray, vtkUnsignedCharArray* cellGhostArray,
170 vtkPointData* pointData, vtkCellData* cellData, vtkPoints* gridNodes)
171{
172 assert("pre: gridID out-of-bounds!" &&
173 (gridID >= 0 && gridID < static_cast<int>(this->NumberOfGrids)));
174
175 for (int i = 0; i < 6; ++i)
176 {
177 this->GridExtents[gridID * 6 + i] = ext[i];
178 }
179
180 this->RegisterGridGhostArrays(gridID, nodesGhostArray, cellGhostArray);
181 this->RegisterFieldData(gridID, pointData, cellData);
182 this->RegisterGridNodes(gridID, gridNodes);
183}
184
185//------------------------------------------------------------------------------
186void vtkStructuredGridConnectivity::AcquireDataDescription()

Callers 2

RegisterGridsFunction · 0.45
RegisterGridsFunction · 0.45

Calls 4

RegisterFieldDataMethod · 0.80
RegisterGridNodesMethod · 0.80
assertFunction · 0.50

Tested by 2

RegisterGridsFunction · 0.36
RegisterGridsFunction · 0.36