------------------------------------------------------------------------------ Fill container with indices of cells which match given type.
| 1836 | //------------------------------------------------------------------------------ |
| 1837 | // Fill container with indices of cells which match given type. |
| 1838 | void vtkUnstructuredGrid::GetIdsOfCellsOfType(int type, vtkIdTypeArray* array) |
| 1839 | { |
| 1840 | const auto cellTypesRange = vtk::DataArrayValueRange<1, int>(this->Types); |
| 1841 | for (int cellId = 0; cellId < this->GetNumberOfCells(); cellId++) |
| 1842 | { |
| 1843 | if (cellTypesRange[cellId] == type) |
| 1844 | { |
| 1845 | array->InsertNextValue(cellId); |
| 1846 | } |
| 1847 | } |
| 1848 | } |
| 1849 | |
| 1850 | //------------------------------------------------------------------------------ |
| 1851 | void vtkUnstructuredGrid::RemoveGhostCells() |
nothing calls this directly
no test coverage detected