<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>I'm Marco I've just started my phD last week , about
computational fluid dynamics of polymeric turbulent flow , I would
really understand the algorithm for write a generic script that
given a set of point x,y,z construct a file in this format :</p>
<p><font face="Courier New, Courier, monospace"># vtk DataFile
Version 3.0<br>
vtk output<br>
ASCII<br>
DATASET POLYDATA<br>
</font> <font face="Courier New, Courier, monospace"><br>
POINTS 3 float<br>
1.0 0.5 1.5<br>
0.2 0.1 0.8<br>
0.4 0.2 2.3<br>
</font> <font face="Courier New, Courier, monospace"><br>
LINES 2 6<br>
2 0 1<br>
2 0 2<br>
</font> <font face="Courier New, Courier, monospace"><br>
VERTICES 3 6<br>
1 0<br>
1 1<br>
1 2<br>
</font> <font face="Courier New, Courier, monospace"><br>
POINT_DATA 3<br>
SCALARS element float<br>
LOOKUP_TABLE default<br>
8 1 1<br>
SCALARS somefield float<br>
LOOKUP_TABLE default<br>
0.687 0.262 0.185</font></p>
<font face="Courier New, Courier, monospace"> </font>
<p><font face="Courier New, Courier, monospace"><br>
</font></p>
<p>I have no idea how to set the LINES and VERTICES starting from
only a number of spatial point ! could somebody help me please ?</p>
</body>
</html>