Hello,

having found that VRML supports macros, a suggestion comes into mind for
VRML export of scenes containing CPK data. First, materials are  
unnecesarily
redefined with every single object. Second, since atoms have no  
individuality,
and spheres of each element the same size and material, any sphere can  
be
a macro.

Use case: I have hand-optimized an exported VRML file, with a 35 per  
cent size
reduction:

PDB 5ACN without HOH exported: 3,535,096 bytes
Same using DEF and USE: 2,340,799 bytes

There is further capacity for optimisation by discretising cylinder  
joint lengths.
If opaqueness is a condition, cylinders could be made in only a few  
sizes and
'shoved' into spheres if too long.

Regards,

Ralf Stephan
http://www.ark.in-berlin.de
pub   1024D/C5114CB2 2009-06-07 [expires: 2011-06-06]
       Key fingerprint = 76AE 0D21 C06C CBF9 24F8  7835 1809 DE97 C511  
4CB2





------------------------------------------------------------------------------
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