home *** CD-ROM | disk | FTP | other *** search
- # note that $modelPath is automagically set to be the complete path
- # name of whereever this .mdl file wrapper is located
- #
- source $modelPath/initialDefines.eve
-
- # note that since "source" is a built-in tcl command, we needed to
- # give it the full path name of the previous file so it could load it.
- # In the next command, though, since "loadControlPanel" is a new eve
- # command, it is smart enough to append the value of $modelPath to any
- # file that doesn't start with "/"
- #
- loadControlPanel controls.nib
- loadControlPanel animation.nib
-
- startShape aCylinder
- EveCmd {Color $cylinder(color)}
- EveCmd {Scale $cylinder(xScale) $cylinder(yScale) $cylinder(zScale)}
- EveCmd {Translate $cylinder(xTranslate) $cylinder(yTranslate) $cylinder(zTranslate)}
- EveCmd {Rotate $cylinder(xRotate) 1 0 0 }
- EveCmd {Rotate $cylinder(yRotate) 0 1 0 }
- EveCmd {Rotate $cylinder(zRotate) 0 0 1 }
- SolidBegin primitive
- EveCmd {Disk $cylinder(zMin) $cylinder(radius) $cylinder(thetaMax)}
- EveProc {drawInside $cylinder(thetaMax) $cylinder(zMin) $cylinder(zMax) $cylinder(radius) $cylinder(innerX) $cylinder(innerY)}
- EveCmd {Cylinder $cylinder(radius) $cylinder(zMin) $cylinder(zMax) $cylinder(thetaMax)}
- EveCmd {Disk $cylinder(zMax) $cylinder(radius) $cylinder(thetaMax)}
- SolidEnd
- endShape
-