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

Method AllocatePointGhostArray

Common/DataModel/vtkDataSet.cxx:1056–1067  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1054
1055//------------------------------------------------------------------------------
1056vtkUnsignedCharArray* vtkDataSet::AllocatePointGhostArray()
1057{
1058 if (!this->GetPointGhostArray())
1059 {
1060 vtkNew<vtkUnsignedCharArray> ghosts;
1061 ghosts->SetName(vtkDataSetAttributes::GhostArrayName());
1062 ghosts->SetNumberOfValues(this->GetNumberOfPoints());
1063 ghosts->FillValue(0);
1064 this->GetPointData()->AddArray(ghosts);
1065 }
1066 return this->GetPointGhostArray();
1067}
1068
1069//------------------------------------------------------------------------------
1070vtkUnsignedCharArray* vtkDataSet::GetCellGhostArray()

Callers 9

RequestDataMethod · 0.80
BlankPointMethod · 0.80
GenerateGhostArrayMethod · 0.80
BlankPointMethod · 0.80
RegisterGridsFunction · 0.80

Calls 7

GetPointGhostArrayMethod · 0.95
GhostArrayNameFunction · 0.85
SetNameMethod · 0.45
SetNumberOfValuesMethod · 0.45
GetNumberOfPointsMethod · 0.45
AddArrayMethod · 0.45
GetPointDataMethod · 0.45

Tested by 3

RegisterGridsFunction · 0.64