@cesium/engine 26.1.0 → 26.2.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 +586 -480
- package/Build/Workers/chunk-27FWRTJI.js +454 -0
- package/Build/Workers/chunk-2H5264K7.js +1284 -0
- package/Build/Workers/chunk-2H73KDBM.js +511 -0
- package/Build/Workers/chunk-2RGJPWQX.js +1284 -0
- package/Build/Workers/chunk-2Z4ZLVOD.js +352 -0
- package/Build/Workers/chunk-2ZKH2QZB.js +387 -0
- package/Build/Workers/chunk-36NI5E6W.js +3820 -0
- package/Build/Workers/chunk-37SW7SYS.js +778 -0
- package/Build/Workers/chunk-3GHVJ3SO.js +455 -0
- package/Build/Workers/chunk-3LB4UVPU.js +387 -0
- package/Build/Workers/chunk-3PONLKEL.js +778 -0
- package/Build/Workers/chunk-3PSS3T43.js +102 -0
- package/Build/Workers/chunk-3QR662HH.js +3820 -0
- package/Build/Workers/chunk-3SX2WYSO.js +973 -0
- package/Build/Workers/chunk-3UDN6LYX.js +476 -0
- package/Build/Workers/chunk-47MCBSXI.js +9237 -0
- package/Build/Workers/chunk-4E626OCE.js +1067 -0
- package/Build/Workers/chunk-4NW2MJKH.js +455 -0
- package/Build/Workers/chunk-52YK5BSN.js +198 -0
- package/Build/Workers/chunk-5RNAQZK6.js +9234 -0
- package/Build/Workers/chunk-5YPQBFRD.js +519 -0
- package/Build/Workers/chunk-6FHT43QR.js +140 -0
- package/Build/Workers/chunk-6FZDPMTO.js +455 -0
- package/Build/Workers/chunk-6R5X2GUA.js +1284 -0
- package/Build/Workers/chunk-7A2OGDHT.js +305 -0
- package/Build/Workers/chunk-7CGEQUM2.js +305 -0
- package/Build/Workers/chunk-7I325HV6.js +1344 -0
- package/Build/Workers/chunk-7MM3N2VE.js +1067 -0
- package/Build/Workers/chunk-7TKLTCZW.js +219 -0
- package/Build/Workers/chunk-7UUKBDH6.js +1054 -0
- package/Build/Workers/chunk-7W6DUHAB.js +693 -0
- package/Build/Workers/chunk-7XM5JK5F.js +162 -0
- package/Build/Workers/chunk-7YG3ND3P.js +454 -0
- package/Build/Workers/chunk-A62YI6S6.js +305 -0
- package/Build/Workers/chunk-A7TTWVTF.js +2719 -0
- package/Build/Workers/chunk-ACTVJHSP.js +519 -0
- package/Build/Workers/chunk-ADX3CBKD.js +9234 -0
- package/Build/Workers/chunk-AF7DTMJ7.js +398 -0
- package/Build/Workers/chunk-AJSFRY4U.js +1344 -0
- package/Build/Workers/chunk-ARZICEEP.js +301 -0
- package/Build/Workers/chunk-B3QHNA4A.js +147 -0
- package/Build/Workers/chunk-BKPQFCXH.js +511 -0
- package/Build/Workers/chunk-BSPCI2LO.js +959 -0
- package/Build/Workers/chunk-BUJWSX5S.js +301 -0
- package/Build/Workers/chunk-C7QDUNI3.js +138 -0
- package/Build/Workers/chunk-CIV5DJOQ.js +778 -0
- package/Build/Workers/chunk-CQNFIAZU.js +56 -0
- package/Build/Workers/chunk-CRCGE4J4.js +9237 -0
- package/Build/Workers/chunk-CUTRKXUQ.js +288 -0
- package/Build/Workers/chunk-D6AY775A.js +3201 -0
- package/Build/Workers/chunk-DSGLDRTI.js +278 -0
- package/Build/Workers/chunk-DZBQUULR.js +138 -0
- package/Build/Workers/chunk-DZUFEE4L.js +140 -0
- package/Build/Workers/chunk-E2NKV5YT.js +3820 -0
- package/Build/Workers/chunk-EB3Y5P3A.js +368 -0
- package/Build/Workers/chunk-ELE6SC2C.js +837 -0
- package/Build/Workers/chunk-EOWDZN5S.js +288 -0
- package/Build/Workers/chunk-ERKUET22.js +3201 -0
- package/Build/Workers/chunk-EZGQPOIG.js +162 -0
- package/Build/Workers/chunk-F2IMBMZY.js +241 -0
- package/Build/Workers/chunk-F4CSNRZO.js +219 -0
- package/Build/Workers/chunk-FBP4DUQJ.js +693 -0
- package/Build/Workers/chunk-FJWZMGOQ.js +1992 -0
- package/Build/Workers/chunk-FQ42MT7M.js +58 -0
- package/Build/Workers/chunk-FU4BGABC.js +398 -0
- package/Build/Workers/chunk-FX3VEAIU.js +2719 -0
- package/Build/Workers/chunk-GGNWQWSB.js +301 -0
- package/Build/Workers/chunk-GHXVQVUM.js +1344 -0
- package/Build/Workers/chunk-GNKXEN4C.js +682 -0
- package/Build/Workers/chunk-GVA7XQI2.js +368 -0
- package/Build/Workers/chunk-GXDHRC4J.js +1344 -0
- package/Build/Workers/chunk-GYSYP6PC.js +1067 -0
- package/Build/Workers/chunk-H2WCFXLP.js +241 -0
- package/Build/Workers/chunk-HDL4HOXZ.js +778 -0
- package/Build/Workers/chunk-HLW2ZRVK.js +368 -0
- package/Build/Workers/chunk-HT6FASOT.js +973 -0
- package/Build/Workers/chunk-I74ZH5LK.js +959 -0
- package/Build/Workers/chunk-IDVHUDZT.js +352 -0
- package/Build/Workers/chunk-IJZJMIUY.js +789 -0
- package/Build/Workers/chunk-IMBVP57H.js +44 -0
- package/Build/Workers/chunk-IOO7Z2AV.js +57 -0
- package/Build/Workers/chunk-IUIFLOYO.js +44 -0
- package/Build/Workers/chunk-J73T2VOY.js +171 -0
- package/Build/Workers/chunk-JALGQYDY.js +288 -0
- package/Build/Workers/chunk-JXYLJCTC.js +124 -0
- package/Build/Workers/chunk-K27QOAW6.js +97 -0
- package/Build/Workers/chunk-KMV25A63.js +789 -0
- package/Build/Workers/chunk-KP5QD7WU.js +693 -0
- package/Build/Workers/chunk-KZWFWJML.js +2719 -0
- package/Build/Workers/chunk-LCXRRALY.js +387 -0
- package/Build/Workers/chunk-LDRQSYBN.js +1800 -0
- package/Build/Workers/chunk-M4JZ6TSZ.js +959 -0
- package/Build/Workers/chunk-M6QKXVAU.js +1054 -0
- package/Build/Workers/chunk-MAAHFYPC.js +198 -0
- package/Build/Workers/chunk-MCJDRDJQ.js +102 -0
- package/Build/Workers/chunk-MEENMEAH.js +198 -0
- package/Build/Workers/chunk-NAWU5RF4.js +162 -0
- package/Build/Workers/chunk-NCL22ZUX.js +56 -0
- package/Build/Workers/chunk-NEFDMMLY.js +241 -0
- package/Build/Workers/chunk-NJVBJG63.js +124 -0
- package/Build/Workers/chunk-NLLCQBX3.js +73 -0
- package/Build/Workers/chunk-NSKZ6SBK.js +1483 -0
- package/Build/Workers/chunk-NXGQBQWE.js +837 -0
- package/Build/Workers/chunk-O3DKEX7Q.js +352 -0
- package/Build/Workers/chunk-O3XFXGPZ.js +476 -0
- package/Build/Workers/chunk-OA6MYL2C.js +837 -0
- package/Build/Workers/chunk-OHP4ELS7.js +198 -0
- package/Build/Workers/chunk-OZGPS7FB.js +138 -0
- package/Build/Workers/chunk-PCL3Y7H5.js +82 -0
- package/Build/Workers/chunk-PD4GK4EM.js +57 -0
- package/Build/Workers/chunk-PEDU33QG.js +2342 -0
- package/Build/Workers/chunk-PRWUMCXF.js +682 -0
- package/Build/Workers/chunk-PVTSNNVI.js +288 -0
- package/Build/Workers/chunk-QFSSCLLZ.js +973 -0
- package/Build/Workers/chunk-QHPZH22L.js +241 -0
- package/Build/Workers/chunk-QIZDWZK6.js +301 -0
- package/Build/Workers/chunk-QV6DG2YX.js +1483 -0
- package/Build/Workers/chunk-R4K7EHOU.js +171 -0
- package/Build/Workers/chunk-R7JGHDD6.js +789 -0
- package/Build/Workers/chunk-RASQEYD4.js +1483 -0
- package/Build/Workers/chunk-RW6ITX7Q.js +3820 -0
- package/Build/Workers/chunk-RYSQVJR6.js +398 -0
- package/Build/Workers/chunk-S6RJU5NM.js +1054 -0
- package/Build/Workers/chunk-SA2A2AN5.js +2342 -0
- package/Build/Workers/chunk-SDFHDNS4.js +147 -0
- package/Build/Workers/chunk-SJYSIOEM.js +414 -0
- package/Build/Workers/chunk-SMTGMFBL.js +97 -0
- package/Build/Workers/chunk-SXSP3JHS.js +38 -0
- package/Build/Workers/chunk-TN35HP5B.js +1067 -0
- package/Build/Workers/chunk-TNWKJNUZ.js +454 -0
- package/Build/Workers/chunk-TOAF47AQ.js +102 -0
- package/Build/Workers/chunk-TQ4QCOXT.js +2719 -0
- package/Build/Workers/chunk-TSDSILQB.js +124 -0
- package/Build/Workers/chunk-U5LV3F3Z.js +1054 -0
- package/Build/Workers/chunk-UAZUP4I5.js +1992 -0
- package/Build/Workers/chunk-UF46SZEZ.js +789 -0
- package/Build/Workers/chunk-UNRTMCET.js +398 -0
- package/Build/Workers/chunk-UTB7U3O6.js +1992 -0
- package/Build/Workers/chunk-V46YGZE6.js +352 -0
- package/Build/Workers/chunk-VDGOCROW.js +57 -0
- package/Build/Workers/chunk-VFWSSBPT.js +511 -0
- package/Build/Workers/chunk-VVYMXI3I.js +1284 -0
- package/Build/Workers/chunk-VXWHPYQM.js +837 -0
- package/Build/Workers/chunk-VXYUBRSB.js +219 -0
- package/Build/Workers/chunk-VZLDLEWI.js +387 -0
- package/Build/Workers/chunk-W5OCKMPJ.js +101 -0
- package/Build/Workers/chunk-WN3F4CVG.js +3201 -0
- package/Build/Workers/chunk-WPRUWXGV.js +693 -0
- package/Build/Workers/chunk-WTO2ERBP.js +414 -0
- package/Build/Workers/chunk-WVHMDVG4.js +959 -0
- package/Build/Workers/chunk-XCBZVTIV.js +280 -0
- package/Build/Workers/chunk-XGA23TAX.js +73 -0
- package/Build/Workers/chunk-XLQZNQ4Z.js +163 -0
- package/Build/Workers/chunk-XQH66YJC.js +147 -0
- package/Build/Workers/chunk-XTA7BXJG.js +682 -0
- package/Build/Workers/chunk-XTIDAFRS.js +476 -0
- package/Build/Workers/chunk-XUEDWBUD.js +682 -0
- package/Build/Workers/chunk-XYFLRH3H.js +124 -0
- package/Build/Workers/chunk-Y7JRTRTO.js +305 -0
- package/Build/Workers/chunk-Y7QSMDCJ.js +352 -0
- package/Build/Workers/chunk-YCB5TYTR.js +1483 -0
- package/Build/Workers/chunk-YEYOSTJX.js +219 -0
- package/Build/Workers/chunk-YGFVAGYF.js +630 -0
- package/Build/Workers/chunk-YIIACKQO.js +368 -0
- package/Build/Workers/chunk-YJGSP6PE.js +511 -0
- package/Build/Workers/chunk-Z4LR5EHE.js +454 -0
- package/Build/Workers/chunk-Z66EVE2A.js +44 -0
- package/Build/Workers/chunk-ZHIHHHTB.js +414 -0
- package/Build/Workers/chunk-ZNWHFSLE.js +171 -0
- package/Build/Workers/chunk-ZQLZG4IN.js +2342 -0
- package/Build/Workers/chunk-ZRTSMUZ2.js +414 -0
- package/Build/Workers/chunk-ZZUVT5BM.js +476 -0
- package/Build/Workers/combineGeometry.js +16 -16
- package/Build/Workers/createBoxGeometry.js +10 -10
- package/Build/Workers/createBoxOutlineGeometry.js +8 -8
- package/Build/Workers/createCircleGeometry.js +18 -18
- package/Build/Workers/createCircleOutlineGeometry.js +11 -11
- package/Build/Workers/createCoplanarPolygonGeometry.js +27 -27
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +23 -23
- package/Build/Workers/createCorridorGeometry.js +23 -25
- package/Build/Workers/createCorridorOutlineGeometry.js +21 -23
- package/Build/Workers/createCylinderGeometry.js +12 -12
- package/Build/Workers/createCylinderOutlineGeometry.js +10 -10
- package/Build/Workers/createEllipseGeometry.js +18 -18
- package/Build/Workers/createEllipseOutlineGeometry.js +11 -11
- package/Build/Workers/createEllipsoidGeometry.js +11 -11
- package/Build/Workers/createEllipsoidOutlineGeometry.js +10 -10
- package/Build/Workers/createFrustumGeometry.js +11 -11
- package/Build/Workers/createFrustumOutlineGeometry.js +11 -11
- package/Build/Workers/createGeometry.js +16 -16
- package/Build/Workers/createGroundPolylineGeometry.js +16 -16
- package/Build/Workers/createPlaneGeometry.js +9 -9
- package/Build/Workers/createPlaneOutlineGeometry.js +8 -8
- package/Build/Workers/createPolygonGeometry.js +25 -25
- package/Build/Workers/createPolygonOutlineGeometry.js +22 -22
- package/Build/Workers/createPolylineGeometry.js +18 -18
- package/Build/Workers/createPolylineVolumeGeometry.js +24 -24
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +20 -20
- package/Build/Workers/createRectangleGeometry.js +19 -19
- package/Build/Workers/createRectangleOutlineGeometry.js +13 -13
- package/Build/Workers/createSimplePolylineGeometry.js +16 -16
- package/Build/Workers/createSphereGeometry.js +11 -11
- package/Build/Workers/createSphereOutlineGeometry.js +10 -10
- package/Build/Workers/createVectorTileClampedPolylines.js +7 -7
- package/Build/Workers/createVectorTileGeometries.js +15 -15
- package/Build/Workers/createVectorTilePoints.js +6 -6
- package/Build/Workers/createVectorTilePolygons.js +14 -14
- package/Build/Workers/createVectorTilePolylines.js +7 -7
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +17 -17
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +14 -14
- package/Build/Workers/createVerticesFromHeightmap.js +14 -14
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +12 -12
- package/Build/Workers/createWallGeometry.js +17 -17
- package/Build/Workers/createWallOutlineGeometry.js +17 -17
- package/Build/Workers/decodeDraco.js +2 -2
- package/Build/Workers/decodeI3S.js +5 -5
- package/Build/Workers/incrementallyBuildTerrainPicker.js +4 -4
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +14 -14
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +17 -17
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +1 -5
- package/Source/Core/BoundingSphere.js +0 -3
- package/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js +3 -4
- package/Source/Core/CoplanarPolygonGeometry.js +2 -2
- package/Source/Core/CorridorGeometry.js +2 -4
- package/Source/Core/CorridorOutlineGeometry.js +1 -3
- package/Source/Core/EarthOrientationParameters.js +2 -2
- package/Source/Core/EllipseGeometryLibrary.js +2 -2
- package/Source/Core/EllipsoidGeodesic.js +3 -3
- package/Source/Core/EllipsoidRhumbLine.js +1 -1
- package/Source/Core/GroundPolylineGeometry.js +2 -2
- package/Source/Core/Heap.js +1 -1
- package/Source/Core/HermitePolynomialApproximation.js +215 -179
- package/Source/Core/InterpolationAlgorithm.js +1 -0
- package/Source/Core/Ion.js +1 -1
- package/Source/Core/JulianDate.js +1 -1
- package/Source/Core/LagrangePolynomialApproximation.js +55 -52
- package/Source/Core/LinearApproximation.js +69 -66
- package/Source/Core/Math.js +59 -0
- package/Source/Core/Matrix2.js +2 -2
- package/Source/Core/Matrix3.js +2 -2
- package/Source/Core/OrthographicFrustum.js +1 -1
- package/Source/Core/PerspectiveFrustum.js +1 -1
- package/Source/Core/PolygonGeometry.js +2 -2
- package/Source/Core/PolygonGeometryLibrary.js +1 -1
- package/Source/Core/PolygonOutlineGeometry.js +1 -1
- package/Source/Core/PolylineGeometry.js +1 -1
- package/Source/Core/PolylineVolumeGeometryLibrary.js +1 -1
- package/Source/Core/Rectangle.js +7 -1
- package/Source/Core/RectangleOutlineGeometry.js +1 -1
- package/Source/Core/SimplePolylineGeometry.js +1 -1
- package/Source/Core/TerrainEncoding.js +2 -2
- package/Source/Core/TerrainPicker.js +179 -168
- package/Source/Core/TimeIntervalCollection.js +1 -3
- package/Source/Core/Tipsify.js +1 -1
- package/Source/Core/Transforms.js +5 -1
- package/Source/Core/VectorPipeline.js +1117 -0
- package/Source/Core/VectorProvider.js +429 -0
- package/Source/Core/WallOutlineGeometry.js +1 -1
- package/Source/Core/getTimestamp.js +4 -2
- package/Source/DataSources/CompositeEntityCollection.js +0 -1
- package/Source/DataSources/CzmlDataSource.js +2 -0
- package/Source/DataSources/DataSourceDisplay.js +1 -1
- package/Source/DataSources/GeoJsonDataSource.js +0 -1
- package/Source/DataSources/GeometryVisualizer.js +1 -1
- package/Source/DataSources/KmlDataSource.js +1 -2
- package/Source/DataSources/PolylineVisualizer.js +1 -1
- package/Source/DataSources/StaticOutlineGeometryBatch.js +1 -1
- package/Source/Renderer/AutomaticUniforms.js +23 -0
- package/Source/Renderer/Context.js +9 -3
- package/Source/Renderer/DrawCommand.js +22 -0
- package/Source/Renderer/Framebuffer.js +4 -0
- package/Source/Renderer/Pass.js +11 -10
- package/Source/Renderer/Texture.js +11 -0
- package/Source/Renderer/UniformState.js +7 -0
- package/Source/Renderer/VertexArray.js +0 -1
- package/Source/Scene/ArcGisMapServerImageryProvider.js +0 -5
- package/Source/Scene/ArcGisMapService.js +1 -1
- package/Source/Scene/Billboard.js +2 -1
- package/Source/Scene/BillboardCollection.js +7 -3
- package/Source/Scene/BufferPrimitiveCollection.js +27 -5
- package/Source/Scene/Camera.js +71 -5
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/ClippingPlaneCollection.js +2 -2
- package/Source/Scene/Controllers/Controller.js +63 -0
- package/Source/Scene/Controllers/ControllerHost.js +78 -0
- package/Source/Scene/Controllers/HybridScreenSpacePanCameraController.js +106 -0
- package/Source/Scene/Controllers/MouseButton.js +32 -0
- package/Source/Scene/Controllers/ScreenSpaceElevatorCameraController.js +295 -0
- package/Source/Scene/Controllers/ScreenSpaceInputBindings.js +154 -0
- package/Source/Scene/Controllers/ScreenSpaceMapCameraController.js +310 -0
- package/Source/Scene/Controllers/ScreenSpaceTiltOrbitCameraController.js +642 -0
- package/Source/Scene/Controllers/ScreenSpaceZoomCameraController.js +431 -0
- package/Source/Scene/Controllers/defaultPickWorldPosition.js +84 -0
- package/Source/Scene/DerivedCommand.js +94 -0
- package/Source/Scene/EdgeFramebuffer.js +1 -5
- package/Source/Scene/FrameState.js +17 -0
- package/Source/Scene/Globe.js +20 -0
- package/Source/Scene/GlobeDepth.js +27 -1
- package/Source/Scene/GlobeSurfaceShaderSet.js +12 -2
- package/Source/Scene/GlobeSurfaceTile.js +48 -10
- package/Source/Scene/GlobeSurfaceTileProvider.js +121 -3
- package/Source/Scene/GltfLoader.js +32 -3
- package/Source/Scene/GltfSpzLoader.js +1 -1
- package/Source/Scene/GltfVertexBufferLoader.js +6 -3
- package/Source/Scene/I3SDataProvider.js +1 -1
- package/Source/Scene/I3SLayer.js +1 -1
- package/Source/Scene/I3SNode.js +2 -2
- package/Source/Scene/ImageryLayerCollection.js +188 -4
- package/Source/Scene/IonImageryProvider.js +1 -5
- package/Source/Scene/Label.js +4 -4
- package/Source/Scene/LabelCollection.js +1 -1
- package/Source/Scene/MVTDataProvider.js +2 -0
- package/Source/Scene/Model/B3dmLoader.js +1 -2
- package/Source/Scene/Model/EdgeVisibilityPipelineStage.js +10 -8
- package/Source/Scene/Model/I3dmLoader.js +1 -1
- package/Source/Scene/Model/InstancingPipelineStage.js +4 -7
- package/Source/Scene/Model/MaterialPipelineStage.js +124 -1
- package/Source/Scene/Model/Model.js +8 -10
- package/Source/Scene/Model/ModelClippingPlanesPipelineStage.js +28 -1
- package/Source/Scene/Model/ModelDrawCommand.js +160 -16
- package/Source/Scene/Model/ModelDrawCommands.js +4 -0
- package/Source/Scene/Model/ModelSceneGraph.js +21 -0
- package/Source/Scene/Model/PickingPipelineStage.js +29 -0
- package/Source/Scene/Model/PrimitiveRenderResources.js +24 -0
- package/Source/Scene/ModelComponents.js +71 -0
- package/Source/Scene/Picking.js +16 -5
- package/Source/Scene/PlanarFillIdFramebuffer.js +172 -0
- package/Source/Scene/PntsParser.js +0 -1
- package/Source/Scene/PolylineCollection.js +1 -1
- package/Source/Scene/PostProcessStage.js +4 -2
- package/Source/Scene/ResourceCache.js +7 -4
- package/Source/Scene/ResourceCacheKey.js +16 -13
- package/Source/Scene/Scene.js +202 -5
- package/Source/Scene/ScreenSpaceCameraController.js +1 -2
- package/Source/Scene/ShadowMap.js +9 -3
- package/Source/Scene/ShadowMapShader.js +50 -2
- package/Source/Scene/SnapFramebuffer.js +121 -0
- package/Source/Scene/Snapping.js +184 -0
- package/Source/Scene/TerrainFillMesh.js +3 -2
- package/Source/Scene/UrlTemplate3DTilesDataProvider.js +1 -1
- package/Source/Scene/Vector3DTileContent.js +2 -3
- package/Source/Scene/VectorGltf3DTileContent.js +23 -3
- package/Source/Scene/View.js +10 -8
- package/Source/Scene/VoxelTraversal.js +1 -1
- package/Source/Scene/createElevationBandMaterial.js +1 -1
- package/Source/Scene/renderBufferPointCollection.js +1 -2
- package/Source/Scene/renderBufferPolygonCollection.js +1 -2
- package/Source/Scene/renderBufferPolylineCollection.js +1 -2
- 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/passCesium3DTilePlanarFillId.glsl +9 -0
- package/Source/Shaders/Builtin/Constants/passCesium3DTilePlanarFillId.js +11 -0
- package/Source/Shaders/Builtin/Constants/passClassification.glsl +1 -1
- package/Source/Shaders/Builtin/Constants/passClassification.js +1 -1
- 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/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/GlobeFS.glsl +10 -5
- package/Source/Shaders/GlobeFS.js +9 -5
- package/Source/Shaders/Materials/PolylineGlowMaterial.glsl +1 -1
- package/Source/Shaders/Materials/PolylineGlowMaterial.js +1 -1
- package/Source/Shaders/Model/MaterialStageFS.glsl +8 -2
- package/Source/Shaders/Model/MaterialStageFS.js +8 -2
- package/Source/Shaders/Model/ModelFS.glsl +105 -0
- package/Source/Shaders/Model/ModelFS.js +105 -0
- package/Source/Shaders/VectorCommon.glsl +178 -0
- package/Source/Shaders/VectorCommon.js +75 -0
- package/Source/ThirdParty/Workers/zip-web-worker.js +1 -1
- package/Source/ThirdParty/zip-module.wasm +0 -0
- package/Source/Widget/CesiumWidget.js +30 -0
- package/index.d.ts +770 -10
- package/index.js +177 -160
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.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
|
+
Frozen_default
|
|
28
|
+
} from "./chunk-ZQLZG4IN.js";
|
|
29
|
+
|
|
30
|
+
// packages/engine/Source/Core/GeometryAttributes.js
|
|
31
|
+
function GeometryAttributes(options) {
|
|
32
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
33
|
+
this.position = options.position;
|
|
34
|
+
this.normal = options.normal;
|
|
35
|
+
this.st = options.st;
|
|
36
|
+
this.bitangent = options.bitangent;
|
|
37
|
+
this.tangent = options.tangent;
|
|
38
|
+
this.color = options.color;
|
|
39
|
+
}
|
|
40
|
+
var GeometryAttributes_default = GeometryAttributes;
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
GeometryAttributes_default
|
|
44
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.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
|
+
Matrix4_default
|
|
28
|
+
} from "./chunk-D6AY775A.js";
|
|
29
|
+
import {
|
|
30
|
+
Frozen_default
|
|
31
|
+
} from "./chunk-PEDU33QG.js";
|
|
32
|
+
import {
|
|
33
|
+
DeveloperError_default
|
|
34
|
+
} from "./chunk-6YR6JBMY.js";
|
|
35
|
+
import {
|
|
36
|
+
defined_default
|
|
37
|
+
} from "./chunk-AHWAZRBV.js";
|
|
38
|
+
|
|
39
|
+
// packages/engine/Source/Core/GeometryInstance.js
|
|
40
|
+
function GeometryInstance(options) {
|
|
41
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
42
|
+
if (!defined_default(options.geometry)) {
|
|
43
|
+
throw new DeveloperError_default("options.geometry is required.");
|
|
44
|
+
}
|
|
45
|
+
this.geometry = options.geometry;
|
|
46
|
+
this.modelMatrix = Matrix4_default.clone(options.modelMatrix ?? Matrix4_default.IDENTITY);
|
|
47
|
+
this.id = options.id;
|
|
48
|
+
this.pickPrimitive = options.pickPrimitive;
|
|
49
|
+
this.attributes = options.attributes ?? {};
|
|
50
|
+
this.westHemisphereGeometry = void 0;
|
|
51
|
+
this.eastHemisphereGeometry = void 0;
|
|
52
|
+
}
|
|
53
|
+
var GeometryInstance_default = GeometryInstance;
|
|
54
|
+
|
|
55
|
+
export {
|
|
56
|
+
GeometryInstance_default
|
|
57
|
+
};
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.144.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
|
+
Frozen_default
|
|
28
|
+
} from "./chunk-SA2A2AN5.js";
|
|
29
|
+
|
|
30
|
+
// packages/engine/Source/Core/GeometryAttributes.js
|
|
31
|
+
function GeometryAttributes(options) {
|
|
32
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
33
|
+
this.position = options.position;
|
|
34
|
+
this.normal = options.normal;
|
|
35
|
+
this.st = options.st;
|
|
36
|
+
this.bitangent = options.bitangent;
|
|
37
|
+
this.tangent = options.tangent;
|
|
38
|
+
this.color = options.color;
|
|
39
|
+
}
|
|
40
|
+
var GeometryAttributes_default = GeometryAttributes;
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
GeometryAttributes_default
|
|
44
|
+
};
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.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
|
+
Cartesian4_default,
|
|
28
|
+
Matrix4_default
|
|
29
|
+
} from "./chunk-WN3F4CVG.js";
|
|
30
|
+
import {
|
|
31
|
+
Cartesian3_default
|
|
32
|
+
} from "./chunk-ZQLZG4IN.js";
|
|
33
|
+
import {
|
|
34
|
+
Math_default
|
|
35
|
+
} from "./chunk-5YPQBFRD.js";
|
|
36
|
+
import {
|
|
37
|
+
Check_default,
|
|
38
|
+
DeveloperError_default
|
|
39
|
+
} from "./chunk-6YR6JBMY.js";
|
|
40
|
+
import {
|
|
41
|
+
defined_default
|
|
42
|
+
} from "./chunk-AHWAZRBV.js";
|
|
43
|
+
|
|
44
|
+
// packages/engine/Source/Core/Plane.js
|
|
45
|
+
function Plane(normal, distance) {
|
|
46
|
+
Check_default.typeOf.object("normal", normal);
|
|
47
|
+
if (!Math_default.equalsEpsilon(
|
|
48
|
+
Cartesian3_default.magnitude(normal),
|
|
49
|
+
1,
|
|
50
|
+
Math_default.EPSILON6
|
|
51
|
+
)) {
|
|
52
|
+
throw new DeveloperError_default("normal must be normalized.");
|
|
53
|
+
}
|
|
54
|
+
Check_default.typeOf.number("distance", distance);
|
|
55
|
+
this.normal = Cartesian3_default.clone(normal);
|
|
56
|
+
this.distance = distance;
|
|
57
|
+
}
|
|
58
|
+
Plane.fromPointNormal = function(point, normal, result) {
|
|
59
|
+
Check_default.typeOf.object("point", point);
|
|
60
|
+
Check_default.typeOf.object("normal", normal);
|
|
61
|
+
if (!Math_default.equalsEpsilon(
|
|
62
|
+
Cartesian3_default.magnitude(normal),
|
|
63
|
+
1,
|
|
64
|
+
Math_default.EPSILON6
|
|
65
|
+
)) {
|
|
66
|
+
throw new DeveloperError_default("normal must be normalized.");
|
|
67
|
+
}
|
|
68
|
+
const distance = -Cartesian3_default.dot(normal, point);
|
|
69
|
+
if (!defined_default(result)) {
|
|
70
|
+
return new Plane(normal, distance);
|
|
71
|
+
}
|
|
72
|
+
Cartesian3_default.clone(normal, result.normal);
|
|
73
|
+
result.distance = distance;
|
|
74
|
+
return result;
|
|
75
|
+
};
|
|
76
|
+
var scratchNormal = new Cartesian3_default();
|
|
77
|
+
Plane.fromCartesian4 = function(coefficients, result) {
|
|
78
|
+
Check_default.typeOf.object("coefficients", coefficients);
|
|
79
|
+
const normal = Cartesian3_default.fromCartesian4(coefficients, scratchNormal);
|
|
80
|
+
const distance = coefficients.w;
|
|
81
|
+
if (!Math_default.equalsEpsilon(
|
|
82
|
+
Cartesian3_default.magnitude(normal),
|
|
83
|
+
1,
|
|
84
|
+
Math_default.EPSILON6
|
|
85
|
+
)) {
|
|
86
|
+
throw new DeveloperError_default("normal must be normalized.");
|
|
87
|
+
}
|
|
88
|
+
if (!defined_default(result)) {
|
|
89
|
+
return new Plane(normal, distance);
|
|
90
|
+
}
|
|
91
|
+
Cartesian3_default.clone(normal, result.normal);
|
|
92
|
+
result.distance = distance;
|
|
93
|
+
return result;
|
|
94
|
+
};
|
|
95
|
+
Plane.getPointDistance = function(plane, point) {
|
|
96
|
+
Check_default.typeOf.object("plane", plane);
|
|
97
|
+
Check_default.typeOf.object("point", point);
|
|
98
|
+
return Cartesian3_default.dot(plane.normal, point) + plane.distance;
|
|
99
|
+
};
|
|
100
|
+
var scratchCartesian = new Cartesian3_default();
|
|
101
|
+
Plane.projectPointOntoPlane = function(plane, point, result) {
|
|
102
|
+
Check_default.typeOf.object("plane", plane);
|
|
103
|
+
Check_default.typeOf.object("point", point);
|
|
104
|
+
if (!defined_default(result)) {
|
|
105
|
+
result = new Cartesian3_default();
|
|
106
|
+
}
|
|
107
|
+
const pointDistance = Plane.getPointDistance(plane, point);
|
|
108
|
+
const scaledNormal = Cartesian3_default.multiplyByScalar(
|
|
109
|
+
plane.normal,
|
|
110
|
+
pointDistance,
|
|
111
|
+
scratchCartesian
|
|
112
|
+
);
|
|
113
|
+
return Cartesian3_default.subtract(point, scaledNormal, result);
|
|
114
|
+
};
|
|
115
|
+
var scratchInverseTranspose = new Matrix4_default();
|
|
116
|
+
var scratchPlaneCartesian4 = new Cartesian4_default();
|
|
117
|
+
var scratchTransformNormal = new Cartesian3_default();
|
|
118
|
+
Plane.transform = function(plane, transform, result) {
|
|
119
|
+
Check_default.typeOf.object("plane", plane);
|
|
120
|
+
Check_default.typeOf.object("transform", transform);
|
|
121
|
+
const normal = plane.normal;
|
|
122
|
+
const distance = plane.distance;
|
|
123
|
+
const inverseTranspose = Matrix4_default.inverseTranspose(
|
|
124
|
+
transform,
|
|
125
|
+
scratchInverseTranspose
|
|
126
|
+
);
|
|
127
|
+
let planeAsCartesian4 = Cartesian4_default.fromElements(
|
|
128
|
+
normal.x,
|
|
129
|
+
normal.y,
|
|
130
|
+
normal.z,
|
|
131
|
+
distance,
|
|
132
|
+
scratchPlaneCartesian4
|
|
133
|
+
);
|
|
134
|
+
planeAsCartesian4 = Matrix4_default.multiplyByVector(
|
|
135
|
+
inverseTranspose,
|
|
136
|
+
planeAsCartesian4,
|
|
137
|
+
planeAsCartesian4
|
|
138
|
+
);
|
|
139
|
+
const transformedNormal = Cartesian3_default.fromCartesian4(
|
|
140
|
+
planeAsCartesian4,
|
|
141
|
+
scratchTransformNormal
|
|
142
|
+
);
|
|
143
|
+
planeAsCartesian4 = Cartesian4_default.divideByScalar(
|
|
144
|
+
planeAsCartesian4,
|
|
145
|
+
Cartesian3_default.magnitude(transformedNormal),
|
|
146
|
+
planeAsCartesian4
|
|
147
|
+
);
|
|
148
|
+
return Plane.fromCartesian4(planeAsCartesian4, result);
|
|
149
|
+
};
|
|
150
|
+
Plane.clone = function(plane, result) {
|
|
151
|
+
Check_default.typeOf.object("plane", plane);
|
|
152
|
+
if (!defined_default(result)) {
|
|
153
|
+
return new Plane(plane.normal, plane.distance);
|
|
154
|
+
}
|
|
155
|
+
Cartesian3_default.clone(plane.normal, result.normal);
|
|
156
|
+
result.distance = plane.distance;
|
|
157
|
+
return result;
|
|
158
|
+
};
|
|
159
|
+
Plane.equals = function(left, right) {
|
|
160
|
+
Check_default.typeOf.object("left", left);
|
|
161
|
+
Check_default.typeOf.object("right", right);
|
|
162
|
+
return left.distance === right.distance && Cartesian3_default.equals(left.normal, right.normal);
|
|
163
|
+
};
|
|
164
|
+
Plane.ORIGIN_XY_PLANE = Object.freeze(new Plane(Cartesian3_default.UNIT_Z, 0));
|
|
165
|
+
Plane.ORIGIN_YZ_PLANE = Object.freeze(new Plane(Cartesian3_default.UNIT_X, 0));
|
|
166
|
+
Plane.ORIGIN_ZX_PLANE = Object.freeze(new Plane(Cartesian3_default.UNIT_Y, 0));
|
|
167
|
+
var Plane_default = Plane;
|
|
168
|
+
|
|
169
|
+
export {
|
|
170
|
+
Plane_default
|
|
171
|
+
};
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.143.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
|
+
AxisAlignedBoundingBox_default
|
|
28
|
+
} from "./chunk-EZGQPOIG.js";
|
|
29
|
+
import {
|
|
30
|
+
IntersectionTests_default,
|
|
31
|
+
Ray_default
|
|
32
|
+
} from "./chunk-AJSFRY4U.js";
|
|
33
|
+
import {
|
|
34
|
+
Plane_default
|
|
35
|
+
} from "./chunk-J73T2VOY.js";
|
|
36
|
+
import {
|
|
37
|
+
Transforms_default
|
|
38
|
+
} from "./chunk-ADX3CBKD.js";
|
|
39
|
+
import {
|
|
40
|
+
Cartesian4_default,
|
|
41
|
+
Matrix4_default
|
|
42
|
+
} from "./chunk-WN3F4CVG.js";
|
|
43
|
+
import {
|
|
44
|
+
Cartesian2_default,
|
|
45
|
+
Ellipsoid_default
|
|
46
|
+
} from "./chunk-UTB7U3O6.js";
|
|
47
|
+
import {
|
|
48
|
+
Cartesian3_default
|
|
49
|
+
} from "./chunk-ZQLZG4IN.js";
|
|
50
|
+
import {
|
|
51
|
+
Check_default,
|
|
52
|
+
DeveloperError_default
|
|
53
|
+
} from "./chunk-6YR6JBMY.js";
|
|
54
|
+
import {
|
|
55
|
+
defined_default
|
|
56
|
+
} from "./chunk-AHWAZRBV.js";
|
|
57
|
+
|
|
58
|
+
// packages/engine/Source/Core/EllipsoidTangentPlane.js
|
|
59
|
+
var scratchCart4 = new Cartesian4_default();
|
|
60
|
+
function EllipsoidTangentPlane(origin, ellipsoid) {
|
|
61
|
+
Check_default.defined("origin", origin);
|
|
62
|
+
ellipsoid = ellipsoid ?? Ellipsoid_default.default;
|
|
63
|
+
origin = ellipsoid.scaleToGeodeticSurface(origin);
|
|
64
|
+
if (!defined_default(origin)) {
|
|
65
|
+
throw new DeveloperError_default(
|
|
66
|
+
"origin must not be at the center of the ellipsoid."
|
|
67
|
+
);
|
|
68
|
+
}
|
|
69
|
+
const eastNorthUp = Transforms_default.eastNorthUpToFixedFrame(origin, ellipsoid);
|
|
70
|
+
this._ellipsoid = ellipsoid;
|
|
71
|
+
this._origin = origin;
|
|
72
|
+
this._xAxis = Cartesian3_default.fromCartesian4(
|
|
73
|
+
Matrix4_default.getColumn(eastNorthUp, 0, scratchCart4)
|
|
74
|
+
);
|
|
75
|
+
this._yAxis = Cartesian3_default.fromCartesian4(
|
|
76
|
+
Matrix4_default.getColumn(eastNorthUp, 1, scratchCart4)
|
|
77
|
+
);
|
|
78
|
+
const normal = Cartesian3_default.fromCartesian4(
|
|
79
|
+
Matrix4_default.getColumn(eastNorthUp, 2, scratchCart4)
|
|
80
|
+
);
|
|
81
|
+
this._plane = Plane_default.fromPointNormal(origin, normal);
|
|
82
|
+
}
|
|
83
|
+
Object.defineProperties(EllipsoidTangentPlane.prototype, {
|
|
84
|
+
/**
|
|
85
|
+
* Gets the ellipsoid.
|
|
86
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
87
|
+
* @type {Ellipsoid}
|
|
88
|
+
*/
|
|
89
|
+
ellipsoid: {
|
|
90
|
+
get: function() {
|
|
91
|
+
return this._ellipsoid;
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
/**
|
|
95
|
+
* Gets the origin.
|
|
96
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
97
|
+
* @type {Cartesian3}
|
|
98
|
+
*/
|
|
99
|
+
origin: {
|
|
100
|
+
get: function() {
|
|
101
|
+
return this._origin;
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
/**
|
|
105
|
+
* Gets the plane which is tangent to the ellipsoid.
|
|
106
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
107
|
+
* @readonly
|
|
108
|
+
* @type {Plane}
|
|
109
|
+
*/
|
|
110
|
+
plane: {
|
|
111
|
+
get: function() {
|
|
112
|
+
return this._plane;
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
/**
|
|
116
|
+
* Gets the local X-axis (east) of the tangent plane.
|
|
117
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
118
|
+
* @readonly
|
|
119
|
+
* @type {Cartesian3}
|
|
120
|
+
*/
|
|
121
|
+
xAxis: {
|
|
122
|
+
get: function() {
|
|
123
|
+
return this._xAxis;
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
/**
|
|
127
|
+
* Gets the local Y-axis (north) of the tangent plane.
|
|
128
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
129
|
+
* @readonly
|
|
130
|
+
* @type {Cartesian3}
|
|
131
|
+
*/
|
|
132
|
+
yAxis: {
|
|
133
|
+
get: function() {
|
|
134
|
+
return this._yAxis;
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
/**
|
|
138
|
+
* Gets the local Z-axis (up) of the tangent plane.
|
|
139
|
+
* @memberof EllipsoidTangentPlane.prototype
|
|
140
|
+
* @readonly
|
|
141
|
+
* @type {Cartesian3}
|
|
142
|
+
*/
|
|
143
|
+
zAxis: {
|
|
144
|
+
get: function() {
|
|
145
|
+
return this._plane.normal;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
var tmp = new AxisAlignedBoundingBox_default();
|
|
150
|
+
EllipsoidTangentPlane.fromPoints = function(cartesians, ellipsoid) {
|
|
151
|
+
Check_default.defined("cartesians", cartesians);
|
|
152
|
+
const box = AxisAlignedBoundingBox_default.fromPoints(cartesians, tmp);
|
|
153
|
+
return new EllipsoidTangentPlane(box.center, ellipsoid);
|
|
154
|
+
};
|
|
155
|
+
var scratchProjectPointOntoPlaneRay = new Ray_default();
|
|
156
|
+
var scratchProjectPointOntoPlaneCartesian3 = new Cartesian3_default();
|
|
157
|
+
EllipsoidTangentPlane.prototype.projectPointOntoPlane = function(cartesian, result) {
|
|
158
|
+
Check_default.defined("cartesian", cartesian);
|
|
159
|
+
const ray = scratchProjectPointOntoPlaneRay;
|
|
160
|
+
ray.origin = cartesian;
|
|
161
|
+
Cartesian3_default.normalize(cartesian, ray.direction);
|
|
162
|
+
let intersectionPoint = IntersectionTests_default.rayPlane(
|
|
163
|
+
ray,
|
|
164
|
+
this._plane,
|
|
165
|
+
scratchProjectPointOntoPlaneCartesian3
|
|
166
|
+
);
|
|
167
|
+
if (!defined_default(intersectionPoint)) {
|
|
168
|
+
Cartesian3_default.negate(ray.direction, ray.direction);
|
|
169
|
+
intersectionPoint = IntersectionTests_default.rayPlane(
|
|
170
|
+
ray,
|
|
171
|
+
this._plane,
|
|
172
|
+
scratchProjectPointOntoPlaneCartesian3
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
if (defined_default(intersectionPoint)) {
|
|
176
|
+
const v = Cartesian3_default.subtract(
|
|
177
|
+
intersectionPoint,
|
|
178
|
+
this._origin,
|
|
179
|
+
intersectionPoint
|
|
180
|
+
);
|
|
181
|
+
const x = Cartesian3_default.dot(this._xAxis, v);
|
|
182
|
+
const y = Cartesian3_default.dot(this._yAxis, v);
|
|
183
|
+
if (!defined_default(result)) {
|
|
184
|
+
return new Cartesian2_default(x, y);
|
|
185
|
+
}
|
|
186
|
+
result.x = x;
|
|
187
|
+
result.y = y;
|
|
188
|
+
return result;
|
|
189
|
+
}
|
|
190
|
+
return void 0;
|
|
191
|
+
};
|
|
192
|
+
EllipsoidTangentPlane.prototype.projectPointsOntoPlane = function(cartesians, result) {
|
|
193
|
+
Check_default.defined("cartesians", cartesians);
|
|
194
|
+
if (!defined_default(result)) {
|
|
195
|
+
result = [];
|
|
196
|
+
}
|
|
197
|
+
let count = 0;
|
|
198
|
+
const length = cartesians.length;
|
|
199
|
+
for (let i = 0; i < length; i++) {
|
|
200
|
+
const p = this.projectPointOntoPlane(cartesians[i], result[count]);
|
|
201
|
+
if (defined_default(p)) {
|
|
202
|
+
result[count] = p;
|
|
203
|
+
count++;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
result.length = count;
|
|
207
|
+
return result;
|
|
208
|
+
};
|
|
209
|
+
EllipsoidTangentPlane.prototype.projectPointToNearestOnPlane = function(cartesian, result) {
|
|
210
|
+
Check_default.defined("cartesian", cartesian);
|
|
211
|
+
if (!defined_default(result)) {
|
|
212
|
+
result = new Cartesian2_default();
|
|
213
|
+
}
|
|
214
|
+
const ray = scratchProjectPointOntoPlaneRay;
|
|
215
|
+
ray.origin = cartesian;
|
|
216
|
+
Cartesian3_default.clone(this._plane.normal, ray.direction);
|
|
217
|
+
let intersectionPoint = IntersectionTests_default.rayPlane(
|
|
218
|
+
ray,
|
|
219
|
+
this._plane,
|
|
220
|
+
scratchProjectPointOntoPlaneCartesian3
|
|
221
|
+
);
|
|
222
|
+
if (!defined_default(intersectionPoint)) {
|
|
223
|
+
Cartesian3_default.negate(ray.direction, ray.direction);
|
|
224
|
+
intersectionPoint = IntersectionTests_default.rayPlane(
|
|
225
|
+
ray,
|
|
226
|
+
this._plane,
|
|
227
|
+
scratchProjectPointOntoPlaneCartesian3
|
|
228
|
+
);
|
|
229
|
+
}
|
|
230
|
+
const v = Cartesian3_default.subtract(
|
|
231
|
+
intersectionPoint,
|
|
232
|
+
this._origin,
|
|
233
|
+
intersectionPoint
|
|
234
|
+
);
|
|
235
|
+
const x = Cartesian3_default.dot(this._xAxis, v);
|
|
236
|
+
const y = Cartesian3_default.dot(this._yAxis, v);
|
|
237
|
+
result.x = x;
|
|
238
|
+
result.y = y;
|
|
239
|
+
return result;
|
|
240
|
+
};
|
|
241
|
+
EllipsoidTangentPlane.prototype.projectPointsToNearestOnPlane = function(cartesians, result) {
|
|
242
|
+
Check_default.defined("cartesians", cartesians);
|
|
243
|
+
if (!defined_default(result)) {
|
|
244
|
+
result = [];
|
|
245
|
+
}
|
|
246
|
+
const length = cartesians.length;
|
|
247
|
+
result.length = length;
|
|
248
|
+
for (let i = 0; i < length; i++) {
|
|
249
|
+
result[i] = this.projectPointToNearestOnPlane(cartesians[i], result[i]);
|
|
250
|
+
}
|
|
251
|
+
return result;
|
|
252
|
+
};
|
|
253
|
+
var projectPointsOntoEllipsoidScratch = new Cartesian3_default();
|
|
254
|
+
EllipsoidTangentPlane.prototype.projectPointOntoEllipsoid = function(cartesian, result) {
|
|
255
|
+
Check_default.defined("cartesian", cartesian);
|
|
256
|
+
if (!defined_default(result)) {
|
|
257
|
+
result = new Cartesian3_default();
|
|
258
|
+
}
|
|
259
|
+
const ellipsoid = this._ellipsoid;
|
|
260
|
+
const origin = this._origin;
|
|
261
|
+
const xAxis = this._xAxis;
|
|
262
|
+
const yAxis = this._yAxis;
|
|
263
|
+
const tmp2 = projectPointsOntoEllipsoidScratch;
|
|
264
|
+
Cartesian3_default.multiplyByScalar(xAxis, cartesian.x, tmp2);
|
|
265
|
+
result = Cartesian3_default.add(origin, tmp2, result);
|
|
266
|
+
Cartesian3_default.multiplyByScalar(yAxis, cartesian.y, tmp2);
|
|
267
|
+
Cartesian3_default.add(result, tmp2, result);
|
|
268
|
+
ellipsoid.scaleToGeocentricSurface(result, result);
|
|
269
|
+
return result;
|
|
270
|
+
};
|
|
271
|
+
EllipsoidTangentPlane.prototype.projectPointsOntoEllipsoid = function(cartesians, result) {
|
|
272
|
+
Check_default.defined("cartesians", cartesians);
|
|
273
|
+
const length = cartesians.length;
|
|
274
|
+
if (!defined_default(result)) {
|
|
275
|
+
result = new Array(length);
|
|
276
|
+
} else {
|
|
277
|
+
result.length = length;
|
|
278
|
+
}
|
|
279
|
+
for (let i = 0; i < length; ++i) {
|
|
280
|
+
result[i] = this.projectPointOntoEllipsoid(cartesians[i], result[i]);
|
|
281
|
+
}
|
|
282
|
+
return result;
|
|
283
|
+
};
|
|
284
|
+
var EllipsoidTangentPlane_default = EllipsoidTangentPlane;
|
|
285
|
+
|
|
286
|
+
export {
|
|
287
|
+
EllipsoidTangentPlane_default
|
|
288
|
+
};
|