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

Method GetWholeExtentAtLevel

Filters/Geometry/vtkStructuredAMRGridConnectivity.cxx:2048–2064  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2046
2047//------------------------------------------------------------------------------
2048void vtkStructuredAMRGridConnectivity::GetWholeExtentAtLevel(int level, int ext[6])
2049{
2050 assert("pre: level index is out-of-bounds!" && (level >= 0) && (level <= this->MaxLevel));
2051
2052 for (int i = 0; i < 6; ++i)
2053 {
2054 ext[i] = this->WholeExtent[i];
2055 }
2056
2057 if (level > 0)
2058 {
2059 int orient[3];
2060 int ndim = -1;
2061 this->GetOrientationVector(this->DataDescription, orient, ndim);
2062 this->RefineExtent(orient, ndim, 0, level, ext);
2063 }
2064}
2065
2066//------------------------------------------------------------------------------
2067void vtkStructuredAMRGridConnectivity::ComputeWholeExtent()

Callers 3

FillNodesGhostArrayMethod · 0.95
EstablishNeighborsMethod · 0.95

Calls 3

GetOrientationVectorMethod · 0.95
RefineExtentMethod · 0.95
assertFunction · 0.50

Tested by

no test coverage detected