Преглед на файлове

increase threshold for tryAdjustBoundary to 5%

Alexander Rose преди 4 години
родител
ревизия
603aa89609
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/mol-math/geometry/boundary.ts

+ 1 - 1
src/mol-math/geometry/boundary.ts

@@ -72,7 +72,7 @@ export function tryAdjustBoundary(data: PositionData, boundary: Boundary): Bound
 
     const adjustedRadius = Math.sqrt(maxDistSq);
     const deltaRadius = adjustedRadius - radius;
-    if (Math.abs(deltaRadius) < radius / 100) {
+    if (Math.abs(deltaRadius) < (radius / 100) * 5) {
         // TODO: The expanded sphere extrema are not correct if the principal axes differ
         const sphere = Sphere3D.expand(Sphere3D(), boundary.sphere, deltaRadius);
         const box = Box3D.fromSphere3D(Box3D(), sphere);