[vtkusers] loading a file
Lam Ha
kei at gmx.ch
Fri Nov 2 10:38:36 EDT 2007
Hi there
I am new to VTK and have just finished some coding. My application
reads a .stl file and displays it. At the moment I have hardcoded the
filename:
vtkSTLReader *sr = vtkSTLReader::New();
sr->SetFileName("Ear.stl");
Now I would like to have a prompt-window (like the browse-button)
from where I can choose my desired STL-file to be read. So in the end
the last line from above would look like:
sr->SetFileName(filename);
What do I have to do?
Thanks in advance
Lam
More information about the vtkusers
mailing list