Skip to content
Snippets Groups Projects
Commit 8097d6e7 authored by Alexander Rose's avatar Alexander Rose
Browse files

fixed lines bounding sphere calc

parent 51eece0e
Branches
Tags
No related merge requests found
...@@ -174,8 +174,8 @@ export namespace Lines { ...@@ -174,8 +174,8 @@ export namespace Lines {
} }
function getBoundingSphere(lineStart: Float32Array, lineEnd: Float32Array, lineCount: number, transform: Float32Array, transformCount: number) { function getBoundingSphere(lineStart: Float32Array, lineEnd: Float32Array, lineCount: number, transform: Float32Array, transformCount: number) {
const start = calculateBoundingSphere(lineStart, lineCount, transform, transformCount) const start = calculateBoundingSphere(lineStart, lineCount * 4, transform, transformCount)
const end = calculateBoundingSphere(lineEnd, lineCount, transform, transformCount) const end = calculateBoundingSphere(lineEnd, lineCount * 4, transform, transformCount)
return { return {
boundingSphere: Sphere3D.addSphere(start.boundingSphere, end.boundingSphere), boundingSphere: Sphere3D.addSphere(start.boundingSphere, end.boundingSphere),
invariantBoundingSphere: Sphere3D.addSphere(start.invariantBoundingSphere, end.invariantBoundingSphere) invariantBoundingSphere: Sphere3D.addSphere(start.invariantBoundingSphere, end.invariantBoundingSphere)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment