|
@@ -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 }
|
|
|
}
|