| 261 | } |
| 262 | |
| 263 | vtkDataArray* vtkUniformHyperTreeGrid::GetZCoordinates() |
| 264 | { |
| 265 | std::cerr << "Bad to call vtkUniformHyperTreeGrid::GetZCoordinates" << std::endl; |
| 266 | // Compute coordinates only if necessary |
| 267 | if (!this->ComputedZCoordinates) |
| 268 | { |
| 269 | // Compute and store actual coordinates |
| 270 | unsigned int np = this->GetDimensions()[2]; |
| 271 | this->ZCoordinates->SetNumberOfTuples(np); |
| 272 | double z = this->Origin[2]; |
| 273 | for (unsigned int i = 0; i < np; ++i, z += this->GridScale[2]) |
| 274 | { |
| 275 | this->ZCoordinates->SetTuple1(i, z); |
| 276 | } |
| 277 | |
| 278 | // Keep track that computation was done |
| 279 | this->ComputedZCoordinates = true; |
| 280 | } // if ( ! this->ComputedCoordinates ) |
| 281 | |
| 282 | // Return coordinates |
| 283 | return this->ZCoordinates; |
| 284 | } |
| 285 | |
| 286 | void vtkUniformHyperTreeGrid::CopyCoordinates(const vtkHyperTreeGrid* outputHTG) |
| 287 | { |
nothing calls this directly
no test coverage detected