Skip to content

Commit

Permalink
Bounds calc fix (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
slimbuck authored May 13, 2024
1 parent 88c9408 commit 150fab1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/splat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class Splat extends Element {
const z = this.splatData.getProp('z');
const state = this.splatData.getProp('state') as Uint8Array;
let first = true;
let minx, maxx, miny, maxy, minz, maxz;
let minx = -0.5, maxx = 0.5, miny = -0.5, maxy = 0.5, minz = -0.5, maxz = 0.5;

for (let i = 0; i < this.splatData.numSplats; ++i) {
if ((state[i] & State.deleted) !== 0) {
Expand Down

0 comments on commit 150fab1

Please sign in to comment.