The 3D components require a setupScene command becomes sometimes the projection 
or models change. But the 2D components don't need that. Just use 
myCanvas.repaint() to update.


On Apr 25, 2012, at 11:17 AM, Robert Hanson wrote:

> OK. How do I change a model on the fly? What's the equivalent of setupScene?
> 
>  x.specs.atoms_circles_2D = true;
>  x.specs.bonds_symmetrical_2D = true;
> 
> On Wed, Apr 25, 2012 at 7:53 AM, Kevin Theisen <[email protected]> wrote:
> Hmmm, I think your wireframe is good, just reduce the bond line thickness as 
> you did.
> 
> For "Ball and Stick", how about something like in the second rotator?: 
> http://web.chemdoodle.com/tutorial/2d-structure-canvases/rotator-canvas
> 
> I'm not sure about "Spacefill"... Let me think about that. I will try to put 
> something together.
> 
> Of course, the 2D components are only a temporary substitution while WebGL 
> becomes enabled on mobile devices. The graphics will be satisfactory but will 
> not be as good as a thorough renderer with vertex z-sorting (for instance, in 
> Spacefill, atoms may appear to jump in front of and behind each other). But I 
> think it would be cool if I could come up with something.
> 
> Bests,
> Kevin
> 
> 
> 
> 
> 
> On Apr 25, 2012, at 2:11 AM, Robert Hanson wrote:
> 
>> http://chemapps.stolaf.edu/jmol/chemdoodle/simple2.htm
>> 
>> Note that this page changes -- different buttons are present -- depending  
>> upon the platform capabilities.
>> 
>> Kevin, how do I do spacefill, ball and stick, and wireframe for the 2D 
>> canvas?
>> 
>> -- 
>> Robert M. Hanson
>> Professor of Chemistry
>> St. Olaf College
>> 1520 St. Olaf Ave.
>> Northfield, MN 55057
>> http://www.stolaf.edu/people/hansonr
>> phone: 507-786-3107
>> 
>> 
>> If nature does not answer first what we want,
>> it is better to take what answer we get. 
>> 
>> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and 
>> threat landscape has changed and how IT managers can respond. Discussions 
>> will include endpoint security, mobile security and the latest in malware 
>> threats. 
>> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
> 
> 
> 
> 
> -- 
> Robert M. Hanson
> Professor of Chemistry
> St. Olaf College
> 1520 St. Olaf Ave.
> Northfield, MN 55057
> http://www.stolaf.edu/people/hansonr
> phone: 507-786-3107
> 
> 
> If nature does not answer first what we want,
> it is better to take what answer we get. 
> 
> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. 
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to