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

Method IsType

Common/DataModel/vtkCellTypes.h:181–193  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

179
180//----------------------------------------------------------------------------
181inline int vtkCellTypes::IsType(unsigned char type)
182{
183 vtkIdType numTypes = this->GetNumberOfTypes();
184
185 for (vtkIdType i = 0; i < numTypes; i++)
186 {
187 if (type == this->GetCellType(i))
188 {
189 return 1;
190 }
191 }
192 return 0;
193}
194
195//-----------------------------------------------------------------------------
196inline int vtkCellTypes::IsLinear(unsigned char type)

Callers 3

DrawPolyDataMethod · 0.45
GetDistinctCellTypesMethod · 0.45
TestOCTFunction · 0.45

Calls 1

GetCellTypeMethod · 0.45

Tested by 1

TestOCTFunction · 0.36