4.46 OEFormalPartialCharges

void OEFormalPartialCharges(OEMolBase &mol)

Set the partial charge property of each atom in a molecule to its formal charge. This is equivalent of calling OEAtomBase::SetPartialCharge on every atom with the value return from OEAtomBase::GetFormalCharge.