Hello!!!
I’m trying to read the cell types in a vtkPolyData using the vtk Python bindings. The method returns the cell types by reference.
virtual void vtkDataSet::GetCellTypes ( vtkCellTypes * types )
I’m trying to use the reference class for this as shon elow
from vtkmodules.vtkCommonCore import reference
cell_types = reference(('0'),)
my_poly.GetCellTypes(cell_types)
where ‘my_poly’ is a vtkPolyData, but this throws an exception - ‘TypeError: GetCellTypes argument 1: method requires a VTK object’
Any ideas on how I can get the cell types from the vtkPolyData will be greatly appreciated