----------------------------------------------------------------------------
| 410 | |
| 411 | //---------------------------------------------------------------------------- |
| 412 | inline vtkIdType vtkExplicitStructuredGrid::ComputeCellId(int i, int j, int k, bool adjustForExtent) |
| 413 | { |
| 414 | int ijk[] = { i, j, k }; |
| 415 | if (adjustForExtent) |
| 416 | { |
| 417 | return vtkStructuredData::ComputeCellIdForExtent(this->Extent, ijk); |
| 418 | } |
| 419 | else |
| 420 | { |
| 421 | int dims[3]; |
| 422 | this->GetDimensions(dims); |
| 423 | return vtkStructuredData::ComputeCellId(dims, ijk); |
| 424 | } |
| 425 | } |
| 426 | VTK_ABI_NAMESPACE_END |
| 427 | #endif |
no test coverage detected