User 870ab5b546
24-07-2006 21:54:24
Consider this compound:
When I highlight the two H atoms and the negatively charged C, then choose Clean2D, the H atoms move nicely, and the C atom does not. However, if I put those same three atoms in a SelectionMolecule and then do a clean(2, "O1") on the SelectionMolecule, the C and H atoms move much further away from the other atoms in the molecule, as shown below. How do I change the Java behavior to be the same as the applet behavior?
Code: |
<?xml version="1.0" ?> <MDocument> <MChemicalStruct> <molecule molID="m1"> <atomArray atomID="a1 a2 a3 a4 a5 a6 a7 a8" elementType="C C C C C O H H" formalCharge="0 0 0 -1 0 1 0 0" radical="0 0 0 0 0 divalent1 0 0" x2="-5.3846164053109735 -4.908753987923751 -3.368746164664138 -2.5987499952316284 -4.138750076293945 -4.138750076293945 -6.593124969005585 -6.641250014305115" y2="-0.3652243246609572 -1.8297717645808484 -1.8297717645808484 -0.38499993085861206 0.539992273851043 2.079992273851043 0.57750004529953 -0.14437501311302192" /> <bondArray> <bond atomRefs2="a5 a1" order="1" /> <bond atomRefs2="a1 a2" order="1" /> <bond atomRefs2="a2 a3" order="1" /> <bond atomRefs2="a3 a4" order="1" /> <bond atomRefs2="a5 a4" order="2" /> <bond atomRefs2="a5 a6" order="1" /> <bond atomRefs2="a4 a7" order="1" /> <bond atomRefs2="a4 a8" order="1" /> </bondArray> </molecule> </MChemicalStruct> </MDocument> |
When I highlight the two H atoms and the negatively charged C, then choose Clean2D, the H atoms move nicely, and the C atom does not. However, if I put those same three atoms in a SelectionMolecule and then do a clean(2, "O1") on the SelectionMolecule, the C and H atoms move much further away from the other atoms in the molecule, as shown below. How do I change the Java behavior to be the same as the applet behavior?
Code: |
<?xml version="1.0" ?> <MDocument> <MChemicalStruct> <molecule molID="m1"> <atomArray atomID="a1 a2 a3 a4 a5 a6 a7 a8" elementType="C C C C C O H H" formalCharge="0 0 0 -1 0 1 0 0" radical="0 0 0 0 0 divalent1 0 0" x2="-5.2883663480905145 -4.812503930703292 -3.272496107443679 0.0 -4.042500019073486 -4.042500019073486 3.08 0.0" y2="0.26040065984183514 -1.204146780078056 -1.204146780078056 0.0 1.1656172583538353 2.7056172583538354 0.0 -3.08" /> <bondArray> <bond atomRefs2="a5 a1" order="1" /> <bond atomRefs2="a1 a2" order="1" /> <bond atomRefs2="a2 a3" order="1" /> <bond atomRefs2="a3 a4" order="1" /> <bond atomRefs2="a5 a4" order="2" /> <bond atomRefs2="a5 a6" order="1" /> <bond atomRefs2="a4 a7" order="1" /> <bond atomRefs2="a4 a8" order="1" /> </bondArray> </molecule> </MChemicalStruct> </MDocument> |