Skip to content

Commit 60cc5ef

Browse files
committed
Version 5.1.1.
1 parent 08bbd39 commit 60cc5ef

File tree

12 files changed

+7115
-8072
lines changed

12 files changed

+7115
-8072
lines changed

build/sparse-octree.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* sparse-octree v5.1.0 build Wed Feb 06 2019
2+
* sparse-octree v5.1.1 build Wed Feb 06 2019
33
* https://github.com/vanruesc/sparse-octree
44
* Copyright 2019 Raoul van Rüschen, Zlib
55
*/
@@ -5097,7 +5097,7 @@
50975097
points = octant.points;
50985098

50995099
for (i = 0, l = points.length; result === null && i < l; ++i) {
5100-
if (point.distanceToSquared(points[i]) <= octree.threshold) {
5100+
if (point.equals(points[i])) {
51015101
result = octant.data[i];
51025102
}
51035103
}
@@ -5125,7 +5125,7 @@
51255125
points = octant.points;
51265126

51275127
for (i = 0, l = points.length; i < l; ++i) {
5128-
if (point.distanceToSquared(points[i]) <= octree.threshold) {
5128+
if (point.equals(points[i])) {
51295129
points[i].copy(position);
51305130
result = octant.data[i];
51315131
break;
@@ -5236,7 +5236,6 @@
52365236
var bias = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0.0;
52375237
var maxPoints = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 8;
52385238
var maxDepth = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 8;
5239-
var threshold = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 1e-6;
52405239

52415240
_classCallCheck(this, PointOctree);
52425241

@@ -5245,7 +5244,6 @@
52455244
_this.bias = Math.max(0.0, bias);
52465245
_this.maxPoints = Math.max(1, Math.round(maxPoints));
52475246
_this.maxDepth = Math.max(0, Math.round(maxDepth));
5248-
_this.threshold = threshold;
52495247
_this.pointCount = 0;
52505248
return _this;
52515249
}

build/sparse-octree.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sparse-octree",
3-
"version": "5.1.0",
3+
"version": "5.1.1",
44
"description": "A sparse octree data structure.",
55
"homepage": "https://github.com/vanruesc/sparse-octree",
66
"main": "build/sparse-octree.js",

public/demo/index.js

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/demo/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)