MCPcopy Create free account
hub / github.com/Kitware/VTK / GetRefinedExtent

Method GetRefinedExtent

Filters/Geometry/vtkStructuredAMRGridConnectivity.cxx:1949–1972  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1947
1948//------------------------------------------------------------------------------
1949void 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//------------------------------------------------------------------------------
1975void vtkStructuredAMRGridConnectivity::RefineExtent(

Callers 1

EstablishNeighborsMethod · 0.95

Calls 4

GetGridExtentMethod · 0.95
GetOrientationVectorMethod · 0.95
RefineExtentMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected