@cesium/engine 21.0.1 → 22.1.0
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/ThirdParty/Workers/zip-web-worker.js +10 -7
- package/Build/Workers/chunk-23T2IPHV.js +55 -0
- package/Build/Workers/{chunk-TGJQMEL4.js → chunk-2AM4E2WD.js} +2 -2
- package/Build/Workers/{chunk-4CORGH7N.js → chunk-2MWF4IES.js} +16 -14
- package/Build/Workers/{chunk-3RKX3UFI.js → chunk-2RCIRXNI.js} +1 -1
- package/Build/Workers/{chunk-LV3G32QE.js → chunk-3YTMGEXW.js} +5 -1424
- package/Build/Workers/{chunk-PJAA7QSC.js → chunk-4BHWJWS3.js} +6 -6
- package/Build/Workers/{chunk-FE565QHX.js → chunk-5JKH4AMT.js} +2 -2
- package/Build/Workers/{chunk-KZ7GDSAJ.js → chunk-6HKAPCSO.js} +1 -1
- package/Build/Workers/{chunk-VVALNLSH.js → chunk-A53R2F2L.js} +4 -4
- package/Build/Workers/{chunk-KVB73ECP.js → chunk-A6YFUGJO.js} +7 -7
- package/Build/Workers/{chunk-QNOIRRJK.js → chunk-AJYWXC6I.js} +4 -4
- package/Build/Workers/{chunk-UKA7OISV.js → chunk-AOIO5VUS.js} +282 -2284
- package/Build/Workers/{chunk-OBS5EMZ6.js → chunk-B7JRBTT6.js} +10 -10
- package/Build/Workers/{chunk-5YXA47QD.js → chunk-CHNDJRYA.js} +20 -18
- package/Build/Workers/{chunk-X3ZV3XNO.js → chunk-CJOV55CW.js} +20 -18
- package/Build/Workers/{chunk-W6I3LNPF.js → chunk-COGPE5Z2.js} +10 -8
- package/Build/Workers/{chunk-2QPH5QDK.js → chunk-CW7W27IZ.js} +14 -10
- package/Build/Workers/{chunk-MXOGBWMP.js → chunk-DICY26ID.js} +20 -16
- package/Build/Workers/{chunk-W6KMV4F5.js → chunk-DMEFNTUV.js} +69 -7
- package/Build/Workers/{chunk-T7HU6E7G.js → chunk-DQSJEOZY.js} +1 -1
- package/Build/Workers/{chunk-ASVODZNK.js → chunk-GDU4RZSZ.js} +16 -36
- package/Build/Workers/{chunk-MQPDOWGH.js → chunk-GKWOUMYA.js} +1 -1
- package/Build/Workers/{chunk-A2SP2EJZ.js → chunk-GTY4K4IA.js} +9 -7
- package/Build/Workers/{chunk-KEPPNSBL.js → chunk-H6Q7E4BQ.js} +8 -6
- package/Build/Workers/{chunk-JG3C3LPY.js → chunk-HHGOFZVQ.js} +7 -5
- package/Build/Workers/chunk-HXKUEOOD.js +352 -0
- package/Build/Workers/{chunk-UFSYRVC5.js → chunk-I4REFVXB.js} +4 -4
- package/Build/Workers/{chunk-LU7DLY2L.js → chunk-IL5F6WEE.js} +3 -3
- package/Build/Workers/{chunk-RVRN4KDB.js → chunk-JKXPC5HD.js} +2 -2
- package/Build/Workers/{chunk-CBPNIEGH.js → chunk-KKGD7HAW.js} +13 -11
- package/Build/Workers/{chunk-DTKSVIH5.js → chunk-KROSQJUA.js} +2 -2
- package/Build/Workers/{chunk-42EJCSIV.js → chunk-L4JLDVCM.js} +5 -5
- package/Build/Workers/{chunk-LPKJSIMD.js → chunk-LIYMRHGR.js} +15 -13
- package/Build/Workers/{chunk-J2XQVKVH.js → chunk-MKMZHRB3.js} +74 -35
- package/Build/Workers/{chunk-CSDYSXBI.js → chunk-MO25ZQ2I.js} +14 -12
- package/Build/Workers/{chunk-3YNW5K6O.js → chunk-O6RZEKHZ.js} +12 -12
- package/Build/Workers/{chunk-RR3NCT4R.js → chunk-OOCGX2OD.js} +4 -4
- package/Build/Workers/{chunk-XG54SG4O.js → chunk-OXFU5HNU.js} +13 -5
- package/Build/Workers/{chunk-P2UKEFCK.js → chunk-P5CGIJUY.js} +2 -2
- package/Build/Workers/{chunk-DBHL2UVG.js → chunk-QEANVUGT.js} +2 -2
- package/Build/Workers/{chunk-2SI7DEW5.js → chunk-QFBCIX7J.js} +8 -6
- package/Build/Workers/{chunk-DDXI6UYW.js → chunk-QUAH3XOT.js} +4 -4
- package/Build/Workers/{chunk-PZUZCAX3.js → chunk-RXZDTDIY.js} +13 -9
- package/Build/Workers/{chunk-YZ3RCE45.js → chunk-SPA2KPH3.js} +14 -12
- package/Build/Workers/chunk-TDSVSW5A.js +1460 -0
- package/Build/Workers/{chunk-G3CKZ34K.js → chunk-UG2DPFOL.js} +8 -6
- package/Build/Workers/{chunk-IKUOV6DO.js → chunk-URGEDZBS.js} +7 -7
- package/Build/Workers/{chunk-U2GR5FDL.js → chunk-V35NQOJC.js} +21 -11
- package/Build/Workers/chunk-W4XUEDU5.js +2058 -0
- package/Build/Workers/chunk-WB4TSSBQ.js +3514 -0
- package/Build/Workers/{chunk-EBDZDBJN.js → chunk-WTLYD4FE.js} +19 -15
- package/Build/Workers/{chunk-WQZL6CA2.js → chunk-Y4ALZ4SS.js} +9 -7
- package/Build/Workers/{chunk-DAJKOQW6.js → chunk-YF2NVO5B.js} +19 -13
- package/Build/Workers/{chunk-XJVRYJVZ.js → chunk-YSYSXSHF.js} +1 -1
- package/Build/Workers/{chunk-YNOVMSUX.js → chunk-YX562XOB.js} +15 -11
- package/Build/Workers/{chunk-J3KPR6DJ.js → chunk-YZWA5B4R.js} +15 -13
- package/Build/Workers/{chunk-NYYQZ3LH.js → chunk-Z6DFT4D3.js} +15 -11
- package/Build/Workers/combineGeometry.js +24 -21
- package/Build/Workers/createBoxGeometry.js +18 -15
- package/Build/Workers/createBoxOutlineGeometry.js +16 -13
- package/Build/Workers/createCircleGeometry.js +28 -24
- package/Build/Workers/createCircleOutlineGeometry.js +21 -17
- package/Build/Workers/createCoplanarPolygonGeometry.js +35 -31
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +33 -29
- package/Build/Workers/createCorridorGeometry.js +32 -28
- package/Build/Workers/createCorridorOutlineGeometry.js +30 -26
- package/Build/Workers/createCylinderGeometry.js +20 -17
- package/Build/Workers/createCylinderOutlineGeometry.js +20 -16
- package/Build/Workers/createEllipseGeometry.js +28 -24
- package/Build/Workers/createEllipseOutlineGeometry.js +21 -17
- package/Build/Workers/createEllipsoidGeometry.js +19 -16
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -15
- package/Build/Workers/createFrustumGeometry.js +18 -15
- package/Build/Workers/createFrustumOutlineGeometry.js +18 -15
- package/Build/Workers/createGeometry.js +28 -22
- package/Build/Workers/createGroundPolylineGeometry.js +25 -21
- package/Build/Workers/createPlaneGeometry.js +16 -13
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -12
- package/Build/Workers/createPolygonGeometry.js +35 -31
- package/Build/Workers/createPolygonOutlineGeometry.js +32 -28
- package/Build/Workers/createPolylineGeometry.js +27 -23
- package/Build/Workers/createPolylineVolumeGeometry.js +33 -29
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +29 -25
- package/Build/Workers/createRectangleGeometry.js +30 -26
- package/Build/Workers/createRectangleOutlineGeometry.js +23 -19
- package/Build/Workers/createSimplePolylineGeometry.js +25 -21
- package/Build/Workers/createSphereGeometry.js +19 -16
- package/Build/Workers/createSphereOutlineGeometry.js +18 -15
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +16 -13
- package/Build/Workers/createVectorTileGeometries.js +24 -21
- package/Build/Workers/createVectorTilePoints.js +15 -12
- package/Build/Workers/createVectorTilePolygons.js +24 -20
- package/Build/Workers/createVectorTilePolylines.js +16 -13
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +91 -0
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +28 -23
- package/Build/Workers/createVerticesFromHeightmap.js +28 -23
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -279
- package/Build/Workers/createWallGeometry.js +26 -22
- package/Build/Workers/createWallOutlineGeometry.js +25 -21
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- package/Build/Workers/decodeI3S.js +13 -11
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/incrementallyBuildTerrainPicker.js +121 -0
- package/Build/Workers/transcodeKTX2.js +6 -6
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +24 -20
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +95 -0
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +2 -2
- package/Source/Core/AxisAlignedBoundingBox.js +36 -0
- package/Source/Core/Cesium3DTilesTerrainData.js +932 -0
- package/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js +1868 -0
- package/Source/Core/Cesium3DTilesTerrainProvider.js +1052 -0
- package/Source/Core/CesiumTerrainProvider.js +2 -2
- package/Source/Core/Color.js +23 -6
- package/Source/Core/EllipsoidalOccluder.js +2 -2
- package/Source/Core/FeatureDetection.js +0 -2
- package/Source/Core/GoogleEarthEnterpriseMetadata.js +1 -1
- package/Source/Core/GoogleEarthEnterpriseTerrainData.js +2 -1
- package/Source/Core/GoogleEarthEnterpriseTerrainProvider.js +1 -1
- package/Source/Core/HeightmapTerrainData.js +12 -22
- package/Source/Core/HilbertOrder.js +0 -6
- package/Source/Core/ITwinPlatform.js +6 -6
- package/Source/Core/IntersectionTests.js +80 -0
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/IonResource.js +35 -27
- package/Source/Core/PixelFormat.js +2 -2
- package/Source/Core/QuantizedMeshTerrainData.js +24 -57
- package/Source/Core/Resource.js +15 -11
- package/Source/Core/S2Cell.js +6 -18
- package/Source/Core/TaskProcessor.js +1 -1
- package/Source/Core/TerrainData.js +2 -1
- package/Source/Core/TerrainEncoding.js +215 -38
- package/Source/Core/TerrainMesh.js +215 -8
- package/Source/Core/TerrainPicker.js +607 -0
- package/Source/Core/TerrainProvider.js +151 -0
- package/Source/Core/TexturePacker.js +27 -12
- package/Source/Core/Transforms.js +28 -19
- package/Source/Core/VRTheWorldTerrainProvider.js +2 -2
- package/Source/Core/binarySearch.js +1 -1
- package/Source/Core/createWorldBathymetryAsync.js +2 -2
- package/Source/Core/createWorldTerrainAsync.js +3 -3
- package/Source/Core/loadImageFromTypedArray.js +9 -3
- package/Source/Core/mergeSort.js +1 -1
- package/Source/DataSources/BillboardGraphics.js +1 -1
- package/Source/DataSources/BillboardVisualizer.js +7 -4
- package/Source/DataSources/PropertyArray.js +2 -2
- package/Source/Renderer/AutomaticUniforms.js +61 -0
- package/Source/Renderer/Buffer.js +32 -0
- package/Source/Renderer/BufferUsage.js +3 -1
- package/Source/Renderer/Context.js +98 -14
- package/Source/Renderer/Pass.js +10 -9
- package/Source/Renderer/Sync.js +104 -0
- package/Source/Renderer/TextureAtlas.js +67 -27
- package/Source/Renderer/UniformState.js +12 -0
- package/Source/Renderer/VertexArray.js +1 -1
- package/Source/Scene/ArcGisMapServerImageryProvider.js +1 -1
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Azure2DImageryProvider.js +99 -13
- package/Source/Scene/BatchTable.js +2 -2
- package/Source/Scene/Billboard.js +75 -28
- package/Source/Scene/BillboardCollection.js +24 -15
- package/Source/Scene/BillboardTexture.js +56 -7
- package/Source/Scene/BingMapsImageryProvider.js +1 -1
- package/Source/Scene/BoundingVolumeSemantics.js +54 -62
- package/Source/Scene/Cesium3DTile.js +3 -3
- package/Source/Scene/Cesium3DTilesVoxelProvider.js +1 -1
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/EdgeFramebuffer.js +245 -0
- package/Source/Scene/FrameState.js +12 -0
- package/Source/Scene/GaussianSplat3DTileContent.js +12 -16
- package/Source/Scene/GaussianSplatPrimitive.js +12 -8
- package/Source/Scene/GaussianSplatSorter.js +2 -2
- package/Source/Scene/Globe.js +4 -2
- package/Source/Scene/GlobeSurfaceTile.js +28 -70
- package/Source/Scene/GlobeSurfaceTileProvider.js +11 -0
- package/Source/Scene/GltfBufferViewLoader.js +18 -0
- package/Source/Scene/GltfLoader.js +46 -8
- package/Source/Scene/Google2DImageryProvider.js +48 -41
- package/Source/Scene/GoogleEarthEnterpriseMapsProvider.js +1 -1
- package/Source/Scene/I3SDataProvider.js +1 -1
- package/Source/Scene/I3SDecoder.js +3 -3
- package/Source/Scene/ITwinData.js +4 -4
- package/Source/Scene/ImageryLayer.js +1 -1
- package/Source/Scene/Implicit3DTileContent.js +18 -7
- package/Source/Scene/ImplicitSubtree.js +3 -3
- package/Source/Scene/ImplicitTileset.js +2 -2
- package/Source/Scene/IonImageryProvider.js +15 -84
- package/Source/Scene/IonImageryProviderFactory.js +194 -0
- package/Source/Scene/LabelCollection.js +54 -36
- package/Source/Scene/MetadataComponentType.js +5 -5
- package/Source/Scene/MetadataTableProperty.js +3 -9
- package/Source/Scene/Model/EdgeDetectionPipelineStage.js +42 -0
- package/Source/Scene/Model/EdgeVisibilityPipelineStage.js +800 -0
- package/Source/Scene/Model/MetadataPipelineStage.js +7 -7
- package/Source/Scene/Model/ModelDrawCommand.js +69 -0
- package/Source/Scene/Model/ModelImagery.js +4 -0
- package/Source/Scene/Model/ModelRuntimeNode.js +2 -2
- package/Source/Scene/Model/ModelRuntimePrimitive.js +13 -2
- package/Source/Scene/Model/ModelSceneGraph.js +15 -3
- package/Source/Scene/Model/ModelUtility.js +0 -1
- package/Source/Scene/Model/NodeRenderResources.js +1 -1
- package/Source/Scene/Model/PrimitiveRenderResources.js +1 -1
- package/Source/Scene/OIT.js +11 -1
- package/Source/Scene/PickFramebuffer.js +134 -50
- package/Source/Scene/Picking.js +195 -89
- package/Source/Scene/QuadtreePrimitive.js +34 -26
- package/Source/Scene/QuadtreeTile.js +66 -46
- package/Source/Scene/ResourceLoaderState.js +1 -1
- package/Source/Scene/Scene.js +160 -16
- package/Source/Scene/ScreenSpaceCameraController.js +1 -1
- package/Source/Scene/SensorVolumePortionToDisplay.js +6 -6
- package/Source/Scene/SingleTileImageryProvider.js +3 -3
- package/Source/Scene/Terrain.js +5 -5
- package/Source/Scene/TerrainFillMesh.js +1 -0
- package/Source/Scene/TileMapServiceImageryProvider.js +2 -2
- package/Source/Scene/UrlTemplateImageryProvider.js +1 -1
- package/Source/Scene/View.js +3 -0
- package/Source/Scene/VoxelPrimitive.js +196 -189
- package/Source/Scene/VoxelShape.js +2 -0
- package/Source/Scene/createWorldImageryAsync.js +1 -1
- package/Source/Shaders/BillboardCollectionFS.glsl +115 -62
- package/Source/Shaders/BillboardCollectionFS.js +115 -63
- package/Source/Shaders/BillboardCollectionVS.glsl +44 -37
- package/Source/Shaders/BillboardCollectionVS.js +45 -38
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTile.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassification.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileClassificationIgnoreShow.js +1 -1
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdges.glsl +10 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTileEdges.js +12 -0
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passGaussianSplats.js +1 -1
- package/Source/Shaders/Builtin/Constants/passOpaque.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passOpaque.js +1 -1
- package/Source/Shaders/Builtin/Constants/passOverlay.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passOverlay.js +1 -1
- package/Source/Shaders/Builtin/Constants/passTranslucent.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passTranslucent.js +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passVoxels.js +1 -1
- package/Source/Shaders/Builtin/CzmBuiltins.js +2 -0
- package/Source/Shaders/GlobeVS.glsl +1 -1
- package/Source/Shaders/GlobeVS.js +1 -1
- package/Source/Shaders/Model/EdgeDetectionStageFS.glsl +58 -0
- package/Source/Shaders/Model/EdgeDetectionStageFS.js +60 -0
- package/Source/Shaders/Model/EdgeVisibilityStageFS.glsl +83 -0
- package/Source/Shaders/Model/EdgeVisibilityStageFS.js +85 -0
- package/Source/Shaders/Model/ModelFS.glsl +5 -0
- package/Source/Shaders/Model/ModelFS.js +5 -0
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.glsl +0 -1
- package/Source/Shaders/Model/PrimitiveOutlineStageFS.js +0 -1
- package/Source/Shaders/ShadowVolumeAppearanceFS.glsl +7 -15
- package/Source/Shaders/ShadowVolumeAppearanceFS.js +7 -15
- package/Source/ThirdParty/Workers/zip-web-worker.js +1 -1
- package/Source/ThirdParty/zip-module.wasm +0 -0
- package/Source/Workers/createVerticesFromCesium3DTilesTerrain.js +46 -0
- package/Source/Workers/incrementallyBuildTerrainPicker.js +108 -0
- package/Source/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +55 -0
- package/index.d.ts +488 -31
- package/index.js +202 -190
- package/package.json +3 -2
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.136.0
|
|
5
|
+
*
|
|
6
|
+
* Copyright 2011-2022 Cesium Contributors
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
15
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17
|
+
* See the License for the specific language governing permissions and
|
|
18
|
+
* limitations under the License.
|
|
19
|
+
*
|
|
20
|
+
* Columbus View (Pat. Pend.)
|
|
21
|
+
*
|
|
22
|
+
* Portions licensed separately.
|
|
23
|
+
* See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
import {
|
|
27
|
+
Cesium3DTilesTerrainGeometryProcessor_default
|
|
28
|
+
} from "./chunk-WB4TSSBQ.js";
|
|
29
|
+
import "./chunk-HXKUEOOD.js";
|
|
30
|
+
import "./chunk-MKMZHRB3.js";
|
|
31
|
+
import {
|
|
32
|
+
createTaskProcessorWorker_default
|
|
33
|
+
} from "./chunk-2AM4E2WD.js";
|
|
34
|
+
import "./chunk-H6Q7E4BQ.js";
|
|
35
|
+
import "./chunk-YF2NVO5B.js";
|
|
36
|
+
import "./chunk-RXZDTDIY.js";
|
|
37
|
+
import "./chunk-Z6DFT4D3.js";
|
|
38
|
+
import "./chunk-OXFU5HNU.js";
|
|
39
|
+
import "./chunk-DMEFNTUV.js";
|
|
40
|
+
import "./chunk-4BHWJWS3.js";
|
|
41
|
+
import "./chunk-A6YFUGJO.js";
|
|
42
|
+
import "./chunk-GDU4RZSZ.js";
|
|
43
|
+
import "./chunk-23T2IPHV.js";
|
|
44
|
+
import "./chunk-AOIO5VUS.js";
|
|
45
|
+
import "./chunk-W4XUEDU5.js";
|
|
46
|
+
import "./chunk-I4REFVXB.js";
|
|
47
|
+
import "./chunk-YSYSXSHF.js";
|
|
48
|
+
import "./chunk-5JKH4AMT.js";
|
|
49
|
+
import "./chunk-TDSVSW5A.js";
|
|
50
|
+
import "./chunk-3YTMGEXW.js";
|
|
51
|
+
import "./chunk-IL5F6WEE.js";
|
|
52
|
+
import "./chunk-QEANVUGT.js";
|
|
53
|
+
import "./chunk-2RCIRXNI.js";
|
|
54
|
+
|
|
55
|
+
// packages/engine/Source/Workers/createVerticesFromCesium3DTilesTerrain.js
|
|
56
|
+
function createVerticesFromCesium3DTilesTerrain(options, transferableObjects) {
|
|
57
|
+
const meshPromise = Cesium3DTilesTerrainGeometryProcessor_default.createMesh(options);
|
|
58
|
+
return meshPromise.then(function(mesh) {
|
|
59
|
+
const verticesBuffer = mesh.vertices.buffer;
|
|
60
|
+
const indicesBuffer = mesh.indices.buffer;
|
|
61
|
+
const westIndicesBuffer = mesh.westIndicesSouthToNorth.buffer;
|
|
62
|
+
const southIndicesBuffer = mesh.southIndicesEastToWest.buffer;
|
|
63
|
+
const eastIndicesBuffer = mesh.eastIndicesNorthToSouth.buffer;
|
|
64
|
+
const northIndicesBuffer = mesh.northIndicesWestToEast.buffer;
|
|
65
|
+
transferableObjects.push(
|
|
66
|
+
verticesBuffer,
|
|
67
|
+
indicesBuffer,
|
|
68
|
+
westIndicesBuffer,
|
|
69
|
+
southIndicesBuffer,
|
|
70
|
+
eastIndicesBuffer,
|
|
71
|
+
northIndicesBuffer
|
|
72
|
+
);
|
|
73
|
+
return {
|
|
74
|
+
verticesBuffer,
|
|
75
|
+
indicesBuffer,
|
|
76
|
+
vertexCountWithoutSkirts: mesh.vertexCountWithoutSkirts,
|
|
77
|
+
indexCountWithoutSkirts: mesh.indexCountWithoutSkirts,
|
|
78
|
+
encoding: mesh.encoding,
|
|
79
|
+
westIndicesBuffer,
|
|
80
|
+
southIndicesBuffer,
|
|
81
|
+
eastIndicesBuffer,
|
|
82
|
+
northIndicesBuffer
|
|
83
|
+
};
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
var createVerticesFromCesium3DTilesTerrain_default = createTaskProcessorWorker_default(
|
|
87
|
+
createVerticesFromCesium3DTilesTerrain
|
|
88
|
+
);
|
|
89
|
+
export {
|
|
90
|
+
createVerticesFromCesium3DTilesTerrain_default as default
|
|
91
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.136.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,49 +26,54 @@
|
|
|
26
26
|
import {
|
|
27
27
|
EllipsoidalOccluder_default,
|
|
28
28
|
TerrainEncoding_default
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MKMZHRB3.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2AM4E2WD.js";
|
|
33
33
|
import {
|
|
34
34
|
WebMercatorProjection_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-H6Q7E4BQ.js";
|
|
36
36
|
import {
|
|
37
37
|
OrientedBoundingBox_default
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-YF2NVO5B.js";
|
|
39
|
+
import "./chunk-RXZDTDIY.js";
|
|
40
|
+
import "./chunk-Z6DFT4D3.js";
|
|
41
41
|
import {
|
|
42
42
|
AxisAlignedBoundingBox_default
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-OXFU5HNU.js";
|
|
44
|
+
import "./chunk-DMEFNTUV.js";
|
|
45
|
+
import "./chunk-4BHWJWS3.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-GDU4RZSZ.js";
|
|
49
|
+
import "./chunk-23T2IPHV.js";
|
|
49
50
|
import {
|
|
50
|
-
Matrix4_default,
|
|
51
51
|
Rectangle_default,
|
|
52
52
|
Transforms_default
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import
|
|
53
|
+
} from "./chunk-AOIO5VUS.js";
|
|
54
|
+
import {
|
|
55
|
+
Matrix4_default
|
|
56
|
+
} from "./chunk-W4XUEDU5.js";
|
|
57
|
+
import "./chunk-I4REFVXB.js";
|
|
58
|
+
import "./chunk-YSYSXSHF.js";
|
|
59
|
+
import {
|
|
60
|
+
RuntimeError_default
|
|
61
|
+
} from "./chunk-5JKH4AMT.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-TDSVSW5A.js";
|
|
61
67
|
import {
|
|
62
|
-
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-XJVRYJVZ.js";
|
|
68
|
+
Cartesian3_default
|
|
69
|
+
} from "./chunk-3YTMGEXW.js";
|
|
65
70
|
import {
|
|
66
|
-
|
|
67
|
-
} from "./chunk-
|
|
68
|
-
import "./chunk-
|
|
71
|
+
Math_default
|
|
72
|
+
} from "./chunk-IL5F6WEE.js";
|
|
73
|
+
import "./chunk-QEANVUGT.js";
|
|
69
74
|
import {
|
|
70
75
|
defined_default
|
|
71
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-2RCIRXNI.js";
|
|
72
77
|
|
|
73
78
|
// packages/engine/Source/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js
|
|
74
79
|
var sizeOfUint16 = Uint16Array.BYTES_PER_ELEMENT;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.136.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -26,52 +26,57 @@
|
|
|
26
26
|
import {
|
|
27
27
|
EllipsoidalOccluder_default,
|
|
28
28
|
TerrainEncoding_default
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-MKMZHRB3.js";
|
|
30
30
|
import {
|
|
31
31
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-2AM4E2WD.js";
|
|
33
33
|
import {
|
|
34
34
|
WebMercatorProjection_default
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-H6Q7E4BQ.js";
|
|
36
36
|
import {
|
|
37
37
|
OrientedBoundingBox_default
|
|
38
|
-
} from "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-YF2NVO5B.js";
|
|
39
|
+
import "./chunk-RXZDTDIY.js";
|
|
40
|
+
import "./chunk-Z6DFT4D3.js";
|
|
41
41
|
import {
|
|
42
42
|
AxisAlignedBoundingBox_default
|
|
43
|
-
} from "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
43
|
+
} from "./chunk-OXFU5HNU.js";
|
|
44
|
+
import "./chunk-DMEFNTUV.js";
|
|
45
|
+
import "./chunk-4BHWJWS3.js";
|
|
46
46
|
import {
|
|
47
47
|
BoundingSphere_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-GDU4RZSZ.js";
|
|
49
|
+
import "./chunk-23T2IPHV.js";
|
|
49
50
|
import {
|
|
50
|
-
Matrix4_default,
|
|
51
51
|
Rectangle_default,
|
|
52
52
|
Transforms_default
|
|
53
|
-
} from "./chunk-
|
|
54
|
-
import
|
|
53
|
+
} from "./chunk-AOIO5VUS.js";
|
|
54
|
+
import {
|
|
55
|
+
Matrix4_default
|
|
56
|
+
} from "./chunk-W4XUEDU5.js";
|
|
57
|
+
import "./chunk-I4REFVXB.js";
|
|
58
|
+
import "./chunk-YSYSXSHF.js";
|
|
59
|
+
import {
|
|
60
|
+
RuntimeError_default
|
|
61
|
+
} from "./chunk-5JKH4AMT.js";
|
|
55
62
|
import {
|
|
56
63
|
Cartesian2_default,
|
|
57
|
-
Cartesian3_default,
|
|
58
64
|
Ellipsoid_default
|
|
59
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-TDSVSW5A.js";
|
|
60
66
|
import {
|
|
61
|
-
|
|
62
|
-
} from "./chunk-
|
|
63
|
-
import "./chunk-XJVRYJVZ.js";
|
|
67
|
+
Cartesian3_default
|
|
68
|
+
} from "./chunk-3YTMGEXW.js";
|
|
64
69
|
import {
|
|
65
|
-
|
|
66
|
-
} from "./chunk-
|
|
70
|
+
Math_default
|
|
71
|
+
} from "./chunk-IL5F6WEE.js";
|
|
67
72
|
import {
|
|
68
73
|
DeveloperError_default
|
|
69
|
-
} from "./chunk-
|
|
74
|
+
} from "./chunk-QEANVUGT.js";
|
|
70
75
|
import {
|
|
71
76
|
__commonJS,
|
|
72
77
|
__toESM,
|
|
73
78
|
defined_default
|
|
74
|
-
} from "./chunk-
|
|
79
|
+
} from "./chunk-2RCIRXNI.js";
|
|
75
80
|
|
|
76
81
|
// node_modules/lerc/LercDecode.js
|
|
77
82
|
var require_LercDecode = __commonJS({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.136.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -23,306 +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-HXKUEOOD.js";
|
|
26
29
|
import {
|
|
27
30
|
EllipsoidalOccluder_default,
|
|
28
31
|
TerrainEncoding_default
|
|
29
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-MKMZHRB3.js";
|
|
30
33
|
import {
|
|
31
34
|
createTaskProcessorWorker_default
|
|
32
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-2AM4E2WD.js";
|
|
33
36
|
import {
|
|
34
37
|
WebMercatorProjection_default
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
38
|
+
} from "./chunk-H6Q7E4BQ.js";
|
|
39
|
+
import "./chunk-RXZDTDIY.js";
|
|
37
40
|
import {
|
|
38
41
|
AxisAlignedBoundingBox_default
|
|
39
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-OXFU5HNU.js";
|
|
40
43
|
import {
|
|
41
44
|
IndexDatatype_default
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
45
|
+
} from "./chunk-A6YFUGJO.js";
|
|
46
|
+
import "./chunk-GDU4RZSZ.js";
|
|
47
|
+
import "./chunk-23T2IPHV.js";
|
|
44
48
|
import {
|
|
45
|
-
Matrix4_default,
|
|
46
49
|
Rectangle_default,
|
|
47
50
|
Transforms_default
|
|
48
|
-
} from "./chunk-
|
|
49
|
-
import
|
|
51
|
+
} from "./chunk-AOIO5VUS.js";
|
|
52
|
+
import {
|
|
53
|
+
Matrix4_default
|
|
54
|
+
} from "./chunk-W4XUEDU5.js";
|
|
55
|
+
import "./chunk-I4REFVXB.js";
|
|
56
|
+
import "./chunk-YSYSXSHF.js";
|
|
57
|
+
import "./chunk-5JKH4AMT.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-TDSVSW5A.js";
|
|
56
63
|
import {
|
|
57
|
-
|
|
58
|
-
} from "./chunk-
|
|
59
|
-
import "./chunk-XJVRYJVZ.js";
|
|
60
|
-
import "./chunk-FE565QHX.js";
|
|
64
|
+
Cartesian3_default
|
|
65
|
+
} from "./chunk-3YTMGEXW.js";
|
|
61
66
|
import {
|
|
62
|
-
|
|
63
|
-
} from "./chunk-
|
|
67
|
+
Math_default
|
|
68
|
+
} from "./chunk-IL5F6WEE.js";
|
|
69
|
+
import "./chunk-QEANVUGT.js";
|
|
64
70
|
import {
|
|
65
71
|
defined_default
|
|
66
|
-
} from "./chunk-
|
|
67
|
-
|
|
68
|
-
// packages/engine/Source/Core/TerrainProvider.js
|
|
69
|
-
function TerrainProvider() {
|
|
70
|
-
DeveloperError_default.throwInstantiationError();
|
|
71
|
-
}
|
|
72
|
-
Object.defineProperties(TerrainProvider.prototype, {
|
|
73
|
-
/**
|
|
74
|
-
* Gets an event that is raised when the terrain provider encounters an asynchronous error. By subscribing
|
|
75
|
-
* to the event, you will be notified of the error and can potentially recover from it. Event listeners
|
|
76
|
-
* are passed an instance of {@link TileProviderError}.
|
|
77
|
-
* @memberof TerrainProvider.prototype
|
|
78
|
-
* @type {Event<TerrainProvider.ErrorEvent>}
|
|
79
|
-
* @readonly
|
|
80
|
-
*/
|
|
81
|
-
errorEvent: {
|
|
82
|
-
get: DeveloperError_default.throwInstantiationError
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* Gets the credit to display when this terrain provider is active. Typically this is used to credit
|
|
86
|
-
* the source of the terrain.
|
|
87
|
-
* @memberof TerrainProvider.prototype
|
|
88
|
-
* @type {Credit}
|
|
89
|
-
* @readonly
|
|
90
|
-
*/
|
|
91
|
-
credit: {
|
|
92
|
-
get: DeveloperError_default.throwInstantiationError
|
|
93
|
-
},
|
|
94
|
-
/**
|
|
95
|
-
* Gets the tiling scheme used by the provider.
|
|
96
|
-
* @memberof TerrainProvider.prototype
|
|
97
|
-
* @type {TilingScheme}
|
|
98
|
-
* @readonly
|
|
99
|
-
*/
|
|
100
|
-
tilingScheme: {
|
|
101
|
-
get: DeveloperError_default.throwInstantiationError
|
|
102
|
-
},
|
|
103
|
-
/**
|
|
104
|
-
* Gets a value indicating whether or not the provider includes a water mask. The water mask
|
|
105
|
-
* indicates which areas of the globe are water rather than land, so they can be rendered
|
|
106
|
-
* as a reflective surface with animated waves.
|
|
107
|
-
* @memberof TerrainProvider.prototype
|
|
108
|
-
* @type {boolean}
|
|
109
|
-
* @readonly
|
|
110
|
-
*/
|
|
111
|
-
hasWaterMask: {
|
|
112
|
-
get: DeveloperError_default.throwInstantiationError
|
|
113
|
-
},
|
|
114
|
-
/**
|
|
115
|
-
* Gets a value indicating whether or not the requested tiles include vertex normals.
|
|
116
|
-
* @memberof TerrainProvider.prototype
|
|
117
|
-
* @type {boolean}
|
|
118
|
-
* @readonly
|
|
119
|
-
*/
|
|
120
|
-
hasVertexNormals: {
|
|
121
|
-
get: DeveloperError_default.throwInstantiationError
|
|
122
|
-
},
|
|
123
|
-
/**
|
|
124
|
-
* Gets an object that can be used to determine availability of terrain from this provider, such as
|
|
125
|
-
* at points and in rectangles. This property may be undefined if availability
|
|
126
|
-
* information is not available.
|
|
127
|
-
* @memberof TerrainProvider.prototype
|
|
128
|
-
* @type {TileAvailability|undefined}
|
|
129
|
-
* @readonly
|
|
130
|
-
*/
|
|
131
|
-
availability: {
|
|
132
|
-
get: DeveloperError_default.throwInstantiationError
|
|
133
|
-
}
|
|
134
|
-
});
|
|
135
|
-
var regularGridIndicesCache = [];
|
|
136
|
-
TerrainProvider.getRegularGridIndices = function(width, height) {
|
|
137
|
-
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
138
|
-
throw new DeveloperError_default(
|
|
139
|
-
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
140
|
-
);
|
|
141
|
-
}
|
|
142
|
-
let byWidth = regularGridIndicesCache[width];
|
|
143
|
-
if (!defined_default(byWidth)) {
|
|
144
|
-
regularGridIndicesCache[width] = byWidth = [];
|
|
145
|
-
}
|
|
146
|
-
let indices = byWidth[height];
|
|
147
|
-
if (!defined_default(indices)) {
|
|
148
|
-
if (width * height < Math_default.SIXTY_FOUR_KILOBYTES) {
|
|
149
|
-
indices = byWidth[height] = new Uint16Array(
|
|
150
|
-
(width - 1) * (height - 1) * 6
|
|
151
|
-
);
|
|
152
|
-
} else {
|
|
153
|
-
indices = byWidth[height] = new Uint32Array(
|
|
154
|
-
(width - 1) * (height - 1) * 6
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
addRegularGridIndices(width, height, indices, 0);
|
|
158
|
-
}
|
|
159
|
-
return indices;
|
|
160
|
-
};
|
|
161
|
-
var regularGridAndEdgeIndicesCache = [];
|
|
162
|
-
TerrainProvider.getRegularGridIndicesAndEdgeIndices = function(width, height) {
|
|
163
|
-
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
164
|
-
throw new DeveloperError_default(
|
|
165
|
-
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
let byWidth = regularGridAndEdgeIndicesCache[width];
|
|
169
|
-
if (!defined_default(byWidth)) {
|
|
170
|
-
regularGridAndEdgeIndicesCache[width] = byWidth = [];
|
|
171
|
-
}
|
|
172
|
-
let indicesAndEdges = byWidth[height];
|
|
173
|
-
if (!defined_default(indicesAndEdges)) {
|
|
174
|
-
const indices = TerrainProvider.getRegularGridIndices(width, height);
|
|
175
|
-
const edgeIndices = getEdgeIndices(width, height);
|
|
176
|
-
const westIndicesSouthToNorth = edgeIndices.westIndicesSouthToNorth;
|
|
177
|
-
const southIndicesEastToWest = edgeIndices.southIndicesEastToWest;
|
|
178
|
-
const eastIndicesNorthToSouth = edgeIndices.eastIndicesNorthToSouth;
|
|
179
|
-
const northIndicesWestToEast = edgeIndices.northIndicesWestToEast;
|
|
180
|
-
indicesAndEdges = byWidth[height] = {
|
|
181
|
-
indices,
|
|
182
|
-
westIndicesSouthToNorth,
|
|
183
|
-
southIndicesEastToWest,
|
|
184
|
-
eastIndicesNorthToSouth,
|
|
185
|
-
northIndicesWestToEast
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
return indicesAndEdges;
|
|
189
|
-
};
|
|
190
|
-
var regularGridAndSkirtAndEdgeIndicesCache = [];
|
|
191
|
-
TerrainProvider.getRegularGridAndSkirtIndicesAndEdgeIndices = function(width, height) {
|
|
192
|
-
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
193
|
-
throw new DeveloperError_default(
|
|
194
|
-
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
195
|
-
);
|
|
196
|
-
}
|
|
197
|
-
let byWidth = regularGridAndSkirtAndEdgeIndicesCache[width];
|
|
198
|
-
if (!defined_default(byWidth)) {
|
|
199
|
-
regularGridAndSkirtAndEdgeIndicesCache[width] = byWidth = [];
|
|
200
|
-
}
|
|
201
|
-
let indicesAndEdges = byWidth[height];
|
|
202
|
-
if (!defined_default(indicesAndEdges)) {
|
|
203
|
-
const gridVertexCount = width * height;
|
|
204
|
-
const gridIndexCount = (width - 1) * (height - 1) * 6;
|
|
205
|
-
const edgeVertexCount = width * 2 + height * 2;
|
|
206
|
-
const edgeIndexCount = Math.max(0, edgeVertexCount - 4) * 6;
|
|
207
|
-
const vertexCount = gridVertexCount + edgeVertexCount;
|
|
208
|
-
const indexCount = gridIndexCount + edgeIndexCount;
|
|
209
|
-
const edgeIndices = getEdgeIndices(width, height);
|
|
210
|
-
const westIndicesSouthToNorth = edgeIndices.westIndicesSouthToNorth;
|
|
211
|
-
const southIndicesEastToWest = edgeIndices.southIndicesEastToWest;
|
|
212
|
-
const eastIndicesNorthToSouth = edgeIndices.eastIndicesNorthToSouth;
|
|
213
|
-
const northIndicesWestToEast = edgeIndices.northIndicesWestToEast;
|
|
214
|
-
const indices = IndexDatatype_default.createTypedArray(vertexCount, indexCount);
|
|
215
|
-
addRegularGridIndices(width, height, indices, 0);
|
|
216
|
-
TerrainProvider.addSkirtIndices(
|
|
217
|
-
westIndicesSouthToNorth,
|
|
218
|
-
southIndicesEastToWest,
|
|
219
|
-
eastIndicesNorthToSouth,
|
|
220
|
-
northIndicesWestToEast,
|
|
221
|
-
gridVertexCount,
|
|
222
|
-
indices,
|
|
223
|
-
gridIndexCount
|
|
224
|
-
);
|
|
225
|
-
indicesAndEdges = byWidth[height] = {
|
|
226
|
-
indices,
|
|
227
|
-
westIndicesSouthToNorth,
|
|
228
|
-
southIndicesEastToWest,
|
|
229
|
-
eastIndicesNorthToSouth,
|
|
230
|
-
northIndicesWestToEast,
|
|
231
|
-
indexCountWithoutSkirts: gridIndexCount
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
return indicesAndEdges;
|
|
235
|
-
};
|
|
236
|
-
TerrainProvider.addSkirtIndices = function(westIndicesSouthToNorth, southIndicesEastToWest, eastIndicesNorthToSouth, northIndicesWestToEast, vertexCount, indices, offset) {
|
|
237
|
-
let vertexIndex = vertexCount;
|
|
238
|
-
offset = addSkirtIndices(
|
|
239
|
-
westIndicesSouthToNorth,
|
|
240
|
-
vertexIndex,
|
|
241
|
-
indices,
|
|
242
|
-
offset
|
|
243
|
-
);
|
|
244
|
-
vertexIndex += westIndicesSouthToNorth.length;
|
|
245
|
-
offset = addSkirtIndices(
|
|
246
|
-
southIndicesEastToWest,
|
|
247
|
-
vertexIndex,
|
|
248
|
-
indices,
|
|
249
|
-
offset
|
|
250
|
-
);
|
|
251
|
-
vertexIndex += southIndicesEastToWest.length;
|
|
252
|
-
offset = addSkirtIndices(
|
|
253
|
-
eastIndicesNorthToSouth,
|
|
254
|
-
vertexIndex,
|
|
255
|
-
indices,
|
|
256
|
-
offset
|
|
257
|
-
);
|
|
258
|
-
vertexIndex += eastIndicesNorthToSouth.length;
|
|
259
|
-
addSkirtIndices(northIndicesWestToEast, vertexIndex, indices, offset);
|
|
260
|
-
};
|
|
261
|
-
function getEdgeIndices(width, height) {
|
|
262
|
-
const westIndicesSouthToNorth = new Array(height);
|
|
263
|
-
const southIndicesEastToWest = new Array(width);
|
|
264
|
-
const eastIndicesNorthToSouth = new Array(height);
|
|
265
|
-
const northIndicesWestToEast = new Array(width);
|
|
266
|
-
let i;
|
|
267
|
-
for (i = 0; i < width; ++i) {
|
|
268
|
-
northIndicesWestToEast[i] = i;
|
|
269
|
-
southIndicesEastToWest[i] = width * height - 1 - i;
|
|
270
|
-
}
|
|
271
|
-
for (i = 0; i < height; ++i) {
|
|
272
|
-
eastIndicesNorthToSouth[i] = (i + 1) * width - 1;
|
|
273
|
-
westIndicesSouthToNorth[i] = (height - i - 1) * width;
|
|
274
|
-
}
|
|
275
|
-
return {
|
|
276
|
-
westIndicesSouthToNorth,
|
|
277
|
-
southIndicesEastToWest,
|
|
278
|
-
eastIndicesNorthToSouth,
|
|
279
|
-
northIndicesWestToEast
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
function addRegularGridIndices(width, height, indices, offset) {
|
|
283
|
-
let index = 0;
|
|
284
|
-
for (let j = 0; j < height - 1; ++j) {
|
|
285
|
-
for (let i = 0; i < width - 1; ++i) {
|
|
286
|
-
const upperLeft = index;
|
|
287
|
-
const lowerLeft = upperLeft + width;
|
|
288
|
-
const lowerRight = lowerLeft + 1;
|
|
289
|
-
const upperRight = upperLeft + 1;
|
|
290
|
-
indices[offset++] = upperLeft;
|
|
291
|
-
indices[offset++] = lowerLeft;
|
|
292
|
-
indices[offset++] = upperRight;
|
|
293
|
-
indices[offset++] = upperRight;
|
|
294
|
-
indices[offset++] = lowerLeft;
|
|
295
|
-
indices[offset++] = lowerRight;
|
|
296
|
-
++index;
|
|
297
|
-
}
|
|
298
|
-
++index;
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
function addSkirtIndices(edgeIndices, vertexIndex, indices, offset) {
|
|
302
|
-
let previousIndex = edgeIndices[0];
|
|
303
|
-
const length = edgeIndices.length;
|
|
304
|
-
for (let i = 1; i < length; ++i) {
|
|
305
|
-
const index = edgeIndices[i];
|
|
306
|
-
indices[offset++] = previousIndex;
|
|
307
|
-
indices[offset++] = index;
|
|
308
|
-
indices[offset++] = vertexIndex;
|
|
309
|
-
indices[offset++] = vertexIndex;
|
|
310
|
-
indices[offset++] = index;
|
|
311
|
-
indices[offset++] = vertexIndex + 1;
|
|
312
|
-
previousIndex = index;
|
|
313
|
-
++vertexIndex;
|
|
314
|
-
}
|
|
315
|
-
return offset;
|
|
316
|
-
}
|
|
317
|
-
TerrainProvider.heightmapTerrainQuality = 0.25;
|
|
318
|
-
TerrainProvider.getEstimatedLevelZeroGeometricErrorForAHeightmap = function(ellipsoid, tileImageWidth, numberOfTilesAtLevelZero) {
|
|
319
|
-
return ellipsoid.maximumRadius * 2 * Math.PI * TerrainProvider.heightmapTerrainQuality / (tileImageWidth * numberOfTilesAtLevelZero);
|
|
320
|
-
};
|
|
321
|
-
TerrainProvider.prototype.requestTileGeometry = DeveloperError_default.throwInstantiationError;
|
|
322
|
-
TerrainProvider.prototype.getLevelMaximumGeometricError = DeveloperError_default.throwInstantiationError;
|
|
323
|
-
TerrainProvider.prototype.getTileDataAvailable = DeveloperError_default.throwInstantiationError;
|
|
324
|
-
TerrainProvider.prototype.loadTileDataAvailability = DeveloperError_default.throwInstantiationError;
|
|
325
|
-
var TerrainProvider_default = TerrainProvider;
|
|
72
|
+
} from "./chunk-2RCIRXNI.js";
|
|
326
73
|
|
|
327
74
|
// packages/engine/Source/Workers/createVerticesFromQuantizedTerrainMesh.js
|
|
328
75
|
var maxShort = 32767;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @license
|
|
3
3
|
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 1.
|
|
4
|
+
* Version 1.136.0
|
|
5
5
|
*
|
|
6
6
|
* Copyright 2011-2022 Cesium Contributors
|
|
7
7
|
*
|
|
@@ -25,50 +25,54 @@
|
|
|
25
25
|
|
|
26
26
|
import {
|
|
27
27
|
WallGeometryLibrary_default
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-Y4ALZ4SS.js";
|
|
29
|
+
import "./chunk-KKGD7HAW.js";
|
|
30
|
+
import "./chunk-UG2DPFOL.js";
|
|
31
31
|
import {
|
|
32
32
|
VertexFormat_default
|
|
33
|
-
} from "./chunk-
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
33
|
+
} from "./chunk-QUAH3XOT.js";
|
|
34
|
+
import "./chunk-AJYWXC6I.js";
|
|
35
|
+
import "./chunk-QFBCIX7J.js";
|
|
36
|
+
import "./chunk-DMEFNTUV.js";
|
|
37
|
+
import "./chunk-4BHWJWS3.js";
|
|
38
38
|
import {
|
|
39
39
|
IndexDatatype_default
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-A6YFUGJO.js";
|
|
41
41
|
import {
|
|
42
42
|
GeometryAttributes_default
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-KROSQJUA.js";
|
|
44
44
|
import {
|
|
45
45
|
GeometryAttribute_default,
|
|
46
46
|
Geometry_default,
|
|
47
47
|
PrimitiveType_default
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-CW7W27IZ.js";
|
|
49
49
|
import {
|
|
50
50
|
BoundingSphere_default
|
|
51
|
-
} from "./chunk-
|
|
52
|
-
import "./chunk-
|
|
51
|
+
} from "./chunk-GDU4RZSZ.js";
|
|
52
|
+
import "./chunk-23T2IPHV.js";
|
|
53
|
+
import "./chunk-AOIO5VUS.js";
|
|
54
|
+
import "./chunk-W4XUEDU5.js";
|
|
53
55
|
import {
|
|
54
56
|
ComponentDatatype_default
|
|
55
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-I4REFVXB.js";
|
|
58
|
+
import "./chunk-YSYSXSHF.js";
|
|
59
|
+
import "./chunk-5JKH4AMT.js";
|
|
60
|
+
import {
|
|
61
|
+
Ellipsoid_default
|
|
62
|
+
} from "./chunk-TDSVSW5A.js";
|
|
56
63
|
import {
|
|
57
64
|
Cartesian3_default,
|
|
58
|
-
Ellipsoid_default,
|
|
59
65
|
Frozen_default
|
|
60
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-3YTMGEXW.js";
|
|
61
67
|
import {
|
|
62
68
|
Math_default
|
|
63
|
-
} from "./chunk-
|
|
64
|
-
import "./chunk-XJVRYJVZ.js";
|
|
65
|
-
import "./chunk-FE565QHX.js";
|
|
69
|
+
} from "./chunk-IL5F6WEE.js";
|
|
66
70
|
import {
|
|
67
71
|
DeveloperError_default
|
|
68
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-QEANVUGT.js";
|
|
69
73
|
import {
|
|
70
74
|
defined_default
|
|
71
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-2RCIRXNI.js";
|
|
72
76
|
|
|
73
77
|
// packages/engine/Source/Core/WallGeometry.js
|
|
74
78
|
var scratchCartesian3Position1 = new Cartesian3_default();
|