How to get the centroid of a Molecule

ChemAxon fa971619eb

23-02-2012 18:53:32

If I have a chemaxon.struc.Molecule instance is there a way to obtain the coordinates of the centroid of the structure. e.g. a X,Y,Z position that approximates to the centre of the molecule (does not need to correspond to any particular atom). Obviously this could be calculated from the coordinates of the individual atoms, but I was hoping there was a built in way of doing this or a smarter way


Thanks


Tim

ChemAxon fc046975bc

24-02-2012 12:45:49

The chemaxon.struc.MoleculeGraph class has a method called calcCenter(DPoint3 p) which calculates the geometrical center of the molecule.


I hope it is useful for you!


Peter