[vtkusers] [Q]GetActiveCamera tcl

Michael Norton mnorton at cisco.com
Mon Jul 1 18:30:08 EDT 2002


hi,

I am plotting a function bounded by the following conditions.
min and max values
----------------------------
x: -1.0 < 1.0
y: -1.0 < 1.0
z: 0 < 5.0

Under Tcl what should GetActiveCamera values be? I want the z axis vertical 
and the xy plane perp to the z -axis. (i.e. classic 3D function plot).

thanks,

Mike N.

:
vtkCubeSource bbox
bbox SetBounds $min_x $max_x $min_y $max_y $min_z $max_z
:

ren1 SetBackground 1 1 1

ren1 AddActor aPolyLineActor
ren1 AddActor frameActor
ren1 AddActor textActor

#
# Camera Settings
#
[ren1 GetActiveCamera] Zoom .25
[ren1 GetActiveCamera] Azimuth 30
[ren1 GetActiveCamera] Elevation 20
[ren1 GetActiveCamera] Dolly 2.8
ren1  ResetCameraClippingRange




More information about the vtkusers mailing list