<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. (You’ve found one exception where selected points are drawn.) If you want to see points in general, you will need to create “vertex” cells. One way to do that is to run your data through the glyph filter and select the “2D Glyph” and then “Vected” glyph types. 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'><VTKFile version="0.1" byte_order="LittleEndian" type="PolyData"><BR>
<PolyData><BR>
<Piece NumberOfPoints="6" NumberOfVerts="6"><BR>
<Points><BR>
<DataArray NumberOfComponents="3" format="ascii" type="Float32"><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>
</DataArray><BR>
</Points><BR>
<Verts><BR>
<DataArray type="Int32" Name="connectivity" format="ascii"><BR>
0 1 2 3 4 5<BR>
</DataArray><BR>
<DataArray type="Int32" Name="offsets" format="ascii"><BR>
1 2 3 4 5 6<BR>
</DataArray><BR>
</Verts><BR>
<PointData><BR>
<DataArray format="ascii" type="Float32" Name="myValue"><BR>
1.0<BR>
4.0<BR>
9.0<BR>
15.0<BR>
80.4<BR>
100.3<BR>
</DataArray><BR>
</PointData><BR>
</Piece><BR>
</PolyData><BR>
</VTKFile><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, "L.M. de Vries" <<a href="ManuelDeVries@GMail.com">ManuelDeVries@GMail.com</a>> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> 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>
<VTKFile version="0.1" byte_order="LittleEndian" type="PolyData"><BR>
<PolyData><BR>
<Piece NumberOfPoints="6"><BR>
<Points><BR>
<DataArray NumberOfComponents="3" format="ascii" type="Float32"><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>
</DataArray><BR>
</Points><BR>
<PointData><BR>
<DataArray format="ascii" type="Float32" Name="myValue"><BR>
1.0<BR>
4.0<BR>
9.0<BR>
15.0<BR>
80.4<BR>
100.3<BR>
</DataArray><BR>
</PointData><BR>
</Piece><BR>
</PolyData><BR>
</VTKFile><BR>
<BR>
<BR>
After opening this file in Paraview, it show the points (when I use<BR>
"select points through").<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>
**** Kenneth Moreland<BR>
*** Sandia National Laboratories<BR>
*********** <BR>
*** *** *** email: <a href="kmorel@sandia.gov">kmorel@sandia.gov</a><BR>
** *** ** phone: (505) 844-8919<BR>
*** web: <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>