Alexander Rose 5 年之前
父節點
當前提交
6e205661bd
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/mol-gl/renderable/util.ts

+ 2 - 2
src/mol-gl/renderable/util.ts

@@ -159,7 +159,7 @@ export function calculateTransformBoundingSphere(invariantBoundingSphere: Sphere
 export function calculateBoundingSphere(position: Float32Array, positionCount: number, transform: Float32Array, transformCount: number, padding = 0, stepFactor = 1): { boundingSphere: Sphere3D, invariantBoundingSphere: Sphere3D } {
     const invariantBoundingSphere = calculateInvariantBoundingSphere(position, positionCount, stepFactor)
     const boundingSphere = calculateTransformBoundingSphere(invariantBoundingSphere, transform, transformCount)
-    // Sphere3D.expand(boundingSphere, boundingSphere, padding)
-    // Sphere3D.expand(invariantBoundingSphere, invariantBoundingSphere, padding)
+    Sphere3D.expand(boundingSphere, boundingSphere, padding)
+    Sphere3D.expand(invariantBoundingSphere, invariantBoundingSphere, padding)
     return { boundingSphere, invariantBoundingSphere }
 }