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

Method ComputeCellStructuredCoords

Common/DataModel/vtkExplicitStructuredGrid.h:392–409  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

390
391//----------------------------------------------------------------------------
392inline void vtkExplicitStructuredGrid::ComputeCellStructuredCoords(
393 vtkIdType cellId, int& i, int& j, int& k, bool adjustForExtent)
394{
395 int ijk[3];
396 if (adjustForExtent)
397 {
398 vtkStructuredData::ComputeCellStructuredCoordsForExtent(cellId, this->Extent, ijk);
399 }
400 else
401 {
402 int dims[3];
403 this->GetDimensions(dims);
404 vtkStructuredData::ComputeCellStructuredCoords(cellId, dims, ijk);
405 }
406 i = ijk[0];
407 j = ijk[1];
408 k = ijk[2];
409}
410
411//----------------------------------------------------------------------------
412inline vtkIdType vtkExplicitStructuredGrid::ComputeCellId(int i, int j, int k, bool adjustForExtent)

Callers 1

GetCellNeighborsMethod · 0.95

Calls 1

GetDimensionsMethod · 0.95

Tested by

no test coverage detected