------------------------------------------------------------------------------
| 1683 | |
| 1684 | //------------------------------------------------------------------------------ |
| 1685 | void 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 | //------------------------------------------------------------------------------ |
| 1704 | void vtkXMLReader::ComputeCellIncrements(int* extent, vtkIdType* increments) |
no outgoing calls
no test coverage detected