| 284 | } |
| 285 | |
| 286 | vtkIdType 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 | |
| 304 | vtkIdType vtkCellGrid::GetNumberOfCells() |
| 305 | { |
nothing calls this directly
no test coverage detected