------------------------------------------------------------------------------
| 1947 | |
| 1948 | //------------------------------------------------------------------------------ |
| 1949 | void vtkStructuredAMRGridConnectivity::GetRefinedExtent( |
| 1950 | int gridIdx, int fromLevel, int toLevel, int ext[6]) |
| 1951 | { |
| 1952 | assert("pre: grid index is out-of-bounds!" && (gridIdx >= 0) && |
| 1953 | (gridIdx < static_cast<int>(this->NumberOfGrids))); |
| 1954 | assert("pre: toLevel <= MaxLevel" && (toLevel <= this->MaxLevel)); |
| 1955 | |
| 1956 | // STEP 0: Acquire the grid extent corresponding to the given grid. |
| 1957 | this->GetGridExtent(gridIdx, ext); |
| 1958 | |
| 1959 | // STEP 1: If we are at the same level, we need to do nothing |
| 1960 | if (fromLevel == toLevel) |
| 1961 | { |
| 1962 | return; |
| 1963 | } |
| 1964 | |
| 1965 | // STEP 2: Get the orientation vector and dimension |
| 1966 | int orient[3]; |
| 1967 | int ndim = -1; |
| 1968 | this->GetOrientationVector(this->DataDescription, orient, ndim); |
| 1969 | |
| 1970 | // STEP 3: Refine the extent |
| 1971 | this->RefineExtent(orient, ndim, fromLevel, toLevel, ext); |
| 1972 | } |
| 1973 | |
| 1974 | //------------------------------------------------------------------------------ |
| 1975 | void vtkStructuredAMRGridConnectivity::RefineExtent( |
no test coverage detected