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

Method IsHomogeneous

Common/DataModel/vtkUnstructuredGrid.cxx:1823–1834  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

1821
1822//------------------------------------------------------------------------------
1823int vtkUnstructuredGrid::IsHomogeneous()
1824{
1825 if (this->Types && this->Types->GetMaxId() >= 0)
1826 {
1827 if (vtkConstantArray<unsigned char>::FastDownCast(this->GetCellTypes()))
1828 {
1829 return 1;
1830 }
1831 return this->GetDistinctCellTypesArray()->GetNumberOfValues() == 1 ? 1 : 0;
1832 }
1833 return 0;
1834}
1835
1836//------------------------------------------------------------------------------
1837// Fill container with indices of cells which match given type.

Callers

nothing calls this directly

Calls 4

FastDownCastFunction · 0.50
GetCellTypesMethod · 0.45
GetNumberOfValuesMethod · 0.45

Tested by

no test coverage detected