[vtkusers] Represent particles (as a set of points) and associate a scalar to them?
cory.quammen at kitware.com
Fri Oct 31 13:01:59 EDT 2014
Try to change PARTICLES to POLYDATA in your file, and it should load.
See http://www.vtk.org/VTK/img/file-formats.pdf for details on the legacy
On Fri, Oct 31, 2014 at 5:32 AM, Nephophobic <thomas.barusseau at epita.fr>
> I'm working on an old project, and the vtk format used is the legacy ASCII
> I need to display particles in ParaView, and the code already there
> generates .particles files, which use the PARTICLES dataset. First of all,
> can't find anything on the Internet about that dataset. Second of all, here
> is the content :
> > # vtk DataFile Version 3.6.2
> > Particle file, current time (s) = 1
> > DATASET PARTICLES
> > POINTS 2 float
> > 0.003 0.815 0.026
> > 0.241 0.508 0.053
> > POINT_DATA 2
> > SCALARS identity float 1
> > LOOKUP_TABLE default
> > 1
> > 2
> Now this looks good : it's two particles, represented by (x, y, z) values,
> and each of them has a scalar `identity` associated.
> However, when opening this in ParaView, I don't get 2 points, I get 4. Also
> the values are all messed up, and I can't even color them according to
> `identity` value. So, it sucks. And since I can't find anything about the
> PARTICLES dataset, I guess I shouldn't use it.
> Can someone help me in any way ?
> View this message in context:
> Sent from the VTK - Users mailing list archive at Nabble.com.
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the vtkusers