<HTML>
<HEAD>
<TITLE>Re: [Paraview] Question about showing a few nodes/points using vtk xml</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>By default, ParaView draws cells, not points. &nbsp;(You&#8217;ve found one exception where selected points are drawn.) &nbsp;If you want to see points in general, you will need to create &#8220;vertex&#8221; cells. &nbsp;One way to do that is to run your data through the glyph filter and select the &#8220;2D Glyph&#8221; and then &#8220;Vected&#8221; glyph types. &nbsp;Or you can add vectex cells directly to your data as follows.<BR>
<BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>&lt;VTKFile version=&quot;0.1&quot; byte_order=&quot;LittleEndian&quot; type=&quot;PolyData&quot;&gt;<BR>
&lt;PolyData&gt;<BR>
&lt;Piece NumberOfPoints=&quot;6&quot; NumberOfVerts=&quot;6&quot;&gt;<BR>
&lt;Points&gt;<BR>
&lt;DataArray NumberOfComponents=&quot;3&quot; format=&quot;ascii&quot; type=&quot;Float32&quot;&gt;<BR>
0 0 0.0<BR>
0 0.5 0.0<BR>
5 9.5 0.0<BR>
5 10 0.0<BR>
14 9.5 0.0<BR>
14 10 0.0<BR>
&lt;/DataArray&gt;<BR>
&lt;/Points&gt;<BR>
&lt;Verts&gt;<BR>
&lt;DataArray type=&quot;Int32&quot; Name=&quot;connectivity&quot; format=&quot;ascii&quot;&gt;<BR>
0 1 2 3 4 5<BR>
&lt;/DataArray&gt;<BR>
&lt;DataArray type=&quot;Int32&quot; Name=&quot;offsets&quot; format=&quot;ascii&quot;&gt;<BR>
1 2 3 4 5 6<BR>
&lt;/DataArray&gt;<BR>
&lt;/Verts&gt;<BR>
&lt;PointData&gt;<BR>
&lt;DataArray format=&quot;ascii&quot; type=&quot;Float32&quot; Name=&quot;myValue&quot;&gt;<BR>
1.0<BR>
4.0<BR>
9.0<BR>
15.0<BR>
80.4<BR>
100.3<BR>
&lt;/DataArray&gt;<BR>
&lt;/PointData&gt;<BR>
&lt;/Piece&gt;<BR>
&lt;/PolyData&gt;<BR>
&lt;/VTKFile&gt;<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
-Ken<BR>
<BR>
<BR>
On 7/6/10 7:07 AM, &quot;L.M. de Vries&quot; &lt;<a href="ManuelDeVries@GMail.com">ManuelDeVries@GMail.com</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> &nbsp;Hi,<BR>
<BR>
I am trying to show a few points (not a mesh) with their values in<BR>
Paraview using an XML VTK input-file<BR>
Here are the contents of my .vpt file:<BR>
<BR>
&lt;VTKFile version=&quot;0.1&quot; byte_order=&quot;LittleEndian&quot; type=&quot;PolyData&quot;&gt;<BR>
&lt;PolyData&gt;<BR>
&lt;Piece NumberOfPoints=&quot;6&quot;&gt;<BR>
&lt;Points&gt;<BR>
&lt;DataArray NumberOfComponents=&quot;3&quot; format=&quot;ascii&quot; type=&quot;Float32&quot;&gt;<BR>
0 0 0.0<BR>
0 0.5 0.0<BR>
5 9.5 0.0<BR>
5 10 0.0<BR>
14 9.5 0.0<BR>
14 10 0.0<BR>
&lt;/DataArray&gt;<BR>
&lt;/Points&gt;<BR>
&lt;PointData&gt;<BR>
&lt;DataArray format=&quot;ascii&quot; type=&quot;Float32&quot; Name=&quot;myValue&quot;&gt;<BR>
1.0<BR>
4.0<BR>
9.0<BR>
15.0<BR>
80.4<BR>
100.3<BR>
&lt;/DataArray&gt;<BR>
&lt;/PointData&gt;<BR>
&lt;/Piece&gt;<BR>
&lt;/PolyData&gt;<BR>
&lt;/VTKFile&gt;<BR>
<BR>
<BR>
After opening this file in Paraview, it show the points (when I use<BR>
&quot;select points through&quot;).<BR>
If I show the legend, the max and min values are correct.<BR>
If I show the values as labels, they are correct.<BR>
What I would like to know is how I can get the points to show the right<BR>
color.<BR>
<BR>
BTW, Paraview crashes if I change the file to only use 2 components.....<BR>
<BR>
Thanks in advance for your help,<BR>
<BR>
Luis Manuel<BR>
<BR>
_______________________________________________<BR>
Powered by www.kitware.com<BR>
<BR>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><BR>
<BR>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><BR>
<BR>
Follow this link to subscribe/unsubscribe:<BR>
<a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><BR>
<BR>
<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
&nbsp;&nbsp;&nbsp;**** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Kenneth Moreland<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sandia National Laboratories<BR>
*********** &nbsp;<BR>
*** *** *** &nbsp;email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** &nbsp;*** &nbsp;** &nbsp;phone: (505) 844-8919<BR>
&nbsp;&nbsp;&nbsp;&nbsp;*** &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;web: &nbsp;&nbsp;<a href="http://www.cs.unm.edu/~kmorel">http://www.cs.unm.edu/~kmorel</a><BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
</SPAN></FONT>
</BODY>
</HTML>