<div dir="ltr"><p><font><span style="font-family:arial,helvetica,sans-serif">Last week my mentor <font class="">Oliver
 Sander gives me a very detailed working plan on my project. Current I 
am working on the first point of the plan. </font></span></font></p><p><font>"1. Write a command-line tool that can take a psurface object and write its domain surface
  in vtk format (which can be read by paraview). </font></p><p><font>- Please call the program 'psurface-convert'

- VTK seems to be pretty big, and I don't think I want a vtk dependence for
psurface.  In dune-grid/dune/grid/io/file/vtk/vtkwriter.hh there is code that writes
grids in vtk format withoutexternal dependencies.  That should get you started. </font></p><p><font> - You'll need a psurface object to tesTriangleTypet with.  The easiest way toe sh=path,
and use the code in AmiraMeshIO.cpp"</font></p><p><font><br></font></p><p><font>The
 file dune-grid/dune/grid/io/file/vtk/vtkwriter.hh have the class 
VTKWritter which takes data from class template GridView and write it 
into vtu format with 4 output choice( ascii, base64,appended raw, 
appended base 64). It fills the cell data, vertex data, position of the 
vertices and connectivity arrays into vtu files. </font></p><p><font><br></font>
<font>We can read psurface subject from the Amiramesh file. 
Psurface project have the members triangular array, vertex array and 
edge array which store, the information needed to create vtk files. I 
created the class VTUp. In VTUp class, functions are defined to read 
psurface elements by elements.  </font></p><p><font><br></font>
<font>we have two vtk output file choice, the unstructured grid
 vtk file or the polygonal data vtk file.The polygonal dataset consists 
of arbitrary combinations </font></p><p><font>of vertices, 
points, lines and triangular strips. The unstructured grid dataset 
consists of arbitrary combinations of any possible cell type. So this 
two is chosen to be the output format of vtk file.</font></p><p><font><br></font>
<font>I have not finished the code for #1 yet.  I hope I can make it work by Thursday. </font></p><p><font><br><span style="font-family:arial,helvetica,sans-serif">
I have some trouble in clone the git code from /<a href="http://gitorious.org/psurface/psurface.git">gitorious.org/psurface/psurface.git</a>. makedist.sh is missing in the code downloaded. The version I am using the psurface code from the DUNE website. <br>
</span></font></p><p><font>I am sorry for the my late reply.  <br></font></p><p><font>Best,</font></p><p><font>Xiaoxue</font><br></p><p><font><span style="font-family:arial,helvetica,sans-serif"></span></font></p></div>