RE: rotate / view a graphics object
- To: mathgroup at smc.vnet.net
- Subject: [mg38968] RE: [mg38959] rotate / view a graphics object
- From: "David Park" <djmp at earthlink.net>
- Date: Thu, 23 Jan 2003 08:03:15 -0500 (EST)
- Sender: owner-wri-mathgroup at wolfram.com
G.L., There are a number of ways. Your could install Jens-Peer Kuska's MathGL package available from his web site. http://phong.informatik.uni-leipzig.de/~kuska/ You could use the RealTime3D` package that comes with Mathematica. (It works on Windows, I'm not certain about other platforms.) plot1 = ParametricPlot3D[......] <<RealTime3D` Show[plot1] <<Default3D` You can rotate using the mouse, and by holding down the Ctrl key you can zoom in and out with the mouse. But often I find this the simplest. Needs["Graphics`Animation`"] SpinShow[plot1] SelectionMove[EvaluationNotebook[], All, GeneratedCell] FrontEndTokenExecute["OpenCloseGroup"]; Pause[0.01]; FrontEndExecute[{FrontEnd`SelectionAnimate[200, AnimationDisplayTime -> 0.1, AnimationDirection -> Forward]}] You only need the SpinShow statement. The other statements select the cells, close them and start the animation. The above will run the animation for 200 seconds, with each frame being displayed for 0.1 second. The AnimationDirection can also be set to Backward or ForwardBackward. In running animations like SpinShow, you can use the cursor keys (up or down) to stop the animation and advance one frame at a time. This is often a very convenient method for viewing animations. You can use the numeric keys to control the speed. David Park djmp at earthlink.net http://home.earthlink.net/~djmp/ From: Narasimham G.L. [mailto:google.news.invalid at web2news.net] To: mathgroup at smc.vnet.net If an object is made in ParametricPlot3D, is there a way of including code lines to click/drag the mouse so as to rotate it ( say about a vertcal axis) and to be able to see it from the other side ? -- Posted via http://web2news.com