[vtkusers] Grid locations for structured grid

Dominik Szczerba domi at vision.ee.ethz.ch
Thu Nov 9 18:12:21 EST 2006


Another common mistake is to declare floats and write doubles (or vice versa). Take care with things like printf("%lf") or fprintf("%f")
hopefully helpful
Dominik

On Thursday 09 November 2006 19:32, Alark Joshi wrote:
> 
> Hello all,
> 
> the VTK Structured Grid file format contains the position for each voxel in the file as the "datatype" after POINTS in the header of the VTK file. 
> 
> If you have positions specified as "int", paraview/vtk can load the file and everything works fine. If these positions are "floats", neither of them seem to work. Please let me know if I need to do anything else differently or if anyone else has faced this problem. Thanks. 
> 
> 
> # vtk DataFile Version 1.0
> vtk output
> BINARY
> DATASET STRUCTURED_GRID
> DIMENSIONS 276 288 60
> POINTS 4769280 int
> 
> 
> Regards,
> 
> Alark_______________________________________________
> This is the private VTK discussion list. 
> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
> 

-- 
Dominik Szczerba, Ph.D.
Computer Vision Lab CH-8092 Zurich
http://www.vision.ee.ethz.ch/~domi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061110/fdf5bed5/attachment-0001.pgp>


More information about the vtkusers mailing list