vtkUnstructuredGrid vtkMultiBlockDataSet GetPoints


I have a vtkUnstructuredGrid dataset, for which the following works:


However, the dataset becomes a vtkMultiBlockDataSet after passing through the vtkAngularPeriodicFilter. Now I cannot retrieve the points’ coordinates anymore, since:


Returns None and data.GetOutputDataObject(0).GetPoints() throws an error:

vtkdata = data.GetOutputDataObject(0).GetPoints().GetData()
AttributeError: 'vtkmodules.vtkCommonDataModel.vtkMultiBlockDataSet' object has no attribute 'GetPoints'

How should I proceed in this case? I must say that my dataset is big, so performance is imperative for me.

Thanks a lot,

P.S.: it would be good if the same method (say, GetOutput()) could work with any type of dataset, especially since in my case I don’t care about how the dataset is structured after passing through the vtkAngularPeriodicFilter (i.e. who is parent, who is child, etc.). For me, the dataset has been mirrored in an angular periodic fashion, and that’s all that matters.