[vtkusers] I need helping for use properly the simple legacy format

Sebastien Jourdain sebastien.jourdain at kitware.com
Wed May 18 06:15:35 EDT 2011


Ok for your case it will look like that

# vtk Datafile Version 3.0
Visualization of subdomains 1
ASCII
DATASET STRUCTURED_GRID
DIMENSIONS 5 5 5
POINTS 5 float
.000E+00  .000E+00  .000E+00
.200E+01  .000E+00  .000E+00
.400E+01  .000E+00  .000E+00
.600E+01  .000E+00  .000E+00
.800E+01  .000E+00  .000E+00
[...]
POINT_DATA 125
SCALARS Pressure double
LOOKUP_TABLE default
p1 p2 p3 p4 ...
VECTORS Displacements double
v1x v1y v1z v2x v2y v2z ...



On Wed, May 18, 2011 at 1:39 AM, Aradenatorix Veckhom Vacelaevus
<aradnix at gmail.com> wrote:
> Hi again:
> Well my problem is very simple, as I explained before, I'm not sure how to
> complete the format in the right way, now I have this:
> # vtk Datafile Version 3.0
> Visualization of subdomains 1
> ASCII
> DATASET STRUCTURED_GRID
> DIMENSIONS 5 5 5
> POINTS 5 float
> .000E+00  .000E+00  .000E+00
> .200E+01  .000E+00  .000E+00
> .400E+01  .000E+00  .000E+00
> .600E+01  .000E+00  .000E+00
> .800E+01  .000E+00  .000E+00
> SCALARS dataName dataType numComp
> LOOKUP_TABLE default
> s0
> s1
> ...
> sn-1
> But I don't know yet where should I take from the dataName, the dataType,
> how many types there are? I see the numComp can be ommited, but what about
> the Lookup Table? I need to add more info? And what about the data about
> pressure, I have to add it as a field and how? I have many doubts yet, I was
> searching inside the VTK User's Guide but I can't find a deeper explanation
> u_u.
> Thanks for your time and helping:
> Aradnix



More information about the vtkusers mailing list