Re: Rotable Graphics and ViewPoint
- To: mathgroup at smc.vnet.net
- Subject: [mg78501] Re: Rotable Graphics and ViewPoint
- From: Helen Read <hpr at together.net>
- Date: Tue, 3 Jul 2007 05:29:11 -0400 (EDT)
- References: <f67mco$2vu$1@smc.vnet.net> <f6alrr$hpg$1@smc.vnet.net>
- Reply-to: HPR <read at math.uvm.edu>
Albert wrote: > Helen Read wrote: > >>So here's what I would really like. >> >>1. Re-executing a 3D graphic would return it to the original ViewPoint >>and ViewVertical settings. >> >>2. An easy way to make a copy of a graphic with the current ViewPoint >>and ViewVertical settings pasted into the input, sort of like the way >>Paste Snapshot works for Manipulate, so that I can delete all output >>before quitting, come back later and recreate the graphic in the state >>that I had it. > > I don't know if this helps (that is whether or not you would let your > students do it :-), but have you tried to just copy the Graphics in the > state you want it into the empty brackets of the code below: > > {ViewPoint,ViewVertical} /. FullOptions[] > > end execute the Cell? Once getting used to being able to use any > graphics output as input this is rather obvious. Note that you even can > continue to rotate in this input-cell, reevaluate and get the new > viewpoint/viewvertical settings (which is more fun if you increase the > graphics size by selecting it and drag the (orange?) frame that appears). While this works, I'm not sure I'll suggest it to my students. Part of my reason for wanting an easy way to extract the viewpoint settings is so that we can delete all the output before saving the file, in order to make the files smaller for transferring via e-mail or web. Pasting 3D graphics into an input cells rather defeats the purpose, unless you then remember to copy/paste the viewpoint info into the original graphic input (or a copy of it), then delete the input cell into which you have pasted the graphic, and finally, delete all the output from the file. I'm not sure it's worth this much effort. We'll deal, one way or another, but I do think it would not be much trouble for WRI to add an easy way to make a "snapshot" copy after rotating a 3D graphic that would retain all of the viewpoint settings, similar to the Paste Snapshot for Manipulate. > Of course one could construct a Palette that reads this information from > the currently selected graphics object (there was code for a 2D zoom > tool which could serve as a start), but that would again mean to provide > code to your students that is not part of mathematica, which I remember > is something that you rather try to avoid... Indeed, I would rather avoid providing a palette that they would have to install. -- Helen Read University of Vermont
- Follow-Ups:
- Re: Re: Rotable Graphics and ViewPoint
- From: Selwyn Hollis <sh2.7183@earthlink.net>
- Re: Re: Rotable Graphics and ViewPoint