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

Method ComputeCellIncrements

IO/XML/vtkXMLReader.cxx:1704–1721  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1702
1703//------------------------------------------------------------------------------
1704void vtkXMLReader::ComputeCellIncrements(int* extent, vtkIdType* increments)
1705{
1706 // For structured cells, axes that are empty of cells do not
1707 // contribute to the memory layout of cell data.
1708 vtkIdType nextIncrement = 1;
1709 for (int a = 0; a < 3; ++a)
1710 {
1711 if (this->AxesEmpty[a] && extent[2 * a + 1] == extent[2 * a])
1712 {
1713 increments[a] = 0;
1714 }
1715 else
1716 {
1717 increments[a] = nextIncrement;
1718 nextIncrement *= extent[2 * a + 1] - extent[2 * a];
1719 }
1720 }
1721}
1722
1723//------------------------------------------------------------------------------
1724vtkIdType vtkXMLReader::GetStartTuple(int* extent, vtkIdType* increments, int i, int j, int k)

Callers 4

ReadXMLDataMethod · 0.80
ReadPieceDataMethod · 0.80
ReadPieceMethod · 0.80
ReadXMLDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected