Hi all,

Tsjerk- Thanks. I'm not sure how I missed that, given that it's even mentioned on the wiki on the surface page under the clear heading "Exporting Surface/Mesh Coordinates to File" :-|. (http://www.pymolwiki.org/index.php/Surface#Exporting_Surface.2FMesh_Coordinates_to_File). I don't know anything about VRML, but I found some documentation online at http://www.c3.hu/cryptogram/vrmltut/part5.html and it looks really straightforward. The surface will show up in the VRML file as an IndexedFaceSet, and the points are just XYZ triples, and I can safely ignore everything else.

Darrell- Thanks. I'll build that in as an option.

Takanori- Thanks. That's really cool. I happen to want solvent accessible surfaces rather than isosurfaces, but "dump" is definitely going into my bag of tricks.


On Mon, Jun 11, 2012 at 8:57 PM, Takanori Nakane <t.nakane@mail.mfour.med.kyoto-u.ac.jp> wrote:

Another way:
There is an undocumented API called 'dump', which can
dump coordinates of isomesh/isosurface to a file.

For mesh, it dumps a list of vertex coordinates, which
can be rendered as GL_LINE_STRIP.
For surface, it dumps a list of pairs of a vertex coordinate
and its vertex normal vector, which can be rendered as GL_TRIANGLES.

Please examine my old post for a script example.

Best regards,

Takanori Nakane

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/
PyMOL-users mailing list (PyMOL-users@lists.sourceforge.net)
Info Page: https://lists.sourceforge.net/lists/listinfo/pymol-users
Archives: http://www.mail-archive.com/pymol-users@lists.sourceforge.net

Michael Lerner
Department of Physics and Astronomy
Earlham College - Drawer 111
801 National Road West
Richmond, IN   47374-4095