Egon,
I am glad that you are looking at this.
We need to work on it together, because there are still many things that I
do not understand about crystal cells.
- my terminology may be wrong
- it may be too specific to .pdb files
- I may be doing some things it incorrectly
But with your help we can get it cleaned up.
> I've tried to figure out how I can get a CDK Crystal object displayed in
> HEAD... What it does right now, in CDKJmolAdapter, is convert the
> fractional coordinates into cartesian coordinates using the
> cdk.geometry.CrystalGeometryTools...
We no longer need to convert the unit cell into cartesian coordinates.
It is best to keep the crystal cell as fractional coordinates. That way we
will be in a better position to show a 2x2 or MxN representation of the
unit cell.
> and then it shows atoms in the
> display... but 'set unitcell on' does not work yet because I need to put
> the unit cell info somewhere too...
Keep reading ...
> - - Did I do it right, to create cartesian coordinates, or does Jmol
> handle fractional coordinates internally too?
Jmol now knows how to handle fractional coordinates for the unitcell.
There are a set of new routines to handle crystal unit cells:
getNotionalUnitcell()
returns null or a float[6] which is the notional unitcell
This is the terminology that you were using in CDK.
getCrystalScaleMatrix()
returns null or a float[9] which is the 3x3 scale matrix
for converting cartesian to fractional coordinates.
This is essentially the three SCALEn records out of .pdb
If it is too specific to .PDB then we should change it and
make it more general.
getCrystalScaleTranslate()
This is null or a float[3]
It is the translation component that is used to translate
the orthogonal coordinates to the fractional coordinates.
This is the U component from the SCALEn records from .pdb
Again, if this is too specific to PDB then we should
generalize it.
> - - How should I set the unit cell info in CDKJmolAdapter?
Change the CDKJmolModelAdapter so that it implements
float[] getNotionalUnitcell(...) {
...
return new float[] {a, b, c, alpha, beta, gamma};
}
Q: What is the difference between "Notional Unit Cell" and "fractional
coordinates"?
> Egon
>
> - --
> [EMAIL PROTECTED]
> PhD on Molecular Representation in Chemometrics
> Nijmegen University
> http://www.cac.sci.kun.nl/people/egonw/
> GPG: 1024D/D6336BA6
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.7 (SunOS)
>
> iD8DBQFAMg2gd9R8I9Yza6YRAhtmAJ4/CWlhUAPwWRhTPSSu4r9aJKUZJwCfeygQ
> GoGQZmz5SNZYB8xUkAtEc5w=
> =ASr9
> -----END PGP SIGNATURE-----
--------------------------------------------------
Miguel Howard [EMAIL PROTECTED]
c/Pe�a Primera 11-13 esc dcha 6B
37002 Salamanca
Espa�a Spain
--------------------------------------------------
telefono casa 923 27 10 82 movil 650 52 54 58
--------------------------------------------------
To call from the US dial 9:00 am Pacific US =
home 011 34 923 27 10 82 12:00 noon Eastern US =
cell 011 34 650 52 54 58 6:00 pm Spain
--------------------------------------------------
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id56&alloc_id438&op=click
_______________________________________________
Jmol-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jmol-developers