Re: Stopping Automatic Animation in v6

*To*: mathgroup at smc.vnet.net*Subject*: [mg76853] Re: Stopping Automatic Animation in v6*From*: Szabolcs <szhorvat at gmail.com>*Date*: Mon, 28 May 2007 01:12:48 -0400 (EDT)*Organization*: University of Bergen*References*: <f36d9n$5q2$1@smc.vnet.net> <f38s5g$icv$1@smc.vnet.net> <f3bgth$366$1@smc.vnet.net>

Brian Gladman wrote: > "Jean-Marc Gulliet" <jeanmarc.gulliet at gmail.com> wrote in message > news:f38s5g$icv$1 at smc.vnet.net... >> Brian Gladman wrote: >>> I am trying to visualise the exact relationship between some 3D objects >>> by >>> using Graphics3D to display them. But as soon as I evaluate the >>> expression, >>> Mathematica 6 goes into some automated animation mode which destroys the >>> relationship I am trying to set up since I need fixed objects viewed from >>> a >>> specified and fixed viewpoint. >>> >>> But I cannot find any option in Graphics3D to turn off this automatic >>> animation. How do I force Graphics£D to display only what is asked for >>> and >>> not >>> an animation of it? >>> >>> Any help with this would be much appreciated as its proving to be a real >>> pain. >>> >>> Brian Gladman >> Brian, >> >> Could you, please, provide an example of an expression that behaves in >> the incriminated way? By default, graphics (2D or 3D) are drawn static. >> For example, evaluating >> >> Graphics3D[{Blue, Cylinder[], Red, Sphere[{0, 0, 2}], Black, Thick, >> Dashed, Line[{{-2, 0, 2}, {2, 0, 2}, {0, 0, 4}, {-2, 0, 2}}], >> Yellow, Polygon[{{-3, -3, -2}, {-3, 3, -2}, {3, >> 3, -2}, {3, -3, -2}}], Green, Opacity[.3], >> Cuboid[{-2, -2, -2}, {2, 2, -1}]}] >> >> draws several 3D objects without any animation. > > Hi Jean-Marc > > Here is an example that shows the issue. > > p = {{0, 0, 3 Sqrt[6]}, {-2 Sqrt[3], -6, -Sqrt[6]}, {-2 Sqrt[3], > 6, -Sqrt[6]}, {4 Sqrt[3], 0, -Sqrt[6]}} > Graphics3D[{{Line[{p[[1]], p[[2]]}], Line[{p[[1]], p[[3]]}], > Line[{p[[1]], p[[4]]}], Line[{p[[2]], p[[3]]}], > Line[{p[[2]], p[[4]]}], Line[{p[[3]], p[[4]]}]}}] > > The very first time this is evaluated after starting up Mathematica, it is > static but all subsequent evaluations, for example, with a change of one of > the lines, are then immediately dynamic. That is, animation starts as soon > as the expression is re-evaluated. Moreover if I make a change in the > expression and re-evaluate it, the graphic animation continues from the last > position it reached and not from the initial position set by the expression > re-evaluation. What do you mean when you say "animation"? Does the plot start to *move* and change by itself as soon as it appears? I don't see this behaviour ... Do you have any special definitions in your init.m file? Please check that $DisplayFunction is set to Identity. Or do you mean the ability to rotate the graphic with the mouse? If the problem is the latter, then simply set the ViewPoint option explicitly: this way the view point will be reset every time you re-evaluate. Or use PreserveImageOptions -> False. You may also be interested in the RotationAction option. But please try to be more specific about the problem ... > > What I am looking for is a switch to simply say that for this particular > object animation should not be undertaken. > >> Or are you talking about the new real-time feature that allows the user >> to rotate or expand or shrink 3D graphics with the mouse? > > I think it is related to this in some way. These are great new capabilities > but it is not obvious to me how I can switch them on and off. I really don't see why would anyone want to switch off the ability to rotate graphics with the mouse ... if you don't touch them, they don't change anyway ... just like in version 5.2 ... > > Thanks for taking an interest in the issue. > > best regards, > > Brian