[vtkusers] Is this vtk precision problem?
ckchen@CIS
ckchen.cis89g at nctu.edu.tw
Wed Jan 26 10:04:55 EST 2005
Hi~
I tried to read a standard vtk file and plot it on the screen. I use the standard procedure to put the following
data in VTK framework, however, finally there is nothing on the screen,
here is the data file:
*************************************************
# vtk DataFile Version 2.0
# This file is generated by ABCDE.
ASCII
DATASET UNSTRUCTURED_GRID
POINTS 8 double
0.000000000000 0.000000000000 0.000000000000
7.00000000000e-007 0.000000000000 0.000000000000
2.00000000000e-006 0.000000000000 0.000000000000
2.70000000000e-006 0.000000000000 0.000000000000
0.000000000000 1.50000000000e-006 0.000000000000
7.00000000000e-007 1.50000000000e-006 0.000000000000
2.00000000000e-006 1.50000000000e-006 0.000000000000
2.70000000000e-006 1.50000000000e-006 0.000000000000
CELLS 6 24
3 0 5 4
3 0 1 5
3 1 6 5
3 1 2 6
3 2 7 6
3 2 3 7
CELL_TYPES 6
5 5 5 5 5 5
POINT_DATA 8
SCALARS var double
LOOKUP_TABLE default
1
2
3
4
5
6
7
8
***********************************
When I modify the coordinates of each point to larger scale:
0.000000000000 0.000000000000 0.000000000000
7.00000000000e-005 0.000000000000 0.000000000000
2.00000000000e-004 0.000000000000 0.000000000000
2.70000000000e-004 0.000000000000 0.000000000000
0.000000000000 1.50000000000e-004 0.000000000000
7.00000000000e-005 1.50000000000e-004 0.000000000000
2.00000000000e-004 1.50000000000e-004 0.000000000000
2.70000000000e-004 1.50000000000e-004 0.000000000000
then I can get the right image on the screen.
Can anyone tell my how to deal with such problem?
Kavin Chen.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20050126/91e096eb/attachment.htm>
More information about the vtkusers
mailing list