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

Method GetCellExtentFromPointExtent

Common/DataModel/vtkStructuredData.h:402–412  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

400
401//------------------------------------------------------------------------------
402inline void vtkStructuredData::GetCellExtentFromPointExtent(
403 const int nodeExtent[6], int cellExtent[6], int)
404{
405 cellExtent[0] = nodeExtent[0];
406 cellExtent[2] = nodeExtent[2];
407 cellExtent[4] = nodeExtent[4];
408
409 cellExtent[1] = vtkStructuredData::Max(nodeExtent[0], nodeExtent[1] - 1);
410 cellExtent[3] = vtkStructuredData::Max(nodeExtent[2], nodeExtent[3] - 1);
411 cellExtent[5] = vtkStructuredData::Max(nodeExtent[4], nodeExtent[5] - 1);
412}
413
414//------------------------------------------------------------------------------
415inline void vtkStructuredData::GetDimensionsFromExtent(const int ext[6], int dims[3], int)

Callers

nothing calls this directly

Calls 1

MaxFunction · 0.70

Tested by

no test coverage detected