Hi, I want to get each individual cell’s type from polydata or UGrid source , I looked up the online documentation , but I didn’t find any useful method there, I think I need to do some conversion ,But don’t know how ,any suggestion ? thanks !
From vtkDataSet.h: (superclass of vtkPolyData and vtkUnstructuredGrid)
/**
- Get type of cell with cellId such that: 0 <= cellId < NumberOfCells.
- THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD AND
- THE DATASET IS NOT MODIFIED
*/
virtual int GetCellType(vtkIdType cellId) = 0;
1 Like