[vtkusers] reading  triangles data
    Mathieu Malaterre 
    Mathieu.Malaterre at creatis.insa-lyon.fr
       
    Tue Oct 21 11:30:09 EDT 2003
    
    
  
Patrick Schuska wrote:
> Hi.
> 
> I am trying to read triangles data (I took the file from amira) with 
> vtk. But it doesn`t work. There comes allways the same error message.
> 
> I think I did something with the header wrong.
> 
> It looks like this..
> 
>  
> 
>  
> 
> # vtk DataFile Version 3.0
> 
> Triangle Data
> 
>  
> 
> BINARY
> 
>  
> 
> DATASET POLYDATA
> 
>  
> 
> TRIANGLES 3790
> 
>  
> 
> …data…
Patrick,
	Please read this pdf file:
	http://vtk.org/pdf/file-formats.pdf
	There is no TRIANGLE keyword in VTK file format. Instead your file 
should be:
# vtk DataFile Version 3.0
vtk output
ASCII
DATASET POLYDATA
POINTS 50 float
0 0 0
....
POLYGONS 96 384
3 2 8 0
3 ...
3 ...
HTH
mathieu
    
    
More information about the vtkusers
mailing list