Prepares a molecule before depiction that involves suppressing or
adding explicit hydrogens, perceiving atom and bond stereo information
and calculating 2D coordinates.
mol
The molecule being manipulated.
clearcoords
If true, than the 2D coordinates of the molecule are re-calculated.
If false and the molecule has 2D coordinates than these coordinates
are kept.
If the molecule has no 2D coordinates, then the 2D coordinates are
always generated by calling the OEDepictCoordinates
function regardless of the value of the clearcoords parameter.
Example of the molecule depictions with kept and suppressed hydrogens
Note
The OEPrepareDepiction function generates
canonical 2D coordinates (when the clearcoords parameter is true)
i.e. the layout of the same molecules will be identical regardless of
their atom and bond orderings.
The following code shows how to generate non-canonical 2D coordinates: