[Fwd: Q: Threads ???]

Gala'Vi and Liss @ Mainframe Country pushkare at students.uiuc.edu
Thu Jun 24 10:53:28 EDT 1999


I don't think that you need threads to do what you want to do.
Please run this TCL script maybe this would help.
This will draw two cones in the same rendering window and you will be able
to manipulate them independently of each other. If you want you can even
have two different rendering windows. Nobody says that you can't bring up
more than 1 rendering window at a time also. Try this script, if you like
it there is more from there this came from. :)

Gala'Vi
NCSA, UIUC


catch {load vtktcl}
# user interface command widget
source ../../examplesTcl/vtkInt.tcl

# create a rendering window and renderer
vtkRenderer ren1
vtkRenderer ren2
vtkRenderWindow renWin
    renWin AddRenderer ren1
    renWin AddRenderer ren2
    renWin SetSize 400 200
vtkRenderWindowInteractor iren
    iren SetRenderWindow renWin

# create an actor and give it cone geometry
vtkConeSource cone1
vtkConeSource cone2

vtkPolyDataMapper coneMapper1
  coneMapper1 SetInput [cone1 GetOutput]
vtkPolyDataMapper coneMapper2
  coneMapper2 SetInput [cone2 GetOutput]


vtkActor coneActor1
coneActor1 SetMapper coneMapper1
vtkActor coneActor2
coneActor2 SetMapper coneMapper2

# assign our actor to the renderer
ren1 AddActor coneActor1
ren2 AddActor coneActor2

ren1 SetViewport 0 0 0.5 1
ren1 SetBackground 0.5 0.5 0.5

ren2 SetViewport 0.5 0 1 1


renWin Render
# enable user interface interactor
iren SetUserMethod {wm deiconify .vtkInteract}
iren Initialize

# prevent the tk window from showing up then start the event loop
 wm withdraw .




//***********************************************
  -- There is always a way, 
        you just have to find it.
              (B.Hambly "Children Of The Jedi")
//***********************************************

On Wed, 23 Jun 1999, Audrius Stundzia wrote:

> 
> 



-----------------------------------------------------------------------------
This is the private VTK discussion list.  Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>.  For help, send message body containing
"info vtkusers" to the same address.     Live long and prosper.
-----------------------------------------------------------------------------





More information about the vtkusers mailing list