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

Method ComputeCellDimensions

IO/XML/vtkXMLReader.cxx:1685–1701  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1683
1684//------------------------------------------------------------------------------
1685void vtkXMLReader::ComputeCellDimensions(int* extent, int* dimensions)
1686{
1687 // For structured cells, axes that are empty of cells are treated as
1688 // having one cell when computing cell counts. This allows cell
1689 // dimensions lower than 3.
1690 for (int a = 0; a < 3; ++a)
1691 {
1692 if (this->AxesEmpty[a] && extent[2 * a + 1] == extent[2 * a])
1693 {
1694 dimensions[a] = 1;
1695 }
1696 else
1697 {
1698 dimensions[a] = extent[2 * a + 1] - extent[2 * a];
1699 }
1700 }
1701}
1702
1703//------------------------------------------------------------------------------
1704void vtkXMLReader::ComputeCellIncrements(int* extent, vtkIdType* increments)

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected