------------------------------------------------------------------------------
| 343 | |
| 344 | //------------------------------------------------------------------------------ |
| 345 | void vtkUniformHyperTreeGrid::GetLevelZeroOriginFromIndex(vtkIdType treeindex, double* m_Origin) |
| 346 | { |
| 347 | // Retrieve Cartesian coordinates of root tree |
| 348 | unsigned int i, j, k; |
| 349 | this->GetLevelZeroCoordinatesFromIndex(treeindex, i, j, k); |
| 350 | |
| 351 | // Compute origin of the cursor |
| 352 | const double* origin = this->GetOrigin(); |
| 353 | const double* scale = this->GetGridScale(); |
| 354 | m_Origin[0] = origin[0] + i * scale[0]; |
| 355 | m_Origin[1] = origin[1] + j * scale[1]; |
| 356 | m_Origin[2] = origin[2] + k * scale[2]; |
| 357 | } |
| 358 | |
| 359 | //------------------------------------------------------------------------------ |
| 360 | void vtkUniformHyperTreeGrid::CopyStructure(vtkDataObject* ds) |
nothing calls this directly
no test coverage detected