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

Method GetNumberOfElements

Common/DataModel/vtkCellGrid.cxx:286–302  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286vtkIdType vtkCellGrid::GetNumberOfElements(int type)
287{
288 auto* dsa = this->FindAttributes(type);
289 if (type == CELL)
290 {
291 return this->GetNumberOfCells();
292 }
293 else if (!dsa && type == FIELD)
294 {
295 return this->FieldData->GetNumberOfTuples();
296 }
297 else if (dsa)
298 {
299 return dsa->GetNumberOfTuples();
300 }
301 return 0;
302}
303
304vtkIdType vtkCellGrid::GetNumberOfCells()
305{

Callers

nothing calls this directly

Calls 3

FindAttributesMethod · 0.95
GetNumberOfCellsMethod · 0.95
GetNumberOfTuplesMethod · 0.45

Tested by

no test coverage detected