Hello, I am building a molecule atom-by-atom and then translating its coordinates. I use the AddAtom and AddBond functions to achieve this. When I then use the Translate function on the molecule, it doesn't take effect. However, when I make a copy of the molecule and apply Translate() to that one, it works.
Here is the C++ pseudo-code to illustrate the problem: OpenBabel::OBMol mol; mol.AddAtom... mol.AddBond... mol.Translate //doesn't work ! mol2 = mol mol2.Translate //works !! Any idea as to what I am doing wrong ? (I am using version 2.3.2) Thanks very much, Prabhu Raman -- View this message in context: http://forums.openbabel.org/Problem-in-C-API-while-using-the-OBMol-Translate-function-tp4656557.html Sent from the openbabel-devel mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ OpenBabel-Devel mailing list OpenBabel-Devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbabel-devel