I’m trying to use volumetric rendering with data that comes in as a collection of 24million 3d points. I searched through the documentation and it seems like resample to image is a way to do it if I had a mesh that had attribute data on it, but I only have points.
Is there a method that essentially samples a set of points and turns it into voxel data where the data in a cell is the number of points within that voxel? Is this an option I’m missing in the resample to image filter?
https://vtk.org/doc/nightly/html/classvtkPointDensityFilter.html is exactly what you need. The challenge is that it is not directly available in ParaView. Fortunately, you can easily integrate that into a ProgrammableFilter. Here is the code, tested with v5.11.
Adding more options to the PointDensityFilter is left as an exercise for the reader.
N.B. This filter has been threaded with vtkSMPTools. It can execute pretty quickly.
As an extended exercise, instead of a Python Programmable filter, you can simply describe the filter in XML and load it as a Plugin.
The solution is attached