[vtkusers] Newbie: Load vtk formatted file into OpenGL

Ned Lowe ned.lowe at talk21.com
Fri Feb 27 11:28:51 EST 2004


Hi,

Probably a really dumb question - apologies in advance.

I have a vtk formatted file:

# vtk DataFile Version 3.0
Somebody's face
ASCII
DATASET POLYDATA
POINTS 26460 float
0 -0.2048 -0.090616 0 -0.204 -0.090824 0 -0.2032 -0.09104 
0 -0.2024 -0.091256 0 -0.2016 -0.091464 0 -0.2008 -0.09168


Etc etc etc

I am writing an OpenGL application which has to load that vtk file so it
can then be manipulated.

Can anyone give me any hints as to how I would achieve this?

Thanks a lot,
Ned Lowe




More information about the vtkusers mailing list