[vtkusers] vtk file format

Vincent MEYER meyer20_100 at hotmail.com
Thu Jul 8 09:55:04 EDT 2004


Hi Immo,

Tanks for your answer, but the problem is that I have to use an unstructured 
grid as dataset and when I try to write the dataset attributes like you've 
showed me, an error message appears.
That is the type of vtk files I use. Have you got an idea how to add other 
scalar or vector attributes in the same file?

ASCII
DATASET UNSTRUCTURED_GRID
POINTS 77 float
0.000000 0.000000 0.000000
0.000000 0.003333 0.000000
....
CELLS 120 480
3 0 7 8
3 8 1 0
....
CELL_TYPES 120
5
5
....
CELL_DATA 120
SCALARS von_mises_stress float
LOOKUP_TABLE LookupTable1
61204.687064
40063.806155
....
POINT_DATA 77
VECTORS displacement float
0.000029 0.000022 0.000000
0.000030 0.000014 0.000000
........
Thanks

Vincent

>From: Immo Trinks <trinks at esc.cam.ac.uk>
>To: vtkusers at vtk.org
>Subject: Re: [vtkusers] vtk file format
>Date: Thu, 8 Jul 2004 11:21:36 +0100
>
>Hi Vincent,
>
>in Tcl you could use the following lines to read the example file 
>"data.vtk"
>that is listed below:
>
>vtkPolyDataReader reader
>reader SetFileName "data.vtk"
>reader SetScalarsName "temperature"
>
>
>#####################################
>
>
># vtk DataFile Version 2.0
>data.vtk
>ASCII
>
>DATASET POLYDATA
>POINTS 1525 float
>4536.02 1037.54 4342.56
>4536.28 1038.26 4342.95
>4536.22 1035.78 4343.6
>4533.85 1030.33 4351.91
>...
>
>POINT_DATA 1525
>SCALARS temperature float 1
>LOOKUP_TABLE lut
>4.4
>5.6
>5.8
>4.7
>...
>
>POINT_DATA 1525
>SCALARS pressure float 1
>LOOKUP_TABLE lut
>0.2
>3.5
>0.7
>1.1
>...
>
>
>Hope that helps,
>Immo
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>On Thursday 08 Jul 2004 10:23, Vincent MEYER wrote:
> > Hello vtkusers,
> >
> > I start using vtk and I've got a problem. I'd like to know how to give 
>the
> > different names to scalars or vectors in the vtk file format 
>(temperature
> > and pressure for example). Could someone help me?
> >
> > Thanks a lot
> >
> > Vincent MEYER
> >
> > _________________________________________________________________
> > Hotmail : un compte GRATUIT qui vous suit partout et tout le temps !
> > http://g.msn.fr/FR1000/9493
> >
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> > <http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to
> > subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://www.vtk.org/mailman/listinfo/vtkusers

_________________________________________________________________
MSN Search, le moteur de recherche qui pense comme vous !  
http://search.msn.fr/




More information about the vtkusers mailing list