소스 검색

make pairingThreshold slightly larger

dsehnal 4 년 전
부모
커밋
bc5d796653
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/mol-model/structure/structure/unit/bonds/inter-compute.ts
  2. 1 1
      src/mol-model/structure/structure/unit/bonds/intra-compute.ts

+ 1 - 1
src/mol-model/structure/structure/unit/bonds/inter-compute.ts

@@ -153,7 +153,7 @@ function findPairBonds(unitA: Unit.Atomic, unitB: Unit.Atomic, props: BondComput
                 ? thresholdAB
                 ? thresholdAB
                 : beI < 0
                 : beI < 0
                     ? thresholdA
                     ? thresholdA
-                    : (thresholdA + getElementThreshold(beI)) / 2; // not sure if avg or min but max is too big
+                    : (thresholdA + getElementThreshold(beI)) / 1.95; // not sure if avg or min but max is too big
 
 
             if (dist <= pairingThreshold) {
             if (dist <= pairingThreshold) {
                 const atomIdB = label_atom_idB.value(bI);
                 const atomIdB = label_atom_idB.value(bI);

+ 1 - 1
src/mol-model/structure/structure/unit/bonds/intra-compute.ts

@@ -211,7 +211,7 @@ function findBonds(unit: Unit.Atomic, props: BondComputationProps): IntraUnitBon
                 ? thresholdAB
                 ? thresholdAB
                 : beI < 0
                 : beI < 0
                     ? thresholdA
                     ? thresholdA
-                    : (thresholdA + getElementThreshold(beI)) / 2; // not sure if avg or min but max is too big
+                    : (thresholdA + getElementThreshold(beI)) / 1.95; // not sure if avg or min but max is too big
 
 
             if (dist <= pairingThreshold) {
             if (dist <= pairingThreshold) {
                 atomA[atomA.length] = _aI;
                 atomA[atomA.length] = _aI;