Take random sample of data

I have a vtk pointData set, where there are too many points / spheres to visualize at once. Is there a filter for randomly sampling the dataset, say only half of the points can be made visible?

A programmable filter would be nice but there is no function called sample() as in python. How do I get to know about it?

I believe MaskPoints is what you need. There are a few options for defining how to sub-sample your dataset.

1 Like