[vtkusers] Represent particles (as a set of points) and associate a scalar to them?

Cory Quammen 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
format.

On Fri, Oct 31, 2014 at 5:32 AM, Nephophobic <thomas.barusseau at epita.fr>
wrote:

> Hello.
>
> I'm working on an old project, and the vtk format used is the legacy ASCII
> one.
> I need to display particles in ParaView, and the code already there
> generates .particles files, which use the PARTICLES dataset. First of all,
> I
> 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
> their
> `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:
> http://vtk.1045678.n5.nabble.com/Represent-particles-as-a-set-of-points-and-associate-a-scalar-to-them-tp5729299.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20141031/c4110938/attachment.html>


More information about the vtkusers mailing list