deeptwins-cesium-engine 0.1.2 → 0.1.4
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/Build/Workers/chunk-2HWLF3FT.js +837 -0
- package/Build/Workers/chunk-2KXMJ5XS.js +3792 -0
- package/Build/Workers/chunk-2NPCLB3H.js +56 -0
- package/Build/Workers/chunk-2ZHQTIBH.js +1483 -0
- package/Build/Workers/chunk-3GLYOW63.js +352 -0
- package/Build/Workers/chunk-3L22KMPU.js +219 -0
- package/Build/Workers/chunk-3Q6V2B2I.js +73 -0
- package/Build/Workers/chunk-3QOKKRIG.js +387 -0
- package/Build/Workers/chunk-44YZFGRH.js +1800 -0
- package/Build/Workers/chunk-45VV4SBO.js +2342 -0
- package/Build/Workers/chunk-4EJ4AA2S.js +368 -0
- package/Build/Workers/chunk-4IJFHUL6.js +414 -0
- package/Build/Workers/chunk-4K3V5CGW.js +454 -0
- package/Build/Workers/chunk-4M4QL6KJ.js +305 -0
- package/Build/Workers/chunk-4YNRIEQ6.js +288 -0
- package/Build/Workers/chunk-56CVDPH5.js +352 -0
- package/Build/Workers/chunk-5CTAAPXH.js +1483 -0
- package/Build/Workers/chunk-5ISZ6NJD.js +102 -0
- package/Build/Workers/chunk-5SDHYIOS.js +56 -0
- package/Build/Workers/chunk-66TGUMCU.js +2719 -0
- package/Build/Workers/chunk-6EJMTDQJ.js +163 -0
- package/Build/Workers/chunk-6VWXYSMH.js +959 -0
- package/Build/Workers/chunk-6VZ7VB2Q.js +241 -0
- package/Build/Workers/chunk-7AMRE57Q.js +301 -0
- package/Build/Workers/chunk-7DH6C33H.js +398 -0
- package/Build/Workers/chunk-7VUS3FVE.js +38 -0
- package/Build/Workers/chunk-7Y3ZA6H3.js +198 -0
- package/Build/Workers/chunk-A6BMHZNA.js +38 -0
- package/Build/Workers/chunk-A7XY2MN7.js +171 -0
- package/Build/Workers/chunk-AC7ND63S.js +57 -0
- package/Build/Workers/chunk-AHCZ757M.js +9230 -0
- package/Build/Workers/chunk-ANOA7E7F.js +56 -0
- package/Build/Workers/chunk-AYO5HHV6.js +789 -0
- package/Build/Workers/chunk-BE2N56VZ.js +1344 -0
- package/Build/Workers/chunk-BR3BPM64.js +9230 -0
- package/Build/Workers/chunk-BVMRWGOK.js +455 -0
- package/Build/Workers/chunk-BXEL2NX7.js +455 -0
- package/Build/Workers/chunk-C5BO2JCG.js +278 -0
- package/Build/Workers/chunk-CIRQNZVR.js +301 -0
- package/Build/Workers/chunk-CM67CQME.js +305 -0
- package/Build/Workers/chunk-D3QIW4DH.js +630 -0
- package/Build/Workers/chunk-E5W7QIGZ.js +511 -0
- package/Build/Workers/chunk-E6CYGUJI.js +1054 -0
- package/Build/Workers/chunk-EIZ23IOX.js +414 -0
- package/Build/Workers/chunk-EIZJUMQY.js +101 -0
- package/Build/Workers/chunk-EXTMZJXB.js +82 -0
- package/Build/Workers/chunk-EYOOSIBW.js +682 -0
- package/Build/Workers/chunk-F37WADVC.js +1054 -0
- package/Build/Workers/chunk-FIWPJFHX.js +101 -0
- package/Build/Workers/chunk-FM32TNGT.js +198 -0
- package/Build/Workers/chunk-FOMYIEIB.js +476 -0
- package/Build/Workers/chunk-FWYDLSVQ.js +97 -0
- package/Build/Workers/chunk-HGZR6CZF.js +1067 -0
- package/Build/Workers/chunk-HIXHDABG.js +288 -0
- package/Build/Workers/chunk-HMCCZZWE.js +97 -0
- package/Build/Workers/chunk-HW54WHGM.js +2719 -0
- package/Build/Workers/chunk-IHYAI7GF.js +973 -0
- package/Build/Workers/chunk-INLQ7LVK.js +837 -0
- package/Build/Workers/chunk-IQMESTCB.js +124 -0
- package/Build/Workers/chunk-J4PISUNT.js +2342 -0
- package/Build/Workers/chunk-JSWU557I.js +693 -0
- package/Build/Workers/chunk-KHONDSQ7.js +693 -0
- package/Build/Workers/chunk-KLUL2SOE.js +352 -0
- package/Build/Workers/chunk-KMBLKQCC.js +1992 -0
- package/Build/Workers/chunk-KOTWWQN7.js +171 -0
- package/Build/Workers/chunk-KWV6ZTF4.js +163 -0
- package/Build/Workers/chunk-LSEFPQHG.js +476 -0
- package/Build/Workers/chunk-M66X4O24.js +44 -0
- package/Build/Workers/chunk-M6IXKBC7.js +1992 -0
- package/Build/Workers/chunk-MFUC3D5C.js +162 -0
- package/Build/Workers/chunk-MRMNELAH.js +82 -0
- package/Build/Workers/chunk-N3NUA5H2.js +3792 -0
- package/Build/Workers/chunk-NFB2NXJN.js +138 -0
- package/Build/Workers/chunk-NQAXBK4K.js +789 -0
- package/Build/Workers/chunk-NUGQWV6S.js +352 -0
- package/Build/Workers/chunk-O7S7WL7K.js +278 -0
- package/Build/Workers/chunk-ODZYB26X.js +1287 -0
- package/Build/Workers/chunk-OEHJY463.js +3201 -0
- package/Build/Workers/chunk-OMMRNMXF.js +44 -0
- package/Build/Workers/chunk-OZ3CQDO3.js +138 -0
- package/Build/Workers/chunk-PNXBG64I.js +219 -0
- package/Build/Workers/chunk-PYR35GK4.js +973 -0
- package/Build/Workers/chunk-Q4CXGW74.js +57 -0
- package/Build/Workers/chunk-QGISLKCW.js +147 -0
- package/Build/Workers/chunk-QQHVOJW6.js +497 -0
- package/Build/Workers/chunk-QWCMMRJW.js +58 -0
- package/Build/Workers/chunk-RDEZCHF4.js +398 -0
- package/Build/Workers/chunk-SJTE7FVN.js +778 -0
- package/Build/Workers/chunk-SM5T67LR.js +162 -0
- package/Build/Workers/chunk-T27NNXEU.js +58 -0
- package/Build/Workers/chunk-T4J5BWUO.js +511 -0
- package/Build/Workers/chunk-T6JS4BRN.js +140 -0
- package/Build/Workers/chunk-UH6DUQBW.js +140 -0
- package/Build/Workers/chunk-UJAH6XKF.js +73 -0
- package/Build/Workers/chunk-UKSTJ2PH.js +454 -0
- package/Build/Workers/chunk-UQCDCCZ7.js +368 -0
- package/Build/Workers/chunk-UXIFNEA3.js +1287 -0
- package/Build/Workers/chunk-UXJ6J5L7.js +56 -0
- package/Build/Workers/chunk-V4VUAZXI.js +1800 -0
- package/Build/Workers/chunk-VQH2YXO2.js +497 -0
- package/Build/Workers/chunk-VXKCLSE4.js +241 -0
- package/Build/Workers/chunk-W3U6YBEI.js +280 -0
- package/Build/Workers/chunk-W75ZVFKP.js +778 -0
- package/Build/Workers/chunk-WCDFJYFB.js +1344 -0
- package/Build/Workers/chunk-WME5M6W3.js +630 -0
- package/Build/Workers/chunk-XDQBQB64.js +1067 -0
- package/Build/Workers/chunk-Y6HOIWE5.js +959 -0
- package/Build/Workers/chunk-YEMC2ZOR.js +147 -0
- package/Build/Workers/chunk-YWNF3TPE.js +682 -0
- package/Build/Workers/chunk-Z55VGWJP.js +280 -0
- package/Build/Workers/chunk-Z5YWP24C.js +124 -0
- package/Build/Workers/chunk-ZHXCWUJB.js +387 -0
- package/Build/Workers/chunk-ZIMPUF2I.js +102 -0
- package/Build/Workers/chunk-ZKDWYQKC.js +3201 -0
- package/Build/Workers/combineGeometry.js +24 -22
- package/Build/Workers/createBoxGeometry.js +18 -16
- package/Build/Workers/createBoxOutlineGeometry.js +23 -25
- package/Build/Workers/createCircleGeometry.js +29 -27
- package/Build/Workers/createCircleOutlineGeometry.js +22 -20
- package/Build/Workers/createCoplanarPolygonGeometry.js +43 -43
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +37 -35
- package/Build/Workers/createCorridorGeometry.js +46 -49
- package/Build/Workers/createCorridorOutlineGeometry.js +40 -43
- package/Build/Workers/createCylinderGeometry.js +20 -18
- package/Build/Workers/createCylinderOutlineGeometry.js +27 -25
- package/Build/Workers/createEllipseGeometry.js +28 -25
- package/Build/Workers/createEllipseOutlineGeometry.js +21 -18
- package/Build/Workers/createEllipsoidGeometry.js +19 -17
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -16
- package/Build/Workers/createFrustumGeometry.js +18 -16
- package/Build/Workers/createFrustumOutlineGeometry.js +21 -21
- package/Build/Workers/createGeometry.js +31 -26
- package/Build/Workers/createGroundPolylineGeometry.js +188 -135
- package/Build/Workers/createPlaneGeometry.js +22 -21
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -13
- package/Build/Workers/createPolygonGeometry.js +51 -52
- package/Build/Workers/createPolygonOutlineGeometry.js +43 -44
- package/Build/Workers/createPolylineGeometry.js +37 -40
- package/Build/Workers/createPolylineVolumeGeometry.js +41 -44
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +36 -39
- package/Build/Workers/createRectangleGeometry.js +47 -53
- package/Build/Workers/createRectangleOutlineGeometry.js +32 -33
- package/Build/Workers/createSimplePolylineGeometry.js +33 -34
- package/Build/Workers/createSphereGeometry.js +20 -20
- package/Build/Workers/createSphereOutlineGeometry.js +19 -19
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +16 -14
- package/Build/Workers/createVectorTileGeometries.js +24 -22
- package/Build/Workers/createVectorTilePoints.js +15 -13
- package/Build/Workers/createVectorTilePolygons.js +24 -21
- package/Build/Workers/createVectorTilePolylines.js +16 -14
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +29 -27
- package/Build/Workers/createVerticesFromHeightmap.js +42 -63
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -280
- package/Build/Workers/createWallGeometry.js +35 -36
- package/Build/Workers/createWallOutlineGeometry.js +33 -34
- package/Build/Workers/decodeDraco.js +10 -11
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +16 -20
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/incrementallyBuildTerrainPicker.js +20 -12
- package/Build/Workers/transcodeKTX2.js +42 -14
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +24 -21
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Source/Shaders/BillboardCollectionFS.js +85 -81
- package/Source/Shaders/BillboardCollectionVS.js +60 -118
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdges.js +12 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdgesDirect.js +11 -0
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.js +11 -0
- package/Source/Shaders/Builtin/Constants/passOpaque.js +1 -1
- package/Source/Shaders/Builtin/Constants/passOverlay.js +1 -1
- package/Source/Shaders/Builtin/Constants/passTranslucent.js +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.js +1 -1
- package/Source/Shaders/Builtin/CzmBuiltins.js +12 -0
- package/Source/Shaders/Builtin/Functions/columbusViewMorph.js +8 -1
- package/Source/Shaders/Builtin/Functions/computeTextureTransform.js +25 -0
- package/Source/Shaders/Builtin/Functions/decodeRGB8.js +24 -0
- package/Source/Shaders/Builtin/Functions/modelToWindowCoordinates.js +2 -1
- package/Source/Shaders/Builtin/Functions/unpackTexture.js +37 -0
- package/Source/Shaders/Builtin/Functions/windowToEyeCoordinates.js +0 -1
- package/Source/Shaders/EllipsoidVS.js +4 -4
- package/Source/Shaders/FXAA3_11.js +2 -0
- package/Source/Shaders/GlobeFS.js +22 -0
- package/Source/Shaders/GlobeVS.js +3 -2
- package/Source/Shaders/Model/MaterialStageFS.js +50 -20
- package/Source/Shaders/Model/MetadataStageFS.js +2 -1
- package/Source/Shaders/Model/MetadataStageVS.js +2 -1
- package/Source/Shaders/Model/ModelFS.js +32 -2
- package/Source/Shaders/Model/ModelVS.js +15 -1
- package/Source/Shaders/Model/PointCloudStylingStageVS.js +2 -1
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.js +0 -1
- package/Source/Shaders/PointPrimitiveCollectionVS.js +8 -39
- package/Source/Shaders/PolygonSignedDistanceFS.js +64 -33
- package/Source/Shaders/PolylineCommon.js +1 -1
- package/Source/Shaders/ShadowVolumeAppearanceFS.js +7 -15
- package/Source/Shaders/SkyAtmosphereVS.js +2 -1
- package/Source/Shaders/Voxels/IntersectBox.js +20 -33
- package/Source/Shaders/Voxels/IntersectCylinder.js +28 -32
- package/Source/Shaders/Voxels/IntersectDepth.js +10 -6
- package/Source/Shaders/Voxels/IntersectEllipsoid.js +12 -20
- package/Source/Shaders/Voxels/IntersectLongitude.js +21 -9
- package/Source/Shaders/Voxels/Intersection.js +3 -5
- package/Source/Shaders/Voxels/IntersectionUtils.js +2 -1
- package/Source/Shaders/Voxels/Megatexture.js +15 -83
- package/Source/Shaders/Voxels/Octree.js +53 -61
- package/Source/Shaders/Voxels/VoxelFS.js +67 -52
- package/Source/Shaders/Voxels/VoxelUtils.js +0 -19
- package/index.js +346 -261
- package/package.json +1 -1
- package/Source/Shaders/Voxels/IntersectClippingPlanes.js +0 -80
- package/Source/Shaders/Voxels/convertUvToBox.js +0 -46
- package/Source/Shaders/Voxels/convertUvToCylinder.js +0 -101
- package/Source/Shaders/Voxels/convertUvToEllipsoid.js +0 -141
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.
|
|
4
|
+
* Version 0.1.4
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,52 +26,54 @@
|
|
|
26
26
|
import {
|
|
27
27
|
EllipsoidalOccluder_default,
|
|
28
28
|
TerrainEncoding_default
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NQAXBK4K.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FIWPJFHX.js";
|
|
33
33
|
import {
|
|
34
34
|
WebMercatorProjection_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-QGISLKCW.js";
|
|
36
36
|
import {
|
|
37
37
|
OrientedBoundingBox_default
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-2HWLF3FT.js";
|
|
39
|
+
import "./chunk-4K3V5CGW.js";
|
|
40
|
+
import "./chunk-4YNRIEQ6.js";
|
|
41
41
|
import {
|
|
42
42
|
AxisAlignedBoundingBox_default
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-MFUC3D5C.js";
|
|
44
|
+
import "./chunk-BE2N56VZ.js";
|
|
45
|
+
import "./chunk-KOTWWQN7.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ODZYB26X.js";
|
|
49
|
+
import "./chunk-ANOA7E7F.js";
|
|
49
50
|
import {
|
|
50
|
-
Matrix4_default,
|
|
51
51
|
Rectangle_default,
|
|
52
52
|
Transforms_default
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import
|
|
53
|
+
} from "./chunk-BR3BPM64.js";
|
|
54
|
+
import {
|
|
55
|
+
Matrix4_default
|
|
56
|
+
} from "./chunk-OEHJY463.js";
|
|
57
|
+
import "./chunk-C5BO2JCG.js";
|
|
58
|
+
import "./chunk-D3QIW4DH.js";
|
|
59
|
+
import {
|
|
60
|
+
RuntimeError_default
|
|
61
|
+
} from "./chunk-T27NNXEU.js";
|
|
55
62
|
import {
|
|
56
63
|
Cartesian2_default,
|
|
57
|
-
Cartesian3_default,
|
|
58
64
|
Cartographic_default,
|
|
59
65
|
Ellipsoid_default
|
|
60
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-M6IXKBC7.js";
|
|
61
67
|
import {
|
|
62
|
-
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-RZQLZIUI.js";
|
|
68
|
+
Cartesian3_default
|
|
69
|
+
} from "./chunk-J4PISUNT.js";
|
|
65
70
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import
|
|
69
|
-
defaultValue_default
|
|
70
|
-
} from "./chunk-ATLWOZFF.js";
|
|
71
|
-
import "./chunk-PN3GIZ5Q.js";
|
|
71
|
+
Math_default
|
|
72
|
+
} from "./chunk-VQH2YXO2.js";
|
|
73
|
+
import "./chunk-KWV6ZTF4.js";
|
|
72
74
|
import {
|
|
73
75
|
defined_default
|
|
74
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-MRMNELAH.js";
|
|
75
77
|
|
|
76
78
|
// packages/engine/Source/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js
|
|
77
79
|
var sizeOfUint16 = Uint16Array.BYTES_PER_ELEMENT;
|
|
@@ -80,7 +82,7 @@ var sizeOfUint32 = Uint32Array.BYTES_PER_ELEMENT;
|
|
|
80
82
|
var sizeOfFloat = Float32Array.BYTES_PER_ELEMENT;
|
|
81
83
|
var sizeOfDouble = Float64Array.BYTES_PER_ELEMENT;
|
|
82
84
|
function indexOfEpsilon(arr, elem, elemType) {
|
|
83
|
-
elemType =
|
|
85
|
+
elemType = elemType ?? Math_default;
|
|
84
86
|
const count = arr.length;
|
|
85
87
|
for (let i = 0; i < count; ++i) {
|
|
86
88
|
if (elemType.equalsEpsilon(arr[i], elem, Math_default.EPSILON12)) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.
|
|
4
|
+
* Version 0.1.4
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,55 +26,57 @@
|
|
|
26
26
|
import {
|
|
27
27
|
EllipsoidalOccluder_default,
|
|
28
28
|
TerrainEncoding_default
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-NQAXBK4K.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FIWPJFHX.js";
|
|
33
33
|
import {
|
|
34
34
|
WebMercatorProjection_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-QGISLKCW.js";
|
|
36
36
|
import {
|
|
37
37
|
OrientedBoundingBox_default
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-2HWLF3FT.js";
|
|
39
|
+
import "./chunk-4K3V5CGW.js";
|
|
40
|
+
import "./chunk-4YNRIEQ6.js";
|
|
41
41
|
import {
|
|
42
42
|
AxisAlignedBoundingBox_default
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-MFUC3D5C.js";
|
|
44
|
+
import "./chunk-BE2N56VZ.js";
|
|
45
|
+
import "./chunk-KOTWWQN7.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-ODZYB26X.js";
|
|
49
|
+
import "./chunk-ANOA7E7F.js";
|
|
49
50
|
import {
|
|
50
|
-
Matrix4_default,
|
|
51
51
|
Rectangle_default,
|
|
52
52
|
Transforms_default
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import
|
|
53
|
+
} from "./chunk-BR3BPM64.js";
|
|
54
|
+
import {
|
|
55
|
+
Matrix4_default
|
|
56
|
+
} from "./chunk-OEHJY463.js";
|
|
57
|
+
import "./chunk-C5BO2JCG.js";
|
|
58
|
+
import "./chunk-D3QIW4DH.js";
|
|
59
|
+
import {
|
|
60
|
+
RuntimeError_default
|
|
61
|
+
} from "./chunk-T27NNXEU.js";
|
|
55
62
|
import {
|
|
56
63
|
Cartesian2_default,
|
|
57
|
-
Cartesian3_default,
|
|
58
64
|
Ellipsoid_default
|
|
59
|
-
} from "./chunk-
|
|
60
|
-
import {
|
|
61
|
-
Math_default
|
|
62
|
-
} from "./chunk-HSJSUPQV.js";
|
|
63
|
-
import "./chunk-RZQLZIUI.js";
|
|
65
|
+
} from "./chunk-M6IXKBC7.js";
|
|
64
66
|
import {
|
|
65
|
-
|
|
66
|
-
} from "./chunk-
|
|
67
|
+
Cartesian3_default
|
|
68
|
+
} from "./chunk-J4PISUNT.js";
|
|
67
69
|
import {
|
|
68
|
-
|
|
69
|
-
} from "./chunk-
|
|
70
|
+
Math_default
|
|
71
|
+
} from "./chunk-VQH2YXO2.js";
|
|
70
72
|
import {
|
|
71
73
|
DeveloperError_default
|
|
72
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-KWV6ZTF4.js";
|
|
73
75
|
import {
|
|
74
76
|
__commonJS,
|
|
75
77
|
__toESM,
|
|
76
78
|
defined_default
|
|
77
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-MRMNELAH.js";
|
|
78
80
|
|
|
79
81
|
// node_modules/lerc/LercDecode.js
|
|
80
82
|
var require_LercDecode = __commonJS({
|
|
@@ -1893,7 +1895,8 @@ var HeightmapEncoding = {
|
|
|
1893
1895
|
*/
|
|
1894
1896
|
LERC: 1
|
|
1895
1897
|
};
|
|
1896
|
-
|
|
1898
|
+
Object.freeze(HeightmapEncoding);
|
|
1899
|
+
var HeightmapEncoding_default = HeightmapEncoding;
|
|
1897
1900
|
|
|
1898
1901
|
// packages/engine/Source/Core/HeightmapTessellator.js
|
|
1899
1902
|
var HeightmapTessellator = {};
|
|
@@ -1934,8 +1937,8 @@ HeightmapTessellator.computeVertices = function(options) {
|
|
|
1934
1937
|
const height = options.height;
|
|
1935
1938
|
const skirtHeight = options.skirtHeight;
|
|
1936
1939
|
const hasSkirts = skirtHeight > 0;
|
|
1937
|
-
const isGeographic =
|
|
1938
|
-
const ellipsoid =
|
|
1940
|
+
const isGeographic = options.isGeographic ?? true;
|
|
1941
|
+
const ellipsoid = options.ellipsoid ?? Ellipsoid_default.default;
|
|
1939
1942
|
const oneOverGlobeSemimajorAxis = 1 / ellipsoid.maximumRadius;
|
|
1940
1943
|
const nativeRectangle = Rectangle_default.clone(options.nativeRectangle);
|
|
1941
1944
|
const rectangle = Rectangle_default.clone(options.rectangle);
|
|
@@ -1964,42 +1967,18 @@ HeightmapTessellator.computeVertices = function(options) {
|
|
|
1964
1967
|
let relativeToCenter = options.relativeToCenter;
|
|
1965
1968
|
const hasRelativeToCenter = defined_default(relativeToCenter);
|
|
1966
1969
|
relativeToCenter = hasRelativeToCenter ? relativeToCenter : Cartesian3_default.ZERO;
|
|
1967
|
-
const includeWebMercatorT =
|
|
1968
|
-
const exaggeration =
|
|
1969
|
-
const exaggerationRelativeHeight =
|
|
1970
|
-
options.exaggerationRelativeHeight,
|
|
1971
|
-
0
|
|
1972
|
-
);
|
|
1970
|
+
const includeWebMercatorT = options.includeWebMercatorT ?? false;
|
|
1971
|
+
const exaggeration = options.exaggeration ?? 1;
|
|
1972
|
+
const exaggerationRelativeHeight = options.exaggerationRelativeHeight ?? 0;
|
|
1973
1973
|
const hasExaggeration = exaggeration !== 1;
|
|
1974
1974
|
const includeGeodeticSurfaceNormals = hasExaggeration;
|
|
1975
|
-
const structure =
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
const
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
);
|
|
1983
|
-
const heightOffset = defaultValue_default(
|
|
1984
|
-
structure.heightOffset,
|
|
1985
|
-
HeightmapTessellator.DEFAULT_STRUCTURE.heightOffset
|
|
1986
|
-
);
|
|
1987
|
-
const elementsPerHeight = defaultValue_default(
|
|
1988
|
-
structure.elementsPerHeight,
|
|
1989
|
-
HeightmapTessellator.DEFAULT_STRUCTURE.elementsPerHeight
|
|
1990
|
-
);
|
|
1991
|
-
const stride = defaultValue_default(
|
|
1992
|
-
structure.stride,
|
|
1993
|
-
HeightmapTessellator.DEFAULT_STRUCTURE.stride
|
|
1994
|
-
);
|
|
1995
|
-
const elementMultiplier = defaultValue_default(
|
|
1996
|
-
structure.elementMultiplier,
|
|
1997
|
-
HeightmapTessellator.DEFAULT_STRUCTURE.elementMultiplier
|
|
1998
|
-
);
|
|
1999
|
-
const isBigEndian = defaultValue_default(
|
|
2000
|
-
structure.isBigEndian,
|
|
2001
|
-
HeightmapTessellator.DEFAULT_STRUCTURE.isBigEndian
|
|
2002
|
-
);
|
|
1975
|
+
const structure = options.structure ?? HeightmapTessellator.DEFAULT_STRUCTURE;
|
|
1976
|
+
const heightScale = structure.heightScale ?? HeightmapTessellator.DEFAULT_STRUCTURE.heightScale;
|
|
1977
|
+
const heightOffset = structure.heightOffset ?? HeightmapTessellator.DEFAULT_STRUCTURE.heightOffset;
|
|
1978
|
+
const elementsPerHeight = structure.elementsPerHeight ?? HeightmapTessellator.DEFAULT_STRUCTURE.elementsPerHeight;
|
|
1979
|
+
const stride = structure.stride ?? HeightmapTessellator.DEFAULT_STRUCTURE.stride;
|
|
1980
|
+
const elementMultiplier = structure.elementMultiplier ?? HeightmapTessellator.DEFAULT_STRUCTURE.elementMultiplier;
|
|
1981
|
+
const isBigEndian = structure.isBigEndian ?? HeightmapTessellator.DEFAULT_STRUCTURE.isBigEndian;
|
|
2003
1982
|
let rectangleWidth = Rectangle_default.computeWidth(nativeRectangle);
|
|
2004
1983
|
let rectangleHeight = Rectangle_default.computeHeight(nativeRectangle);
|
|
2005
1984
|
const granularityX = rectangleWidth / (width - 1);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.
|
|
4
|
+
* Version 0.1.4
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -23,307 +23,53 @@
|
|
|
23
23
|
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
24
|
*/
|
|
25
25
|
|
|
26
|
+
import {
|
|
27
|
+
TerrainProvider_default
|
|
28
|
+
} from "./chunk-56CVDPH5.js";
|
|
26
29
|
import {
|
|
27
30
|
EllipsoidalOccluder_default,
|
|
28
31
|
TerrainEncoding_default
|
|
29
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-NQAXBK4K.js";
|
|
30
33
|
import {
|
|
31
34
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-FIWPJFHX.js";
|
|
33
36
|
import {
|
|
34
37
|
WebMercatorProjection_default
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-QGISLKCW.js";
|
|
39
|
+
import "./chunk-4K3V5CGW.js";
|
|
37
40
|
import {
|
|
38
41
|
AxisAlignedBoundingBox_default
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-MFUC3D5C.js";
|
|
40
43
|
import {
|
|
41
44
|
IndexDatatype_default
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-T6JS4BRN.js";
|
|
46
|
+
import "./chunk-ODZYB26X.js";
|
|
47
|
+
import "./chunk-ANOA7E7F.js";
|
|
44
48
|
import {
|
|
45
|
-
Matrix4_default,
|
|
46
49
|
Rectangle_default,
|
|
47
50
|
Transforms_default
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import
|
|
51
|
+
} from "./chunk-BR3BPM64.js";
|
|
52
|
+
import {
|
|
53
|
+
Matrix4_default
|
|
54
|
+
} from "./chunk-OEHJY463.js";
|
|
55
|
+
import "./chunk-C5BO2JCG.js";
|
|
56
|
+
import "./chunk-D3QIW4DH.js";
|
|
57
|
+
import "./chunk-T27NNXEU.js";
|
|
50
58
|
import {
|
|
51
59
|
Cartesian2_default,
|
|
52
|
-
Cartesian3_default,
|
|
53
60
|
Cartographic_default,
|
|
54
61
|
Ellipsoid_default
|
|
55
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-M6IXKBC7.js";
|
|
56
63
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-RZQLZIUI.js";
|
|
60
|
-
import "./chunk-I73Q3AG7.js";
|
|
61
|
-
import "./chunk-ATLWOZFF.js";
|
|
64
|
+
Cartesian3_default
|
|
65
|
+
} from "./chunk-J4PISUNT.js";
|
|
62
66
|
import {
|
|
63
|
-
|
|
64
|
-
} from "./chunk-
|
|
67
|
+
Math_default
|
|
68
|
+
} from "./chunk-VQH2YXO2.js";
|
|
69
|
+
import "./chunk-KWV6ZTF4.js";
|
|
65
70
|
import {
|
|
66
71
|
defined_default
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
|
|
69
|
-
// packages/engine/Source/Core/TerrainProvider.js
|
|
70
|
-
function TerrainProvider() {
|
|
71
|
-
DeveloperError_default.throwInstantiationError();
|
|
72
|
-
}
|
|
73
|
-
Object.defineProperties(TerrainProvider.prototype, {
|
|
74
|
-
/**
|
|
75
|
-
* Gets an event that is raised when the terrain provider encounters an asynchronous error. By subscribing
|
|
76
|
-
* to the event, you will be notified of the error and can potentially recover from it. Event listeners
|
|
77
|
-
* are passed an instance of {@link TileProviderError}.
|
|
78
|
-
* @memberof TerrainProvider.prototype
|
|
79
|
-
* @type {Event<TerrainProvider.ErrorEvent>}
|
|
80
|
-
* @readonly
|
|
81
|
-
*/
|
|
82
|
-
errorEvent: {
|
|
83
|
-
get: DeveloperError_default.throwInstantiationError
|
|
84
|
-
},
|
|
85
|
-
/**
|
|
86
|
-
* Gets the credit to display when this terrain provider is active. Typically this is used to credit
|
|
87
|
-
* the source of the terrain.
|
|
88
|
-
* @memberof TerrainProvider.prototype
|
|
89
|
-
* @type {Credit}
|
|
90
|
-
* @readonly
|
|
91
|
-
*/
|
|
92
|
-
credit: {
|
|
93
|
-
get: DeveloperError_default.throwInstantiationError
|
|
94
|
-
},
|
|
95
|
-
/**
|
|
96
|
-
* Gets the tiling scheme used by the provider.
|
|
97
|
-
* @memberof TerrainProvider.prototype
|
|
98
|
-
* @type {TilingScheme}
|
|
99
|
-
* @readonly
|
|
100
|
-
*/
|
|
101
|
-
tilingScheme: {
|
|
102
|
-
get: DeveloperError_default.throwInstantiationError
|
|
103
|
-
},
|
|
104
|
-
/**
|
|
105
|
-
* Gets a value indicating whether or not the provider includes a water mask. The water mask
|
|
106
|
-
* indicates which areas of the globe are water rather than land, so they can be rendered
|
|
107
|
-
* as a reflective surface with animated waves.
|
|
108
|
-
* @memberof TerrainProvider.prototype
|
|
109
|
-
* @type {boolean}
|
|
110
|
-
* @readonly
|
|
111
|
-
*/
|
|
112
|
-
hasWaterMask: {
|
|
113
|
-
get: DeveloperError_default.throwInstantiationError
|
|
114
|
-
},
|
|
115
|
-
/**
|
|
116
|
-
* Gets a value indicating whether or not the requested tiles include vertex normals.
|
|
117
|
-
* @memberof TerrainProvider.prototype
|
|
118
|
-
* @type {boolean}
|
|
119
|
-
* @readonly
|
|
120
|
-
*/
|
|
121
|
-
hasVertexNormals: {
|
|
122
|
-
get: DeveloperError_default.throwInstantiationError
|
|
123
|
-
},
|
|
124
|
-
/**
|
|
125
|
-
* Gets an object that can be used to determine availability of terrain from this provider, such as
|
|
126
|
-
* at points and in rectangles. This property may be undefined if availability
|
|
127
|
-
* information is not available.
|
|
128
|
-
* @memberof TerrainProvider.prototype
|
|
129
|
-
* @type {TileAvailability}
|
|
130
|
-
* @readonly
|
|
131
|
-
*/
|
|
132
|
-
availability: {
|
|
133
|
-
get: DeveloperError_default.throwInstantiationError
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
var regularGridIndicesCache = [];
|
|
137
|
-
TerrainProvider.getRegularGridIndices = function(width, height) {
|
|
138
|
-
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
139
|
-
throw new DeveloperError_default(
|
|
140
|
-
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
let byWidth = regularGridIndicesCache[width];
|
|
144
|
-
if (!defined_default(byWidth)) {
|
|
145
|
-
regularGridIndicesCache[width] = byWidth = [];
|
|
146
|
-
}
|
|
147
|
-
let indices = byWidth[height];
|
|
148
|
-
if (!defined_default(indices)) {
|
|
149
|
-
if (width * height < Math_default.SIXTY_FOUR_KILOBYTES) {
|
|
150
|
-
indices = byWidth[height] = new Uint16Array(
|
|
151
|
-
(width - 1) * (height - 1) * 6
|
|
152
|
-
);
|
|
153
|
-
} else {
|
|
154
|
-
indices = byWidth[height] = new Uint32Array(
|
|
155
|
-
(width - 1) * (height - 1) * 6
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
addRegularGridIndices(width, height, indices, 0);
|
|
159
|
-
}
|
|
160
|
-
return indices;
|
|
161
|
-
};
|
|
162
|
-
var regularGridAndEdgeIndicesCache = [];
|
|
163
|
-
TerrainProvider.getRegularGridIndicesAndEdgeIndices = function(width, height) {
|
|
164
|
-
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
165
|
-
throw new DeveloperError_default(
|
|
166
|
-
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
167
|
-
);
|
|
168
|
-
}
|
|
169
|
-
let byWidth = regularGridAndEdgeIndicesCache[width];
|
|
170
|
-
if (!defined_default(byWidth)) {
|
|
171
|
-
regularGridAndEdgeIndicesCache[width] = byWidth = [];
|
|
172
|
-
}
|
|
173
|
-
let indicesAndEdges = byWidth[height];
|
|
174
|
-
if (!defined_default(indicesAndEdges)) {
|
|
175
|
-
const indices = TerrainProvider.getRegularGridIndices(width, height);
|
|
176
|
-
const edgeIndices = getEdgeIndices(width, height);
|
|
177
|
-
const westIndicesSouthToNorth = edgeIndices.westIndicesSouthToNorth;
|
|
178
|
-
const southIndicesEastToWest = edgeIndices.southIndicesEastToWest;
|
|
179
|
-
const eastIndicesNorthToSouth = edgeIndices.eastIndicesNorthToSouth;
|
|
180
|
-
const northIndicesWestToEast = edgeIndices.northIndicesWestToEast;
|
|
181
|
-
indicesAndEdges = byWidth[height] = {
|
|
182
|
-
indices,
|
|
183
|
-
westIndicesSouthToNorth,
|
|
184
|
-
southIndicesEastToWest,
|
|
185
|
-
eastIndicesNorthToSouth,
|
|
186
|
-
northIndicesWestToEast
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
return indicesAndEdges;
|
|
190
|
-
};
|
|
191
|
-
var regularGridAndSkirtAndEdgeIndicesCache = [];
|
|
192
|
-
TerrainProvider.getRegularGridAndSkirtIndicesAndEdgeIndices = function(width, height) {
|
|
193
|
-
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
194
|
-
throw new DeveloperError_default(
|
|
195
|
-
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
196
|
-
);
|
|
197
|
-
}
|
|
198
|
-
let byWidth = regularGridAndSkirtAndEdgeIndicesCache[width];
|
|
199
|
-
if (!defined_default(byWidth)) {
|
|
200
|
-
regularGridAndSkirtAndEdgeIndicesCache[width] = byWidth = [];
|
|
201
|
-
}
|
|
202
|
-
let indicesAndEdges = byWidth[height];
|
|
203
|
-
if (!defined_default(indicesAndEdges)) {
|
|
204
|
-
const gridVertexCount = width * height;
|
|
205
|
-
const gridIndexCount = (width - 1) * (height - 1) * 6;
|
|
206
|
-
const edgeVertexCount = width * 2 + height * 2;
|
|
207
|
-
const edgeIndexCount = Math.max(0, edgeVertexCount - 4) * 6;
|
|
208
|
-
const vertexCount = gridVertexCount + edgeVertexCount;
|
|
209
|
-
const indexCount = gridIndexCount + edgeIndexCount;
|
|
210
|
-
const edgeIndices = getEdgeIndices(width, height);
|
|
211
|
-
const westIndicesSouthToNorth = edgeIndices.westIndicesSouthToNorth;
|
|
212
|
-
const southIndicesEastToWest = edgeIndices.southIndicesEastToWest;
|
|
213
|
-
const eastIndicesNorthToSouth = edgeIndices.eastIndicesNorthToSouth;
|
|
214
|
-
const northIndicesWestToEast = edgeIndices.northIndicesWestToEast;
|
|
215
|
-
const indices = IndexDatatype_default.createTypedArray(vertexCount, indexCount);
|
|
216
|
-
addRegularGridIndices(width, height, indices, 0);
|
|
217
|
-
TerrainProvider.addSkirtIndices(
|
|
218
|
-
westIndicesSouthToNorth,
|
|
219
|
-
southIndicesEastToWest,
|
|
220
|
-
eastIndicesNorthToSouth,
|
|
221
|
-
northIndicesWestToEast,
|
|
222
|
-
gridVertexCount,
|
|
223
|
-
indices,
|
|
224
|
-
gridIndexCount
|
|
225
|
-
);
|
|
226
|
-
indicesAndEdges = byWidth[height] = {
|
|
227
|
-
indices,
|
|
228
|
-
westIndicesSouthToNorth,
|
|
229
|
-
southIndicesEastToWest,
|
|
230
|
-
eastIndicesNorthToSouth,
|
|
231
|
-
northIndicesWestToEast,
|
|
232
|
-
indexCountWithoutSkirts: gridIndexCount
|
|
233
|
-
};
|
|
234
|
-
}
|
|
235
|
-
return indicesAndEdges;
|
|
236
|
-
};
|
|
237
|
-
TerrainProvider.addSkirtIndices = function(westIndicesSouthToNorth, southIndicesEastToWest, eastIndicesNorthToSouth, northIndicesWestToEast, vertexCount, indices, offset) {
|
|
238
|
-
let vertexIndex = vertexCount;
|
|
239
|
-
offset = addSkirtIndices(
|
|
240
|
-
westIndicesSouthToNorth,
|
|
241
|
-
vertexIndex,
|
|
242
|
-
indices,
|
|
243
|
-
offset
|
|
244
|
-
);
|
|
245
|
-
vertexIndex += westIndicesSouthToNorth.length;
|
|
246
|
-
offset = addSkirtIndices(
|
|
247
|
-
southIndicesEastToWest,
|
|
248
|
-
vertexIndex,
|
|
249
|
-
indices,
|
|
250
|
-
offset
|
|
251
|
-
);
|
|
252
|
-
vertexIndex += southIndicesEastToWest.length;
|
|
253
|
-
offset = addSkirtIndices(
|
|
254
|
-
eastIndicesNorthToSouth,
|
|
255
|
-
vertexIndex,
|
|
256
|
-
indices,
|
|
257
|
-
offset
|
|
258
|
-
);
|
|
259
|
-
vertexIndex += eastIndicesNorthToSouth.length;
|
|
260
|
-
addSkirtIndices(northIndicesWestToEast, vertexIndex, indices, offset);
|
|
261
|
-
};
|
|
262
|
-
function getEdgeIndices(width, height) {
|
|
263
|
-
const westIndicesSouthToNorth = new Array(height);
|
|
264
|
-
const southIndicesEastToWest = new Array(width);
|
|
265
|
-
const eastIndicesNorthToSouth = new Array(height);
|
|
266
|
-
const northIndicesWestToEast = new Array(width);
|
|
267
|
-
let i;
|
|
268
|
-
for (i = 0; i < width; ++i) {
|
|
269
|
-
northIndicesWestToEast[i] = i;
|
|
270
|
-
southIndicesEastToWest[i] = width * height - 1 - i;
|
|
271
|
-
}
|
|
272
|
-
for (i = 0; i < height; ++i) {
|
|
273
|
-
eastIndicesNorthToSouth[i] = (i + 1) * width - 1;
|
|
274
|
-
westIndicesSouthToNorth[i] = (height - i - 1) * width;
|
|
275
|
-
}
|
|
276
|
-
return {
|
|
277
|
-
westIndicesSouthToNorth,
|
|
278
|
-
southIndicesEastToWest,
|
|
279
|
-
eastIndicesNorthToSouth,
|
|
280
|
-
northIndicesWestToEast
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
function addRegularGridIndices(width, height, indices, offset) {
|
|
284
|
-
let index = 0;
|
|
285
|
-
for (let j = 0; j < height - 1; ++j) {
|
|
286
|
-
for (let i = 0; i < width - 1; ++i) {
|
|
287
|
-
const upperLeft = index;
|
|
288
|
-
const lowerLeft = upperLeft + width;
|
|
289
|
-
const lowerRight = lowerLeft + 1;
|
|
290
|
-
const upperRight = upperLeft + 1;
|
|
291
|
-
indices[offset++] = upperLeft;
|
|
292
|
-
indices[offset++] = lowerLeft;
|
|
293
|
-
indices[offset++] = upperRight;
|
|
294
|
-
indices[offset++] = upperRight;
|
|
295
|
-
indices[offset++] = lowerLeft;
|
|
296
|
-
indices[offset++] = lowerRight;
|
|
297
|
-
++index;
|
|
298
|
-
}
|
|
299
|
-
++index;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
function addSkirtIndices(edgeIndices, vertexIndex, indices, offset) {
|
|
303
|
-
let previousIndex = edgeIndices[0];
|
|
304
|
-
const length = edgeIndices.length;
|
|
305
|
-
for (let i = 1; i < length; ++i) {
|
|
306
|
-
const index = edgeIndices[i];
|
|
307
|
-
indices[offset++] = previousIndex;
|
|
308
|
-
indices[offset++] = index;
|
|
309
|
-
indices[offset++] = vertexIndex;
|
|
310
|
-
indices[offset++] = vertexIndex;
|
|
311
|
-
indices[offset++] = index;
|
|
312
|
-
indices[offset++] = vertexIndex + 1;
|
|
313
|
-
previousIndex = index;
|
|
314
|
-
++vertexIndex;
|
|
315
|
-
}
|
|
316
|
-
return offset;
|
|
317
|
-
}
|
|
318
|
-
TerrainProvider.heightmapTerrainQuality = 0.25;
|
|
319
|
-
TerrainProvider.getEstimatedLevelZeroGeometricErrorForAHeightmap = function(ellipsoid, tileImageWidth, numberOfTilesAtLevelZero) {
|
|
320
|
-
return ellipsoid.maximumRadius * 2 * Math.PI * TerrainProvider.heightmapTerrainQuality / (tileImageWidth * numberOfTilesAtLevelZero);
|
|
321
|
-
};
|
|
322
|
-
TerrainProvider.prototype.requestTileGeometry = DeveloperError_default.throwInstantiationError;
|
|
323
|
-
TerrainProvider.prototype.getLevelMaximumGeometricError = DeveloperError_default.throwInstantiationError;
|
|
324
|
-
TerrainProvider.prototype.getTileDataAvailable = DeveloperError_default.throwInstantiationError;
|
|
325
|
-
TerrainProvider.prototype.loadTileDataAvailability = DeveloperError_default.throwInstantiationError;
|
|
326
|
-
var TerrainProvider_default = TerrainProvider;
|
|
72
|
+
} from "./chunk-MRMNELAH.js";
|
|
327
73
|
|
|
328
74
|
// packages/engine/Source/Workers/createVerticesFromQuantizedTerrainMesh.js
|
|
329
75
|
var maxShort = 32767;
|