[vtkusers] format file algorithm

Marco Ghiani marcog.ghiani at gmail.com
Wed Oct 4 04:29:43 EDT 2017


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 :

# vtk DataFile Version 3.0
vtk output
ASCII
DATASET POLYDATA

POINTS 3 float
1.0 0.5 1.5
0.2 0.1 0.8
0.4 0.2 2.3

LINES 2 6
2 0 1
2 0 2

VERTICES 3 6
1 0
1 1
1 2

POINT_DATA 3
SCALARS element float
LOOKUP_TABLE default
8 1 1
SCALARS somefield float
LOOKUP_TABLE default
0.687 0.262 0.185


I have no idea how to set the LINES and VERTICES starting from only a 
number of spatial point ! could somebody help me please ?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20171004/18f2c399/attachment.html>


More information about the vtkusers mailing list