Check out the vtkAbstractDataArray class and it&#39;s derived types for storing the information you want.  You can associate any of those arrays with your data set through vtkFieldData, vtkPointData, or vtkCellData (probably the one you want).  <br>
<br>ParaView will allow you to color your surface mesh using either vtkPointData arrays or vtkCellData arrays.  You can also look at those values in the spreadsheet along with vtkFieldData arrays. <br><br><div class="gmail_quote">
On Tue, Oct 13, 2009 at 9:13 AM, Parker, Andrew (UK Filton) <span dir="ltr">&lt;<a href="mailto:Andrew.Parker2@baesystems.com">Andrew.Parker2@baesystems.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">




<div>
<div><font size="2" face="Arial"><span>Dear 
All,</span></font></div>
<div><font size="2" face="Arial"><span></span></font> </div>
<div><font size="2" face="Arial"><span>Quite simply, I&#39;m 
using gmsh to generate surface meshes for a CFD simulation. Gmsh has the 
wonderful feature of being able to add a boundary ID flag to a surface or 
collection of surfaces, this is essential of setting up a computational problem 
as I&#39;m sure you all know.  The idea being that one may collect all the 
walls together and give them the flag &quot;WALL&quot; or &quot;1&quot;, and then like wise for all 
other physical geometry types.  However, gmsh writes out a vtk file for the 
mesh only.  Having been in contact with the author of the program, he&#39;s 
agreed to modify the source and add the boundary condition data to the vtk mesh 
file and write all of this out, an amazing contribution, since this does feature 
in the open source as a tool chain, i.e read in CAD file -&gt; mesh -&gt; define 
boundaries -&gt; write out in standard format (for all platforms), that I know 
of at least.  I said I would ask/find out what new data structure he needs 
to use/implement, and he would implement it.</span></font></div>
<div><font size="2" face="Arial"><span></span></font> </div>
<div><font size="2" face="Arial"><span>Two questions then: 
</span></font></div>
<div><font size="2" face="Arial"><span></span></font> </div>
<div><font size="2" face="Arial"><span>1)  What data 
structure is available in vtk that can hold a string (preferably by a long 
shot) or integer per surface of a polygon?  </span></font></div>
<div><font size="2" face="Arial"><span>2)  Currently I 
am reading the mesh written by gmsh in vtk format into paraview, will I be able 
to (if the above is an option), be able to read into paraview whatever data 
structure type you&#39;re going to recommend and crucially see the physical boundary 
condition flags that I added in gmsh within paraview?</span></font></div><span>
<div><br><font size="2" face="Arial">Many thanks, please ask if you require 
clarity.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><span><font size="2" face="Arial">Andy</font></span></div></span></div> <br>
********************************************************************<br>
This email and any attachments are confidential to the intended<br>
recipient and may also be privileged. If you are not the intended<br>
recipient please delete it from your system and notify the sender.<br>
You should not copy it or use it for any purpose nor disclose or<br>
distribute its contents to any other person.<br>
********************************************************************<br>
<br>

<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>
<br></blockquote></div><br>