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

Method GetIdsOfCellsOfType

Common/DataModel/vtkUnstructuredGrid.cxx:1838–1848  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Fill container with indices of cells which match given type.

Source from the content-addressed store, hash-verified

1836//------------------------------------------------------------------------------
1837// Fill container with indices of cells which match given type.
1838void 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//------------------------------------------------------------------------------
1851void vtkUnstructuredGrid::RemoveGhostCells()

Callers

nothing calls this directly

Calls 2

GetNumberOfCellsMethod · 0.95
InsertNextValueMethod · 0.45

Tested by

no test coverage detected