------------------------------------------------------------------------------
| 1074 | |
| 1075 | //------------------------------------------------------------------------------ |
| 1076 | vtkUnsignedCharArray* vtkDataSet::AllocateCellGhostArray() |
| 1077 | { |
| 1078 | if (!this->GetCellGhostArray()) |
| 1079 | { |
| 1080 | vtkNew<vtkUnsignedCharArray> ghosts; |
| 1081 | ghosts->SetName(vtkDataSetAttributes::GhostArrayName()); |
| 1082 | ghosts->SetNumberOfValues(this->GetNumberOfCells()); |
| 1083 | ghosts->FillValue(0); |
| 1084 | this->GetCellData()->AddArray(ghosts); |
| 1085 | } |
| 1086 | return this->GetCellGhostArray(); |
| 1087 | } |
| 1088 | |
| 1089 | //------------------------------------------------------------------------------ |
| 1090 | vtkMTimeType vtkDataSet::GetGhostCellsTime() |