[vtkusers] reading triangles data

Patrick Schuska schuska at dbi.udel.edu
Wed Oct 22 13:47:31 EDT 2003



Hi. 
I`m trying now for hours to fix the header of my triangles file. I tried
also to read the header in ascii, but then I have got more errors.

No comes the error message: unrecognized keyword: ....

I included my file..

Can please somebody take a look into it...?? :o)

Thanks, Patrick


-----Ursprüngliche Nachricht-----
Von: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] Im Auftrag
von Mathieu Malaterre
Gesendet: Dienstag, 21. Oktober 2003 11:30
An: Patrick Schuska
Cc: vtkusers at vtk.org
Betreff: Re: [vtkusers] reading triangles data

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



_______________________________________________
This is the private VTK discussion list. 
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ear2dsurf.vtk
Type: application/octet-stream
Size: 35795 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20031022/34f6fcfd/attachment.obj>


More information about the vtkusers mailing list