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

Method ComputeCellId

Common/DataModel/vtkExplicitStructuredGrid.h:412–425  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

410
411//----------------------------------------------------------------------------
412inline vtkIdType vtkExplicitStructuredGrid::ComputeCellId(int i, int j, int k, bool adjustForExtent)
413{
414 int ijk[] = { i, j, k };
415 if (adjustForExtent)
416 {
417 return vtkStructuredData::ComputeCellIdForExtent(this->Extent, ijk);
418 }
419 else
420 {
421 int dims[3];
422 this->GetDimensions(dims);
423 return vtkStructuredData::ComputeCellId(dims, ijk);
424 }
425}
426VTK_ABI_NAMESPACE_END
427#endif

Callers 1

FindConnectedFacesMethod · 0.95

Calls 1

GetDimensionsMethod · 0.95

Tested by

no test coverage detected