Hi Bob,
This is very nice, an option to draw any line or plane.
I only got the water example to work though, caffeine failed to produce
planes or whatever.
"Command expected...." it said in the message window.
The practical problem with planes etc. is to get the coordinates of the
vertices.
As you did in the water molecule, you often want the plane to be
somewhat larger than the actual molecule.
Now is water rather simple, however......
Last year I made a script to calculate the points at which a plane
through 3 atoms intersected the bounding box ( Xmax - Xmin, etc)
ribbons, plus or minus a margin. It still required hand work though to
get the points in the right order in the pmesh file.
Could something be build in, to extend a plane outside the triangle
which defines it,
(or line outside two points).
Or is that what you intended the scale parameter for?
Hens
I'm developing some drawing ideas. See
http://www.stolaf.edu/people/hansonr/jmol/test/json/pmesh.htm
The new command is
draw <anyIdentifier> <optional scale> <atom expression or
xyz-coordinate> <atom expression or xyz-coordinate> <atom expression
or xyz-coordinate> ....
Examples:
draw triangle1 150 (atomno=1) (atomno=14) (atomno=15)
draw line1 120 (atomno=1) (atomno=2)
draw line1 200 (oxygen) (nitrogen)
draw triangle1 400
draw line1 300
draw triangle1;color draw red;
draw line1;color draw blue
Thoughts?
Bob Hanson
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the live
webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users