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
No related branches found
No related tags found
No related merge requests found
......@@ -174,8 +174,8 @@ export namespace Lines {
}
function getBoundingSphere(lineStart: Float32Array, lineEnd: Float32Array, lineCount: number, transform: Float32Array, transformCount: number) {
const start = calculateBoundingSphere(lineStart, lineCount, transform, transformCount)
const end = calculateBoundingSphere(lineEnd, lineCount, transform, transformCount)
const start = calculateBoundingSphere(lineStart, lineCount * 4, transform, transformCount)
const end = calculateBoundingSphere(lineEnd, lineCount * 4, transform, transformCount)
return {
boundingSphere: Sphere3D.addSphere(start.boundingSphere, end.boundingSphere),
invariantBoundingSphere: Sphere3D.addSphere(start.invariantBoundingSphere, end.invariantBoundingSphere)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment