<div>The &quot;Selection Inspector&quot; of ParaView can probably do what you want: <a href="http://paraview.org/OnlineHelpCurrent/SelectionInspector.html">http://paraview.org/OnlineHelpCurrent/SelectionInspector.html</a></div>

<div> </div>
<div>Nehme<br></div>
<div class="gmail_quote">On Sun, Aug 7, 2011 at 7:42 PM, ChiaWeng Boon <span dir="ltr">&lt;<a href="mailto:chiaweng@gmail.com">chiaweng@gmail.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br><br>I would like to display the ID numbers of my bodies.  They are saved<br>as a Point Data as follows from vtkUnstructuredGridWriter.  Is there a<br>
way to display the IDs as texts using Paraview?  I&#39;ve been trying out<br>different Filters for hours but am unsuccessful.<br><br>vtkSmartPointer&lt;vtkFloatArray&gt; spheresId =<br>vtkSmartPointer&lt;vtkFloatArray&gt;::New();<br>
       spheresId-&gt;SetNumberOfComponents(1);<br>       spheresId-&gt;SetName(&quot;id&quot;);<br>vtkSmartPointer&lt;vtkUnstructuredGrid&gt; spheresUg =<br>vtkSmartPointer&lt;vtkUnstructuredGrid&gt;::New();<br><br>FOR EVERY BODY:<br>
spheresUg-&gt;SetPoints(spheresPos);<br>spheresUg-&gt;SetCells(VTK_VERTEX, spheresCells);<br>spheresId-&gt;InsertNextValue(b-&gt;getId());<br>spheresUg-&gt;GetPointData()-&gt;AddArray(spheresId);<br>END FOR<br><br>vtkSmartPointer&lt;vtkXMLUnstructuredGridWriter&gt; writer =<br>
vtkSmartPointer&lt;vtkXMLUnstructuredGridWriter&gt;::New();<br>string fn=fileName+&quot;spheres.&quot;+lexical_cast&lt;string&gt;(scene-&gt;iter)+&quot;.vtu&quot;;<br>writer-&gt;SetFileName(fn.c_str());<br>writer-&gt;SetInput(spheresUg);<br>
writer-&gt;Write();<br><br><br>Yours faithfully,<br><br>Boon<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 ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br>