home *** CD-ROM | disk | FTP | other *** search
- set roll 45
- set thetaMax 360
- set radius 1
- set zMin -1
- set zMax 2
-
- startShape dynamicExample
- EveCmd {Rotate $roll 1 0 0}
- Disk $zMin $radius $thetaMax
- Cylinder $radius $zMin $zMax $thetaMax
- Disk $zMax $radius $thetaMax
- endShape
-
- proc rotateIt {} {
-
- global roll ticksPerSecond;
-
- set rollIncr [expr {180./$ticksPerSecond}]
- for {set i 0} {$i <= $ticksPerSecond} {incr i} {
- set roll [expr {$i * $rollIncr}];
- synchWithScene
- }
- }
-
- loadControlPanel doIt.nib