Status: Accepted
JMVS is meant to be a RasMol-like viewer. README: RasMol’s C source was studied; the 2022 update “improved the auto-covalent bond routine to match RasMol’s implementation”.
Port RasMol conventions:
abstree.h (elements.properties header).Model.createCovalentBonds): “fast” rule (0.4–1.9 Å, 1.2 Å with H) when total atoms > 1000, else sum of covalent radii + 0.56 Å (comment cites an inconsistent 255 threshold; code uses 1000).JMVSPluginBalls).jmvs.properties.TODO update with Cordero values).totalBonds() > 0 is tested.