Skip to content

Commit 1372cd1

Browse files
authored
Merge pull request #6220 from likangning93/cbrt
Math.cbrt -> Math.pow
2 parents 2f6a5ad + e27f3ea commit 1372cd1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Change Log
99
##### Fixes :wrench:
1010
* Fixed bug where AxisAlignedBoundingBox did not copy over center value when cloning an undefined result. [#6183](https://github.com/AnalyticalGraphicsInc/cesium/pull/6183)
1111
* Fixed `Resource.fetch` when called with no arguments [#6206](https://github.com/AnalyticalGraphicsInc/cesium/issues/6206)
12+
* Fixed bug where 3D Tiles Point Clouds would fail in Internet Explorer. [#6220](https://github.com/AnalyticalGraphicsInc/cesium/pull/6220)
1213

1314
##### Additions :tada:
1415
* Enable terrain in the `CesiumViewer` demo application [#6198](https://github.com/AnalyticalGraphicsInc/cesium/pull/6198)

Source/Scene/PointCloud3DTileContent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ define([
466466
// Typical use case is leaves, where lower estimates of interpoint distance might
467467
// lead to underattenuation.
468468
var sphereVolume = content._tile.contentBoundingVolume.boundingSphere.volume();
469-
content._baseResolutionApproximation = Math.cbrt(sphereVolume / pointsLength);
469+
content._baseResolutionApproximation = Math.pow(sphereVolume / pointsLength, 1/3); // IE doesn't support cbrt
470470
}
471471

472472
var scratchPointSizeAndTilesetTimeAndGeometricErrorAndDepthMultiplier = new Cartesian4();

0 commit comments

Comments
 (0)