I wanted to double check with you guys if what I am doing is compatible.
I add one obmol to another, and then set some generic data to the newly just
>From what I have seen the usage of form :
/for(int i = 1; i <= otherMol->NumAtoms(); ++i)
currMol->GetAtom(prevatms + otherMol->GetAtom(i)->GetIdx()/
Instead I am using the following (including for accessing the bonds).
OBAtomIterator i = molecule->BeginAtoms();
for (OBAtom* atom = molecule->NextAtom(i) ; atom ; atom =
I think this assumes the order of atoms in the vector corresponding with
their indices. Is this a safe assumption for future?
View this message in context: http://forums.openbabel.org/Accessing-newly-added-atoms-bonds-when-combining-two-molecules-tp4655937.html
Sent from the General discussion mailing list archive at Nabble.com.