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

Method FillNodesGhostArray

Filters/Geometry/vtkStructuredGridConnectivity.cxx:378–399  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

376
377//------------------------------------------------------------------------------
378void vtkStructuredGridConnectivity::FillNodesGhostArray(int gridID, int dataDescription,
379 int GridExtent[6], int RealExtent[6], vtkUnsignedCharArray* nodesArray)
380{
381 int ijk[3];
382 for (int i = GridExtent[0]; i <= GridExtent[1]; ++i)
383 {
384 for (int j = GridExtent[2]; j <= GridExtent[3]; ++j)
385 {
386 for (int k = GridExtent[4]; k <= GridExtent[5]; ++k)
387 {
388 ijk[0] = i;
389 ijk[1] = j;
390 ijk[2] = k;
391 vtkIdType idx =
392 vtkStructuredData::ComputePointIdForExtent(GridExtent, ijk, dataDescription);
393
394 this->MarkNodeProperty(
395 gridID, i, j, k, GridExtent, RealExtent, *nodesArray->GetPointer(idx));
396 } // END for all k
397 } // END for all j
398 } // END for all i
399}
400
401//------------------------------------------------------------------------------
402void vtkStructuredGridConnectivity::FillCellsGhostArray(int dataDescription, int numNodesPerCell,

Callers 1

FillGhostArraysMethod · 0.95

Calls 2

MarkNodePropertyMethod · 0.95
GetPointerMethod · 0.45

Tested by

no test coverage detected