[vtkusers] two renderer in renderwindow
Dean Inglis
dean.inglis at camris.ca
Fri May 28 11:37:53 EDT 2004
Ingo,
your tcl script runs fine on my machine.
Here is a simplified vers. using the new classes:
#///////////////////////////
package require vtk
vtkConeSource cone
vtkPolyDataMapper coneMapper
coneMapper SetInput [cone GetOutput]
vtkActor coneActor
coneActor SetMapper coneMapper
vtkAxesActor axes
vtkAnnotatedCubeActor cube
[cube GetCubeProperty] SetRepresentationToWireframe
[cube GetCubeProperty] SetAmbient 1
[cube GetCubeProperty] SetDiffuse 0
cube TextEdgesOff
vtkPropAssembly assembly
assembly AddPart axes
assembly AddPart cube
vtkRenderer ren
ren AddActor coneActor
vtkRenderWindow renWin
renWin SetSize 600 600
renWin AddRenderer ren
vtkRenderWindowInteractor iren
iren SetRenderWindow renWin
vtkOrientationMarkerWidget widget
widget SetViewport 0 0 0.25 0.25
widget SetOrientationMarker assembly
widget SetInteractor iren
widget On
widget InteractiveOff
iren Initialize
wm withdraw .
#///////////////////////////
Dean
More information about the vtkusers
mailing list