------------------------------------------------------------------------------ Return the ith array in the field. A nullptr is returned if the index i is out of range.
| 493 | // Return the ith array in the field. A nullptr is returned if the index i is out |
| 494 | // of range. |
| 495 | vtkAbstractArray* vtkFieldData::GetAbstractArray(int i) |
| 496 | { |
| 497 | if (i < 0 || i >= this->GetNumberOfArrays() || this->Data == nullptr) |
| 498 | { |
| 499 | return nullptr; |
| 500 | } |
| 501 | return this->Data[i]; |
| 502 | } |
| 503 | |
| 504 | //------------------------------------------------------------------------------ |
| 505 | // Copy a field by creating new data arrays |