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

baruss_t thomas.barusseau at epita.fr
Mon Nov 3 04:35:14 EST 2014


Hello Cory,

I changed PARTICLES to POLYDATA, however it doesn't change anything.
5 points are displayed (when I only give two sets of coordinates),
and the bounds indicated by ParaView are :
X range: 0 to 2
Y range: 0 to 0.816
Z range: 0 to 0.0536
When I have this in my file:

> DATASET POLYDATA
> POINTS 2 float
> 0.0039 0.8156 0.0266
> 0.2419 0.5082 0.0536
>
> POINT_DATA 2
> SCALARS identity float 1
> LOOKUP_TABLE default
> 1
> 2

Also, I can't display/color the points by their "identity" associated scalar.
I feel that nothing's working as I would like to, here.
Care to help me a little more? I would really appreciate it.

Oh, I was looking at the 5 points, and I think I get it. I'm not editing the rest
of the message, but here is what I think : 3 of these points are aligned,
and the only changing value is X. These points have X values of 0, 1, and 2.
And 1 and 2 are the values specified in my SCALARS. So, I don't know why
ParaView considers them as points, when they're specified as values...
The other two points seem to be placed correctly though, and I think these two
points are the points I specified in the POLYDATA DATASET. However,
I still can't associate the scalars to them.

Do you know where it might come from??

--
Thomas Barusseau


________________________________
De : Cory Quammen <cory.quammen at kitware.com>
Envoyé : vendredi 31 octobre 2014 17:01
À : baruss_t
Cc : vtkusers at vtk.org
Objet : Re: [vtkusers] Represent particles (as a set of points) and associate a scalar to them?

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<mailto: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<http://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/20141103/22c84352/attachment.html>


More information about the vtkusers mailing list