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

Reply via email to