Browse Source

increase threshold for tryAdjustBoundary to 5%

Alexander Rose 4 years ago
parent
commit
603aa89609
1 changed files with 1 additions and 1 deletions
  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);