@woosh/meep-engine 2.119.37 → 2.119.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { max3 } from "../../../math/max3.js";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Compute squared distance to point, value is
|
|
4
|
+
* Compute squared distance to point, value is 0 if the point is inside the box
|
|
5
5
|
* @param {number} x0
|
|
6
6
|
* @param {number} y0
|
|
7
7
|
* @param {number} z0
|
|
@@ -115,23 +115,23 @@ export function query_bvh_geometry_nearest(
|
|
|
115
115
|
|
|
116
116
|
if (distance_sqr_to_child1 < distance_sqr_to_child2) {
|
|
117
117
|
|
|
118
|
-
if (distance_sqr_to_child2 < nearest_distance_sqr) {
|
|
118
|
+
// if (distance_sqr_to_child2 < nearest_distance_sqr) {
|
|
119
119
|
stack[pointer++] = child_2;
|
|
120
|
-
}
|
|
120
|
+
// }
|
|
121
121
|
|
|
122
|
-
if (distance_sqr_to_child1 < nearest_distance_sqr) {
|
|
122
|
+
// if (distance_sqr_to_child1 < nearest_distance_sqr) {
|
|
123
123
|
stack[pointer++] = child_1;
|
|
124
|
-
}
|
|
124
|
+
// }
|
|
125
125
|
|
|
126
126
|
} else {
|
|
127
127
|
|
|
128
|
-
if (distance_sqr_to_child1 < nearest_distance_sqr) {
|
|
128
|
+
// if (distance_sqr_to_child1 < nearest_distance_sqr) {
|
|
129
129
|
stack[pointer++] = child_1;
|
|
130
|
-
}
|
|
130
|
+
// }
|
|
131
131
|
|
|
132
|
-
if (distance_sqr_to_child2 < nearest_distance_sqr) {
|
|
132
|
+
// if (distance_sqr_to_child2 < nearest_distance_sqr) {
|
|
133
133
|
stack[pointer++] = child_2;
|
|
134
|
-
}
|
|
134
|
+
// }
|
|
135
135
|
|
|
136
136
|
}
|
|
137
137
|
|