It’s also worth mentioning that you can create a memoryview from a VTK array:
from vtkmodules.vtkCommonCore import vtkIdTypeArray
ids = vtkIdTypeArray()
ids.InsertNextValue(10)
ids.InsertNextValue(3)
memoryview(ids).tolist()
[10, 3]
It’s also worth mentioning that you can create a memoryview from a VTK array:
from vtkmodules.vtkCommonCore import vtkIdTypeArray
ids = vtkIdTypeArray()
ids.InsertNextValue(10)
ids.InsertNextValue(3)
memoryview(ids).tolist()
[10, 3]