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

Method GetCellLocationsArray

Common/DataModel/vtkUnstructuredGrid.cxx:240–250  ·  view source on GitHub ↗

VTK_DEPRECATED_IN_9_6_0() ------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

238// VTK_DEPRECATED_IN_9_6_0()
239//------------------------------------------------------------------------------
240vtkIdTypeArray* vtkUnstructuredGrid::GetCellLocationsArray()
241{
242 if (!this->CellLocations)
243 {
244 this->CellLocations = vtkSmartPointer<vtkIdTypeArray>::New();
245 }
246 this->CellLocations->DeepCopy(this->Connectivity->GetOffsetsArray());
247 this->CellLocations->SetNumberOfValues(this->GetNumberOfCells());
248
249 return this->CellLocations;
250}
251
252// VTK_DEPRECATED_IN_9_6_0()
253//------------------------------------------------------------------------------

Callers 1

GetCellLocationsMethod · 0.80

Calls 4

GetNumberOfCellsMethod · 0.95
NewFunction · 0.50
DeepCopyMethod · 0.45
SetNumberOfValuesMethod · 0.45

Tested by

no test coverage detected