|
@@ -123,6 +123,8 @@ namespace UnitRing {
|
|
|
if (aromaticBondCount === 2 * ring.length) return true;
|
|
|
if (!hasAromaticRingElement) return false;
|
|
|
if (ring.length < 5) return false;
|
|
|
+ // no planarity-based aromaticity if any aromatic flags are present
|
|
|
+ if (aromaticBondCount > 0) return false;
|
|
|
|
|
|
const ma = PrincipalAxes.calculateMomentsAxes(getPositions(unit, ring));
|
|
|
return Vec3.magnitude(ma.dirC) < AromaticRingPlanarityThreshold;
|