2009/6/29 Angel HerrŠez <angel.herraez@uah.es>
Hey, ribbons! and gradient coloring! †That's wonderful, Bob


> These files are huge -- I wish there were a faster, better way of delivering 3D molecular graphics
> over the web... ;)

Yes, that would be great ;-D;-D


I did some research into Maya format yesterday and was planning to put
som time into the exporter, maybe this evening. Will you be digging into
that? I don't want to clash

Along these lines, two proposals:
1. we should change the extensions in the export menus to be .wrl for
VRML and .ma for Maya

I really don't have time to work on this, so if you want to give it a go, do so. BUT realize it could be very complicated. It took me forever to just get atoms and bonds right. The key method to do all this is

† public void renderIsosurface(Point3f[] vertices, short colix,
†††††††††††††††††††††††††††††† short[] colixes, Vector3f[] normals,
†††††††††††††††††††††††††††††† int[][] indices, BitSet bsFaces,
†††††††††††††††††††††††††††††† int nVertices, int faceVertexMax,
†††††††††††††††††††††††††††††† short[] polygonColixes, int nPolygons) {
† }

That does all isosurfaces and all cartoon-like objects, so that takes care of a lot. Since it is working in VRML, copy that example.
Let me know when you get stuck. And as you figure out how to do it, show us here what you are thinking.




2. we hae these exports only in the pop-up menu; they shoud be too in the
app top menu, File > Export. And BTW, decide on a common word, either
Save or Export, for both menus

Save, Export, Write --- alas! I like Export; save generally implies "in my format" but that could be a script or a file? Maybe Save in the Script Editor -- or if the Script Editor is open.

Bob






------------------------------------------------------------------------------
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers



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