<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none"><!-- p { margin-top: 0px; margin-bottom: 0px; }--></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>Well, I finally got it to work, but this is kinda hack-ish...<br>
</p>
<p><br>
</p>
<p>So, I used the POLYDATA DATASET.<br>
</p>
<p>I wrote my points, and then linked them two at the time using VERTICES.<br>
</p>
<p>So it looked like that, for 4 points :<br>
</p>
<p><br>
</p>
<p>> VERTICES 3 9<br>
</p>
<p>> 2 0 1<br>
</p>
<p>> 2 1 2<br>
</p>
<p>> 2 2 3<br>
</p>
<p><br>
</p>
<p>Then, I just put my POINT_DATA and my SCALARS, and it worked.<br>
</p>
<p>I can now display points (like particles) inside of ParaView, and associate a<br>
</p>
<p>value to them.​ So thanks for the hint on the POLYDATA DATASET :)<br>
</p>
<p><br>
</p>
<p>Best,<br>
</p>
<p><br>
</p>
<p>-- <br>
</p>
<p>Thomas Barusseau<br>
</p>
<p><br>
</p>
<div dir="ltr" style="color: rgb(33, 33, 33);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De :</b> vtkusers <vtkusers-bounces@vtk.org> de la part de baruss_t <thomas.barusseau@epita.fr><br>
<b>Envoyé :</b> lundi 3 novembre 2014 09:35<br>
<b>À :</b> Cory Quammen<br>
<b>Cc :</b> vtkusers@vtk.org<br>
<b>Objet :</b> Re: [vtkusers] Represent particles (as a set of points) and associate a scalar to them?</font>
<div> </div>
</div>
<div>
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<p></p>
<span style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">Hello Cory,</span>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<br>
</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
I changed PARTICLES to POLYDATA, however it doesn't change anything.<br>
5 points are displayed (when I only give two sets of coordinates),</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
and the bounds indicated by ParaView are :</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
X range: 0 to 2</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
Y range: 0 to 0.816</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
Z range: 0 to 0.0536</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
When I have this in my file:</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<br>
</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
> DATASET POLYDATA</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
> POINTS 2 float</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
> 0.0039 0.8156 0.0266</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
> 0.2419 0.5082 0.0536</div>
<span class="im" style="color:rgb(80,0,80); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<div>> </div>
<div>> POINT_DATA 2</div>
<div>> SCALARS identity float 1</div>
<div>> LOOKUP_TABLE default</div>
<div>> 1</div>
<div>> 2</div>
<div><br>
</div>
</span>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
Also, I can't display/color the points by their "identity" associated scalar.</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
I feel that nothing's working as I would like to, here.<br>
Care to help me a little more? I would really appreciate it.</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<br>
</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
Oh, I was looking at the 5 points, and I think I get it. I'm not editing the rest</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
of the message, but here is what I think : 3 of these points are aligned,</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
and the only changing value is X. These points have X values of 0, 1, and 2.</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
And 1 and 2 are the values specified in my SCALARS. So, I don't know why</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
ParaView considers them as points, when they're specified as values...</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
The other two points seem to be placed correctly though, and I think these two</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
points are the points I specified in the POLYDATA DATASET. However,</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
I still can't associate the scalars to them.</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<br>
</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
Do you know where it might come from?​<br>
</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
<br>
</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
-- <br>
</div>
<div style="color:rgb(34,34,34); font-family:arial,sans-serif; font-size:13px; background-color:rgb(255,255,255)">
Thomas Barusseau<br>
</div>
<p><br>
</p>
<div style="color:rgb(33,33,33)">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>De :</b> Cory Quammen <cory.quammen@kitware.com><br>
<b>Envoyé :</b> vendredi 31 octobre 2014 17:01<br>
<b>À :</b> baruss_t<br>
<b>Cc :</b> vtkusers@vtk.org<br>
<b>Objet :</b> Re: [vtkusers] Represent particles (as a set of points) and associate a scalar to them?</font>
<div> </div>
</div>
<div>
<div dir="ltr">Try to change PARTICLES to POLYDATA in your file, and it should load.
<div><br>
</div>
<div>See <a href="http://www.vtk.org/VTK/img/file-formats.pdf">http://www.vtk.org/VTK/img/file-formats.pdf</a> for details on the legacy format.</div>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Fri, Oct 31, 2014 at 5:32 AM, Nephophobic <span dir="ltr">
<<a href="mailto:thomas.barusseau@epita.fr" target="_blank">thomas.barusseau@epita.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
Hello.<br>
<br>
I'm working on an old project, and the vtk format used is the legacy ASCII<br>
one.<br>
I need to display particles in ParaView, and the code already there<br>
generates .particles files, which use the PARTICLES dataset. First of all, I<br>
can't find anything on the Internet about that dataset. Second of all, here<br>
is the content :<br>
<br>
> # vtk DataFile Version 3.6.2<br>
> Particle file, current time (s) = 1<br>
><br>
> DATASET PARTICLES<br>
> POINTS 2 float<br>
> 0.003 0.815 0.026<br>
> 0.241 0.508 0.053<br>
><br>
> POINT_DATA 2<br>
> SCALARS identity float 1<br>
> LOOKUP_TABLE default<br>
> 1<br>
> 2<br>
<br>
Now this looks good : it's two particles, represented by (x, y, z) values,<br>
and each of them has a scalar `identity` associated.<br>
<br>
However, when opening this in ParaView, I don't get 2 points, I get 4. Also<br>
the values are all messed up, and I can't even color them according to their<br>
`identity` value. So, it sucks. And since I can't find anything about the<br>
PARTICLES dataset, I guess I shouldn't use it.<br>
<br>
Can someone help me in any way ?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/Represent-particles-as-a-set-of-points-and-associate-a-scalar-to-them-tp5729299.html" target="_blank">
http://vtk.1045678.n5.nabble.com/Represent-particles-as-a-set-of-points-and-associate-a-scalar-to-them-tp5729299.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">
http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtkusers" target="_blank">http://public.kitware.com/mailman/listinfo/vtkusers</a><br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>