How to convert vtkPoints to numpy?

Hello, I want to convert vtkPoints to numpy. I used


But I got

  File "/Applications/", line 220, in vtk_to_numpy
    shape = vtk_array.GetNumberOfTuples(), \
AttributeError: 'vtkmodules.vtkCommonCore.vtkPoints' object has no attribute 'GetNumberOfTuples'

How to solve this problem?
Thank you very much.

You can use slicer.util.arrayFromModelPoints if you have a model node or if it makes sense to create one. Otherwise check out the implementation of said function.