<br><font size=2 face="sans-serif">Hi vtkusers,</font>
<br>
<br><font size=2 face="sans-serif">I want to read POINTS in a vtk data
file with double precision, sadly POINTS values are truncated.</font>
<br><font size=2 face="sans-serif">Can someone explain me what is wrong
with my program ?</font>
<br>
<br><font size=2 face="sans-serif">I'm working on Windows and I'm using
TclPro1.4 and VTK4.2.</font><font size=3> </font>
<br><font size=2 face="sans-serif"><b>My reading VTK file is : </b></font>
<br><font size=2 face="sans-serif"><br>
# vtk DataFile Version 3.0</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
ASCII</font><font size=3> </font><font size=2 face="sans-serif"><br>
DATASET UNSTRUCTURED_GRID</font><font size=3> </font><font size=2 face="sans-serif"><br>
POINTS &nbsp;37466 <b>double</b></font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; -0.1214999924E+03 &nbsp; &nbsp;-0.3000000000E+03 &nbsp; &nbsp;
0.8236390114E+01</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; -0.1214999847E+03 &nbsp; &nbsp;-0.3000000000E+03 &nbsp; &nbsp;
0.1123638916E+02</font><font size=3> </font><font size=2 face="sans-serif"><br>
....</font>
<br><font size=2 face="sans-serif">CELLS &nbsp; &nbsp;69889 &nbsp;378041</font><font size=3>
</font><font size=2 face="sans-serif"><br>
 1 597</font><font size=3> </font><font size=2 face="sans-serif"><br>
 1 598</font><font size=3> </font><font size=2 face="sans-serif"><br>
...</font><font size=3> </font><font size=2 face="sans-serif"><br>
CELL_TYPES &nbsp; &nbsp; &nbsp;69889</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; 1</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; 1</font><font size=3> </font><font size=2 face="sans-serif"><br>
...</font><font size=3> </font><font size=2 face="sans-serif"><br>
CELL_DATA &nbsp;69889</font><font size=3> </font><font size=2 face="sans-serif"><br>
SCALARS MATERIAL float</font><font size=3> </font><font size=2 face="sans-serif"><br>
LOOKUP_TABLE default</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; 1</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; 1</font><font size=3> </font><font size=2 face="sans-serif"><br>
...</font><font size=3> </font><font size=2 face="sans-serif"><br>
SCALARS GROUP float</font><font size=3> </font><font size=2 face="sans-serif"><br>
LOOKUP_TABLE default</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; 1</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; 1</font><font size=3> </font><font size=2 face="sans-serif"><br>
...</font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
I'm using <b>vtkUnstructuredGridReader</b> &nbsp;to &nbsp;read my VTK file
:</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<b>vtkUnstructuredGridReader
Ureader</b></font><font size=3> </font><font size=2 face="sans-serif"><b><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;Ureader SetFileName $file</b></font><font size=3> <br>
</font><font size=2 face="sans-serif"><br>
A vtkUnstructuredGrid object is created to insert or delete points or cells
:</font><font size=3> </font><font size=2 face="sans-serif"><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<b>vtkUnstructuredGrid
usgModel</b></font><font size=3> </font><font size=2 face="sans-serif"><b><br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp;usgModel ShallowCopy [Ureader GetOutput]</b></font><font size=3>
</font>
<br>
<br><font size=2 face="sans-serif">To get the value of the first point
: <b>&nbsp;</b>set coord(0)<b> [usgModel GetPoint 0]</b></font>
<br><font size=2 face="sans-serif">The coordinates are : &nbsp;</font><font size=2 color=red face="sans-serif"><b>-121.5
-300 8.23639 &nbsp;!!!!</b></font>
<br>
<br>
<br><font size=2 face="sans-serif"><br>
Best regards,</font>
<br>
<br><font size=2 face="sans-serif">Sophie</font>
<br><font size=2 face="sans-serif"><br>
</font>