@jdultra/threedtiles 13.0.27 → 13.0.28
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/dist/threedtiles.es.js
CHANGED
|
@@ -3514,7 +3514,7 @@ class Wt extends E.Object3D {
|
|
|
3514
3514
|
n.includes("?") ? n += d : n += "?" + d.substring(1);
|
|
3515
3515
|
}
|
|
3516
3516
|
if (n) if (o && (n.includes(".b3dm") || n.includes(".glb") || n.includes(".gltf"))) {
|
|
3517
|
-
|
|
3517
|
+
console.log("get");
|
|
3518
3518
|
try {
|
|
3519
3519
|
t.tileLoader.get(t.abortController, t.uuid, n, (g) => {
|
|
3520
3520
|
t.deleted || (g.asset && g.asset.copyright && (g.asset.copyright.split(";").forEach((h) => {
|
|
@@ -3526,7 +3526,7 @@ class Wt extends E.Object3D {
|
|
|
3526
3526
|
h.geometry.setAttribute("color", new E.Float32BufferAttribute(f, 3));
|
|
3527
3527
|
}
|
|
3528
3528
|
}), t.add(g), t.updateMatrices()));
|
|
3529
|
-
}, t.cameraOnLoad ? () => t.loadingStrategy == "IMMEDIATE" ? t._calculateDistanceToCamera(t.cameraOnLoad) : t.loadingStrategy == "INCREMENTAL" ? t.parentTile ? t.parentTile._calculateDistanceToCamera(t.cameraOnLoad) / t.parentTile.level : t._calculateDistanceToCamera(t.cameraOnLoad) / t.level : t.loadingStrategy == "PERLEVEL" ? t.parentTile ? t.level + t.parentTile._calculateDistanceToCamera(t.cameraOnLoad) : t.level + t._calculateDistanceToCamera(t.cameraOnLoad) : 0 : () => 0, () => t._getSiblings(), t.level, t.loadingStrategy, !t.json.boundingVolume.region, !!t.json.boundingVolume.region, t.geometricError, t.splatsMesh);
|
|
3529
|
+
}, t.cameraOnLoad ? () => t.loadingStrategy == "IMMEDIATE" ? t._calculateDistanceToCamera(t.cameraOnLoad) : t.loadingStrategy == "INCREMENTAL" ? t.parentTile ? t.parentTile._calculateDistanceToCamera(t.cameraOnLoad) / Math.max(1, t.parentTile.level) : t._calculateDistanceToCamera(t.cameraOnLoad) / Math.max(1, t.level) : t.loadingStrategy == "PERLEVEL" ? t.parentTile ? t.level + t.parentTile._calculateDistanceToCamera(t.cameraOnLoad) : t.level + t._calculateDistanceToCamera(t.cameraOnLoad) : 0 : () => 0, () => t._getSiblings(), t.level, t.loadingStrategy, !t.json.boundingVolume.region, !!t.json.boundingVolume.region, t.geometricError, t.splatsMesh);
|
|
3530
3530
|
} catch (g) {
|
|
3531
3531
|
t.displayErrors && gt(g);
|
|
3532
3532
|
}
|
|
@@ -3536,6 +3536,7 @@ class Wt extends E.Object3D {
|
|
|
3536
3536
|
}
|
|
3537
3537
|
}
|
|
3538
3538
|
dispose() {
|
|
3539
|
+
console.log("dispose");
|
|
3539
3540
|
const e = this;
|
|
3540
3541
|
e.meshContent.forEach((a) => {
|
|
3541
3542
|
a && a.asset && a.asset.copyright && (a.asset.copyright.split(";").forEach((t) => {
|
|
@@ -3678,9 +3679,9 @@ class Wt extends E.Object3D {
|
|
|
3678
3679
|
if (!t.isSetup) return;
|
|
3679
3680
|
const A = t.materialVisibility;
|
|
3680
3681
|
t.boundingVolume && t.geometricError && (t.metric = t._calculateUpdateMetric(e, a)), t.childrenTiles.forEach((i) => i._update(e, a)), function(i) {
|
|
3681
|
-
if (t.
|
|
3682
|
-
|
|
3683
|
-
if (t.
|
|
3682
|
+
if (i < 0) return t.inFrustum = !1, void t._changeContentVisibility(!!t.loadOutsideView);
|
|
3683
|
+
if (t.inFrustum = !0, !!t.hasMeshContent && !(t.meshContent.length < t.hasMeshContent)) {
|
|
3684
|
+
if (t.childrenTiles.length == 0) return void t._changeContentVisibility(!0);
|
|
3684
3685
|
if (i >= t.geometricErrorMultiplier * t.geometricError) t._changeContentVisibility(!0);
|
|
3685
3686
|
else if (i < t.geometricErrorMultiplier * t.geometricError && t.refine == "REPLACE") {
|
|
3686
3687
|
let s = !0;
|
|
@@ -3688,7 +3689,7 @@ class Wt extends E.Object3D {
|
|
|
3688
3689
|
}
|
|
3689
3690
|
}
|
|
3690
3691
|
}(t.metric), function(i) {
|
|
3691
|
-
i < 0 && t.hasMeshContent || t.occlusionCullingService && t.hasMeshContent && !t.occlusionCullingService.hasID(t.colorID) || (!t.hasMeshContent || i <= t.geometricErrorMultiplier * t.geometricError && t.meshContent.length > 0) && t.json && t.json.children && t.childrenTiles.length != t.json.children.length && t._loadJsonChildren(e);
|
|
3692
|
+
i < 0 && t.hasMeshContent || t.occlusionCullingService && t.hasMeshContent && !t.occlusionCullingService.hasID(t.colorID) || (!t.hasMeshContent || i <= t.geometricErrorMultiplier * t.geometricError && (t.meshContent.length > 0 || t.splatsMesh)) && t.json && t.json.children && t.childrenTiles.length != t.json.children.length && t._loadJsonChildren(e);
|
|
3692
3693
|
}(t.metric), function(i, s) {
|
|
3693
3694
|
if (t.hasMeshContent) {
|
|
3694
3695
|
if (!t.inFrustum) return void t._disposeChildren();
|