Need a rooftop!
Patric.Weis at mycrona.de
Patric.Weis at mycrona.de
Wed Apr 19 04:59:51 EDT 2000
Hi Matthieu,
the following may be the reason for your trouble:
1. In the CELLS section you used 1-offset point indices instead of 0-offset
ones. Please try the following:
CELLS 4 16
3 0 1 2
3 1 3 2
3 3 4 2
3 4 0 2
2. You need to assign the scalars to the points or to the cells by the
keywords POINT_DATA or CELL_DATA prior to SCALARS:
POINT_DATA 5
SCALARS thickness8 float
LOOKUP_TABLE default
0.0
0.0
1.0
0.0
0.0
Please have a look to the File Formats examples of the "vtk User's Guide"!
It is worth to be bought for fast vtk programming! :)
The same examples can also be found in "The Visualization Toolkit",
... or simply download it as pdf file from
http://www.kitware.com/FileFormats.pdf ,
... or ask the vtk users community again ...
As you see, the vtk way of getting information is a manifold one! :)
Hope, this helps!
Patric Weis
MYCRONA GmbH
- - - Original Message - - -
Matthieu
<mpaindavoine at umassd.ed An: vtkusers at public.kitware.com
u> Kopie:
Gesendet von: Thema: Need a rooftop!
owner-vtkusers at public.k
itware.com
19.04.00 05:30
Hello,
I am beginning with VTK, and I am trying to visualize a rooftop. It's
actually a broiled down version of my problem, but it will do for now.
The data file is attached.
I run a program to visualize it, and it crashes, dumping core and all
that. The first error VTK finds is something like
vtkUnstructuredGridReader.... Unrecognized keywords: scalars.
I run the same program on the blow.vtk data set, and it works fine.
I would like to know what is wrong with my data file.
I gladly welcome any suggestion.
Thank you,
Matthieu
# vtk DataFile Version 1.0
roof
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 5 float
0.0 0.0 0.0
1.0 0.0 0.0
0.5 0.5 1.0
1.0 1.0 0.0
0.0 1.0 0.0
CELLS 4 16
3 1 2 3
3 2 4 3
3 4 5 3
3 5 1 3
CELL_TYPES 4
5
5
5
5
SCALARS thickness8 float
LOOKUP_TABLE default
0.0
0.0
1.0
0.0
0.0
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------
More information about the vtkusers
mailing list