Well, Bob was fast as usual and has already done most of this implementation. 
I'll have a  
look at that later this evening.

Ralf wrote:
> But looking at the VRML, every Sphere of a specific element is  
> identical.
> Not knowing the code, I cannot say if this holds with every molecule,  
> however.

The issue is that you are just doing a standard ball-and-stick model, and with 
only a few 
element types, so your perception is right.
But the exporter must cope with anything that the model has. For example, I 
could have one 
of the oxygens made larger and the others made small translucent spheres. The 
current 
exporter will render the vrml model as such.


> This doesn't apply to the second idea, however. If you can shove  
> cylinders
> into spheres, without compromising the result (i.e. all is opaque) then
> different cylinder lengths can be had with only a few prototypes, and  
> better
> optimisation than the first idea above. However, if you have  
> transparent CPK
> then this looks ugly.

Right, cylinders go to the atom center, so they are all shoved into spheres. 
But the spheres 
might or not be there, depending on what rendering the user chose before 
exporting.

> Ah, I didn't think of this.
> OTOH, if the user knows she won't disable spheres, she could specify
> this somewhere in Jmol to get the optimisation described.

Well, yes, options in the (currently nonexistent) exporting dialog could do 
these tricks. Not 
sure how difficult that would be to implement. Let's see first what Bob has got 
done.



------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to