
3D Structure Visualization & Interactive Analysis for Crystal Structures and Molecules // developed by Dr. Michael Böhme (@theochemiker)
- Tweets15
- Following45
- Followers20
- Likes10

ALT // hydrogen atoms // O-H, C-H, N-H if (firstAtom.isHydrogen() && !secondAtom.isHydrogen()) std::swap(firstAtomLabel, secondAtomLabel); // metal ions // Cu-O, Co-S else if (secondAtom.isMetal() && !firstAtom.isMetal()) std::swap(firstAtomLabel, secondAtomLabel); // carbon atom first, but not in case of metal ions // C-O, C-S, C-Cl, Fe-C else if (secondAtom.isCarbon() && (!firstAtom.isCarbon() && !firstAtom.isMetal())) std::swap(firstAtomLabel, secondAtomLabel); // in all other cases: heavy element first, but not in case of carbon else if (!firstAtom.isCarbon() && secondAtom.type() > firstAtom.type()) std::swap(firstAtomLabel, secondAtomLabel);









