Selecting random points of a PolyData (Stratified sampling)

It will work for polydata but not for pointset. There is a flag in the code snippet to test the two cases.

To see if it is not due to installation issues I created a Colab notebook also.
https://colab.research.google.com/drive/1EayhemN5FHRFaZMbTId7U8zozFY6FQb7?usp=sharing

Also, there is one line by mistake in the documentation which needs to be removed.
https://vtk.org/doc/nightly/html/classvtkPoissonDiskSampler.html
“generate point normals using local tangent planes”

I am also uploading a small test triangle mesh to see if vtkPoissonDiskSampler works on it.
It crashes for me.
basic_gem.vtk (866 Bytes)