This post is similar to 【VTK】A SIMPLE EXAMPLE WRITTEN IN C++.
We use TCL script to do the same thing: create and show cone in 3D world with the virtualization tool kit.
TCL script:

package require vtk

vtkConeSource cone

vtkPolyDataMapper coneMapper
coneMapper SetInputConnection [cone GetOutputPort]

vtkActor coneActor
coneActor SetMapper coneMapper

vtkRenderer ren1
ren1 AddActor coneActor
ren1 SetBackground 0 0 0

vtkRenderWindow renWin
renWin AddRenderer ren1

vtkRenderWindowInteractor iren
iren SetRenderWindow renWin

# Withdraw the default tk window
wm withdraw .

iren Start

Run the script:vtk tclTest.tcl



Categories: TCLVTK

0 0 vote
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
A prohibited operation
0
Would love your thoughts, please comment.x
()
x