How to convert vtkPoints to numpy?

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

vtk.util.numpy_support.vtk_to_numpy(vtkPoints)

But I got

  File "/Applications/Slicer.app/Contents/bin/Python/vtkmodules/util/numpy_support.py", 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.