------------------------------------------------------------------------------
| 1521 | |
| 1522 | //------------------------------------------------------------------------------ |
| 1523 | void vtkHyperTreeGrid::GetLevelZeroOriginFromIndex(vtkIdType treeindex, double* Origin) |
| 1524 | { |
| 1525 | assert("pre: exist_coordinates_explict" && this->WithCoordinates); |
| 1526 | |
| 1527 | // Compute origin and size of the cursor |
| 1528 | unsigned int i, j, k; |
| 1529 | this->GetLevelZeroCoordinatesFromIndex(treeindex, i, j, k); |
| 1530 | |
| 1531 | vtkDataArray* xCoords = this->XCoordinates; |
| 1532 | vtkDataArray* yCoords = this->YCoordinates; |
| 1533 | vtkDataArray* zCoords = this->ZCoordinates; |
| 1534 | Origin[0] = xCoords->GetTuple1(i); |
| 1535 | Origin[1] = yCoords->GetTuple1(j); |
| 1536 | Origin[2] = zCoords->GetTuple1(k); |
| 1537 | } |
| 1538 | |
| 1539 | //------------------------------------------------------------------------------ |
| 1540 | vtkIdType vtkHyperTreeGrid::GetGlobalNodeIndexMax() |
no test coverage detected