Thanks for this Otis

Problem with the boundboxInfo (and atomInfo...) is that the  
coordinates etc do not seem to reflect the current orientation, so I  
guess I would have to do something clever to translate the data  
according to the current rotation/translation/zoom factors and  
normalize these with respect to the 2D applet dimensions... eeek! - I  
was hoping for an easy solution :-)

Thanks anyway

Simon


Quoting CheMagic <osrot...@chemagic.com>:

> Simon,
>
> This will get you the dimensions of the bound box:
>
> Jmol.getPropertyAsString(jmolApplet0, "boundboxInfo.vector")
>
> I'm not sure what to do next in your case, but it's the only  
> relevant data that I'm aware of.
>
> I use this data in a slightly different way to make model  
> translation changes before I duplicate a model - i.e to keep the new  
> model from superimosing the old model.
>
> Otis
>
> Sent from my iPad
>
>> On Dec 3, 2015, at 7:05 AM, si...@publcif.co.uk wrote:
>>
>> Dear all
>>
>> If I do "rotate best;center visible;zoom 0;" I get a nice view of a
>> model, but in most cases it wont entirely fill the applet because the
>> zoom is optimized with respect to the 3d bounding box (I think).
>>
>> Does anyone know how to automatically zoom a model so that it is as
>> large as possible in the applet but still shows all atoms?
>>
>> E.g. if I knew the 2D extent of the actual atoms as displayed after
>> calling "rotate best;center visible;zoom 0;", I could work out how
>> much space is available in order to apply an extra zoom?
>>
>> Any ideas?
>>
>> Cheers
>>
>> Simon
>>
>> ------------------------------------------------------------------------------
>> Go from Idea to Many App Stores Faster with Intel(R) XDK
>> Give your users amazing mobile app experiences with Intel(R) XDK.
>> Use one codebase in this all-in-one HTML5 development environment.
>> Design, debug & build mobile apps & 2D/3D high-impact games for  
>> multiple OSs.
>> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
>> _______________________________________________
>> Jmol-users mailing list
>> Jmol-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
>
>
> ------------------------------------------------------------------------------
> Go from Idea to Many App Stores Faster with Intel(R) XDK
> Give your users amazing mobile app experiences with Intel(R) XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>



------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to