[vtkusers] Display a STL file with vtk and Java _ vtkSTLReader

-Daniel- ich_daniel at habmalnefrage.de
Tue May 27 12:46:55 EDT 2014


The file name should have the full path of the file, for example:
"C:/STL/porsche.stl".

Add following row to the end of your code. The camera will reposition itself
to view the center point of the actors.
"....
add(renWin, BorderLayout.CENTER); 
add(exitButton, BorderLayout.SOUTH); 

*renWin.resetCamera();*
"

Good luck!




--
View this message in context: http://vtk.1045678.n5.nabble.com/Display-a-STL-file-with-vtk-and-Java-vtkSTLReader-tp5727234p5727251.html
Sent from the VTK - Users mailing list archive at Nabble.com.


More information about the vtkusers mailing list