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

Method GetCellBounds

Common/DataModel/vtkStructuredGrid.cxx:133–138  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Fast implementation of GetCellBounds(). Bounds are calculated without constructing a cell.

Source from the content-addressed store, hash-verified

131// Fast implementation of GetCellBounds(). Bounds are calculated without
132// constructing a cell.
133void vtkStructuredGrid::GetCellBounds(vtkIdType cellId, double bounds[6])
134{
135 vtkIdType npts, pts[8];
136 this->StructuredCells->GetCellAtId(cellId, npts, pts);
137 vtkBoundingBox::ComputeBounds(this->Points, pts, npts, bounds);
138}
139
140//------------------------------------------------------------------------------
141int vtkStructuredGrid::GetCellType(vtkIdType cellId)

Callers

nothing calls this directly

Calls 2

ComputeBoundsFunction · 0.70
GetCellAtIdMethod · 0.45

Tested by

no test coverage detected