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

fix boundary-helper regression

parent 3ed17fce
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,7 @@ import { Box3D } from './primitives/box3d';
const v3dot = Vec3.dot;
const v3copy = Vec3.copy;
const v3scaleAndSub = Vec3.scaleAndSub;
const v3scaleAndAdd = Vec3.scaleAndAdd;
// implementing http://www.ep.liu.se/ecp/034/009/ecp083409.pdf
......@@ -48,7 +49,7 @@ export class BoundaryHelper {
}
if (d + radius > this.maxDist[i]) {
this.maxDist[i] = d + radius;
v3scaleAndSub(this.extrema[i * 2 + 1], center, di, radius);
v3scaleAndAdd(this.extrema[i * 2 + 1], center, di, radius);
}
}
......
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