save/restore coordinates saves coordinates in an array of point3f -- not
much different from float[], I think.
also, that operates on the currently selected set, so you can just use
select 1.1
save coordinates 1
....
select 1.1
restore coordinates 1
But since you will probably be looking at applying and unapplying different
rotation/translations (because you are comparing different methods, right),
really the smartest way would be to define the rotation in terms of a
quaternion q and a translation t and then:
rotateSelected @q
translateSelected @t
translateSelected @{-t}
rotateSelected @{-q}
instead of save/restore. It's really that simple.
Defining the quaternion is very easy. Check the documentation for that or
ask.
Bob
On Thu, Nov 4, 2010 at 8:56 AM, Dr. Christoph Gille <
christoph.gi...@charite.de> wrote:
> Hi Bob
>
> I looked at some examples of the save-command.
> It seems that the state of all loaded molecules was saved.
>
> Is it possible to save just the one model under consideration?
>
> If you say that this is potentially memory consuming,
> I might rather save the coordinates in a flat float[] array.
> Each atom will have only 12 bytes. This is probably less expensive
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> The Next 800 Companies to Lead America's Growth: New Video Whitepaper
> David G. Thomson, author of the best-selling book "Blueprint to a
> Billion" shares his insights and actions to help propel your
> business during the next growth cycle. Listen Now!
> http://p.sf.net/sfu/SAP-dev2dev
> _______________________________________________
> 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
------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a
Billion" shares his insights and actions to help propel your
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers