[vtkusers] vtkVRMLimporter
Matthew Kong
mkon2233 at mail.usyd.edu.au
Mon Apr 28 08:33:51 EDT 2003
Im trying to use the vtkVRMLimporter function. Im using C++ to program it, but
im trying to follow the TCL example. Im not sure what the following code in
TCL is translated c++.
[importer GetRenderer] SetBackground 0.1 0.2 0.4
[importer GetRenderWindow] SetSize 300 300
# the importer created the renderer
set renCollection [renWin GetRenderers]
$renCollection InitTraversal
set ren [$renCollection GetNextItem]
$ren ResetCamera
[$ren GetActiveCamera] Dolly 1.75
ren1 ResetCameraClippingRange
# render the image
#
iren AddObserver UserEvent {wm deiconify .vtkInteract}
iren Initialize
wm withdraw .
Can anyone help please? Does anyone have any sample code in using the
VRMLimporter for C++?
Cheers
Matt
-------------------------------------------------
This mail sent through IMP: www-mail.usyd.edu.au
More information about the vtkusers
mailing list