@cesium/engine 26.0.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-7J2HKPRH.js → chunk-27FWRTJI.js} +9 -9
- package/Build/Workers/{chunk-EF2QYXGA.js → chunk-2EFYUSUY.js} +14 -14
- package/Build/Workers/chunk-2H5264K7.js +1284 -0
- package/Build/Workers/{chunk-DOBXCNC3.js → chunk-2H73KDBM.js} +13 -13
- package/Build/Workers/chunk-2RGJPWQX.js +1284 -0
- package/Build/Workers/chunk-2Z4ZLVOD.js +352 -0
- package/Build/Workers/{chunk-F6QDY6HU.js → chunk-2ZKH2QZB.js} +13 -13
- package/Build/Workers/chunk-36NI5E6W.js +3820 -0
- package/Build/Workers/{chunk-ZK3CF7ZD.js → chunk-37SW7SYS.js} +12 -12
- 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-Y57HREW5.js → chunk-3PSS3T43.js} +4 -4
- package/Build/Workers/chunk-3QR662HH.js +3820 -0
- package/Build/Workers/{chunk-QN67VG36.js → chunk-3SX2WYSO.js} +6 -6
- package/Build/Workers/{chunk-G7PXZRVF.js → chunk-3UDN6LYX.js} +7 -7
- package/Build/Workers/chunk-47MCBSXI.js +9237 -0
- package/Build/Workers/{chunk-KKOSKAZB.js → chunk-4E626OCE.js} +17 -17
- package/Build/Workers/chunk-4NW2MJKH.js +455 -0
- package/Build/Workers/{chunk-DBOEKL43.js → chunk-52YK5BSN.js} +7 -7
- package/Build/Workers/{chunk-KFSTQKNM.js → chunk-5LSOO2KD.js} +7 -7
- package/Build/Workers/chunk-5RNAQZK6.js +9234 -0
- package/Build/Workers/chunk-5YPQBFRD.js +519 -0
- package/Build/Workers/{chunk-S4MCOY6I.js → chunk-6FHT43QR.js} +5 -5
- package/Build/Workers/chunk-6FZDPMTO.js +455 -0
- package/Build/Workers/{chunk-VQYETPWC.js → chunk-6HK6IXK2.js} +4 -4
- package/Build/Workers/chunk-6R5X2GUA.js +1284 -0
- package/Build/Workers/{chunk-AYKR4VBR.js → chunk-6YR6JBMY.js} +2 -2
- package/Build/Workers/chunk-76FDC45O.js +511 -0
- package/Build/Workers/chunk-7A2OGDHT.js +305 -0
- package/Build/Workers/chunk-7CGEQUM2.js +305 -0
- package/Build/Workers/{chunk-54I6Y66F.js → chunk-7D2HZKH7.js} +6 -6
- package/Build/Workers/{chunk-3VFEWOBI.js → chunk-7I325HV6.js} +7 -7
- package/Build/Workers/{chunk-4MGMYHOO.js → chunk-7KVKHY7O.js} +6 -6
- 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-DDWSZVMY.js → chunk-7XM5JK5F.js} +5 -5
- package/Build/Workers/chunk-7YG3ND3P.js +454 -0
- package/Build/Workers/{chunk-IRBKFCEJ.js → chunk-A3O6EDBK.js} +2 -2
- package/Build/Workers/chunk-A62YI6S6.js +305 -0
- package/Build/Workers/{chunk-V7VQKN6N.js → chunk-A6X24AZI.js} +5 -5
- 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-52JDLOEM.js → chunk-AF7DTMJ7.js} +14 -14
- package/Build/Workers/{chunk-ZP7JMQV4.js → chunk-AHWAZRBV.js} +6 -2
- package/Build/Workers/chunk-AJSFRY4U.js +1344 -0
- package/Build/Workers/{chunk-EBSIOBXY.js → chunk-ARZICEEP.js} +8 -8
- package/Build/Workers/chunk-B3QHNA4A.js +147 -0
- package/Build/Workers/{chunk-YLY7NKAB.js → chunk-B4CQSLZJ.js} +4 -4
- package/Build/Workers/chunk-BKPQFCXH.js +511 -0
- package/Build/Workers/{chunk-O3EA5HS7.js → chunk-BSPCI2LO.js} +10 -10
- package/Build/Workers/chunk-BUJWSX5S.js +301 -0
- package/Build/Workers/{chunk-J6BWOHUF.js → chunk-C7JQVRLM.js} +3 -3
- package/Build/Workers/chunk-C7QDUNI3.js +138 -0
- package/Build/Workers/{chunk-KSSWJIZW.js → chunk-CDJDJ5LK.js} +2 -2
- package/Build/Workers/chunk-CEEZE3YZ.js +476 -0
- package/Build/Workers/chunk-CIV5DJOQ.js +778 -0
- package/Build/Workers/{chunk-INUEEEQA.js → chunk-CLCTQVVL.js} +8 -8
- package/Build/Workers/{chunk-C6J67V5A.js → chunk-CQNFIAZU.js} +1 -1
- package/Build/Workers/chunk-CRCGE4J4.js +9237 -0
- package/Build/Workers/{chunk-SMQZZOW6.js → chunk-CUTRKXUQ.js} +10 -10
- package/Build/Workers/{chunk-Q3PY526V.js → chunk-D6AY775A.js} +6 -6
- package/Build/Workers/chunk-DBD5WWG2.js +959 -0
- package/Build/Workers/{chunk-E7VQ76KE.js → chunk-DIGUUD6G.js} +6 -6
- package/Build/Workers/{chunk-P3CK7MCY.js → chunk-DSGLDRTI.js} +4 -4
- 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-424RNO3D.js → chunk-E7NZJOK7.js} +196 -22
- package/Build/Workers/{chunk-UOOIQ3KX.js → chunk-EB3Y5P3A.js} +12 -12
- package/Build/Workers/{chunk-ACXQXN46.js → chunk-EHTS2YPT.js} +16 -16
- package/Build/Workers/{chunk-EPYXRCDB.js → chunk-ELE6SC2C.js} +12 -12
- package/Build/Workers/{chunk-VWV2IJRB.js → chunk-ENNFMWDW.js} +11 -11
- 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-FRQZECAO.js → chunk-FCP2QY4G.js} +5 -5
- package/Build/Workers/{chunk-ZZ46LWL6.js → chunk-FDK4K5IA.js} +1 -1
- package/Build/Workers/{chunk-C6KNZ7T4.js → chunk-FGQFQHN5.js} +17 -17
- package/Build/Workers/chunk-FJWZMGOQ.js +1992 -0
- package/Build/Workers/{chunk-Y5BF6AFU.js → chunk-FQ42MT7M.js} +2 -2
- 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-CZEYZU4N.js → chunk-GNKXEN4C.js} +10 -10
- package/Build/Workers/{chunk-MYP774IS.js → chunk-GSWMAFTE.js} +8 -8
- package/Build/Workers/chunk-GVA7XQI2.js +368 -0
- package/Build/Workers/chunk-GXDHRC4J.js +1344 -0
- package/Build/Workers/chunk-GXWQZBAI.js +58 -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-HHV3MCGV.js +162 -0
- package/Build/Workers/chunk-HLW2ZRVK.js +368 -0
- package/Build/Workers/chunk-HS6AD4P2.js +398 -0
- package/Build/Workers/chunk-HT6FASOT.js +973 -0
- package/Build/Workers/chunk-I74ZH5LK.js +959 -0
- package/Build/Workers/{chunk-7WM2PX4V.js → chunk-IDVHUDZT.js} +5 -5
- package/Build/Workers/chunk-IGAZBTFZ.js +3201 -0
- package/Build/Workers/chunk-IJZJMIUY.js +789 -0
- package/Build/Workers/chunk-ILME5BXA.js +301 -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-JKXV6PG5.js +56 -0
- package/Build/Workers/chunk-JW6OZT4R.js +288 -0
- package/Build/Workers/{chunk-CXOYE2WM.js → chunk-JXYLJCTC.js} +5 -5
- package/Build/Workers/{chunk-CFQP6LYM.js → chunk-K27QOAW6.js} +4 -4
- package/Build/Workers/chunk-KGXSYGBG.js +387 -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-LD64RPYV.js +368 -0
- package/Build/Workers/{chunk-U3ZA64U7.js → chunk-LDRQSYBN.js} +2 -2
- package/Build/Workers/chunk-LGNDTZVX.js +97 -0
- package/Build/Workers/chunk-LNSQVXFH.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-TKKIREQ6.js → chunk-N7CCOFLX.js} +1 -1
- package/Build/Workers/chunk-NAWU5RF4.js +162 -0
- package/Build/Workers/{chunk-M3B5JKSM.js → chunk-NCL22ZUX.js} +1 -1
- package/Build/Workers/chunk-NEFDMMLY.js +241 -0
- package/Build/Workers/{chunk-UA25D5MX.js → chunk-NIWITKQK.js} +10 -10
- 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-OBEU25PI.js +1067 -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-QVLAFFJY.js +56 -0
- package/Build/Workers/{chunk-6YEE6JDR.js → chunk-R4FPNAZ2.js} +6 -6
- 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-RG4F5R57.js +454 -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-SF6K72D7.js +124 -0
- package/Build/Workers/chunk-SGRGNDOD.js +682 -0
- package/Build/Workers/{chunk-QRWGUWI6.js → chunk-SJYSIOEM.js} +11 -11
- package/Build/Workers/chunk-SM2CDCYF.js +198 -0
- package/Build/Workers/chunk-SMTGMFBL.js +97 -0
- package/Build/Workers/chunk-SS5ABQGY.js +102 -0
- package/Build/Workers/{chunk-IYOUHCZB.js → chunk-SXSP3JHS.js} +1 -1
- package/Build/Workers/chunk-T5QBPLE3.js +414 -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-TVZD72WJ.js +778 -0
- package/Build/Workers/chunk-U5LV3F3Z.js +1054 -0
- package/Build/Workers/chunk-UAZUP4I5.js +1992 -0
- package/Build/Workers/chunk-UEY73NRN.js +38 -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-UVO6COT2.js +352 -0
- package/Build/Workers/chunk-V46YGZE6.js +352 -0
- package/Build/Workers/chunk-VAL7DYNR.js +278 -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-4S7IE3LB.js → chunk-W5OCKMPJ.js} +2 -2
- package/Build/Workers/chunk-WBSY7HDY.js +837 -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-XDWCTQCZ.js +101 -0
- package/Build/Workers/chunk-XGA23TAX.js +73 -0
- package/Build/Workers/chunk-XLQZNQ4Z.js +163 -0
- package/Build/Workers/chunk-XLXSDIP5.js +973 -0
- package/Build/Workers/chunk-XQ3SKCMM.js +140 -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-XZMBNNDX.js → chunk-YKU2Q3A2.js} +9 -9
- 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-ZMBHFYOX.js +1344 -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-MPZHGZU6.js → chunk-ZSGUV73H.js} +4 -4
- package/Build/Workers/chunk-ZZUVT5BM.js +476 -0
- package/Build/Workers/combineGeometry.js +24 -24
- package/Build/Workers/createBoxGeometry.js +18 -18
- package/Build/Workers/createBoxOutlineGeometry.js +16 -16
- package/Build/Workers/createCircleGeometry.js +26 -26
- package/Build/Workers/createCircleOutlineGeometry.js +19 -19
- package/Build/Workers/createCoplanarPolygonGeometry.js +35 -35
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
- package/Build/Workers/createCorridorGeometry.js +31 -33
- package/Build/Workers/createCorridorOutlineGeometry.js +29 -31
- package/Build/Workers/createCylinderGeometry.js +20 -20
- package/Build/Workers/createCylinderOutlineGeometry.js +18 -18
- package/Build/Workers/createEllipseGeometry.js +26 -26
- package/Build/Workers/createEllipseOutlineGeometry.js +19 -19
- package/Build/Workers/createEllipsoidGeometry.js +19 -19
- package/Build/Workers/createEllipsoidOutlineGeometry.js +18 -18
- package/Build/Workers/createFrustumGeometry.js +18 -18
- package/Build/Workers/createFrustumOutlineGeometry.js +18 -18
- package/Build/Workers/createGeometry.js +24 -24
- package/Build/Workers/createGroundPolylineGeometry.js +24 -24
- package/Build/Workers/createPlaneGeometry.js +16 -16
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
- package/Build/Workers/createPolygonGeometry.js +34 -34
- package/Build/Workers/createPolygonOutlineGeometry.js +31 -31
- package/Build/Workers/createPolylineGeometry.js +26 -26
- package/Build/Workers/createPolylineVolumeGeometry.js +31 -31
- package/Build/Workers/createPolylineVolumeOutlineGeometry.js +27 -27
- package/Build/Workers/createRectangleGeometry.js +27 -27
- package/Build/Workers/createRectangleOutlineGeometry.js +21 -21
- package/Build/Workers/createSimplePolylineGeometry.js +24 -24
- package/Build/Workers/createSphereGeometry.js +19 -19
- package/Build/Workers/createSphereOutlineGeometry.js +18 -18
- package/Build/Workers/createTaskProcessorWorker.js +3 -3
- package/Build/Workers/createVectorTileClampedPolylines.js +14 -14
- package/Build/Workers/createVectorTileGeometries.js +24 -24
- package/Build/Workers/createVectorTilePoints.js +13 -13
- package/Build/Workers/createVectorTilePolygons.js +22 -22
- package/Build/Workers/createVectorTilePolylines.js +14 -14
- package/Build/Workers/createVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Build/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +22 -22
- package/Build/Workers/createVerticesFromHeightmap.js +22 -22
- package/Build/Workers/createVerticesFromQuantizedTerrainMesh.js +20 -20
- package/Build/Workers/createWallGeometry.js +24 -24
- package/Build/Workers/createWallOutlineGeometry.js +24 -24
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +987 -2320
- package/Build/Workers/decodeI3S.js +10 -10
- package/Build/Workers/gaussianSplatSorter.js +4 -4
- package/Build/Workers/gaussianSplatTextureGenerator.js +4 -4
- package/Build/Workers/incrementallyBuildTerrainPicker.js +10 -10
- package/Build/Workers/transcodeKTX2.js +6 -6
- package/Build/Workers/transferTypedArrayTest.js +1 -1
- package/Build/Workers/upsampleQuantizedTerrainMesh.js +22 -22
- package/Build/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +25 -25
- package/Source/Core/ArcGISTiledElevationTerrainProvider.js +1 -5
- package/Source/Core/BoundingRectangle.js +6 -8
- package/Source/Core/BoundingSphere.js +0 -3
- package/Source/Core/Cesium3DTilesTerrainGeometryProcessor.js +3 -4
- package/Source/Core/Color.js +1 -0
- 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 +58 -50
- 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/TerrainMesh.js +3 -3
- package/Source/Core/TerrainPicker.js +180 -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/Core/writeTextToCanvas.js +1 -0
- package/Source/DataSources/CompositeEntityCollection.js +0 -1
- package/Source/DataSources/CzmlDataSource.js +14 -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 +529 -557
- package/Source/DataSources/PathGraphics.js +8 -1
- package/Source/DataSources/PathMode.js +27 -0
- package/Source/DataSources/PathVisualizer.js +298 -1
- 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 +12 -1
- package/Source/Renderer/UniformState.js +7 -0
- package/Source/Renderer/VertexArray.js +1 -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/BillboardTexture.js +5 -3
- package/Source/Scene/BufferPrimitiveCollection.js +27 -5
- package/Source/Scene/Camera.js +71 -5
- package/Source/Scene/Cesium3DTileOptimizations.js +4 -6
- package/Source/Scene/Cesium3DTileset.js +1 -1
- package/Source/Scene/ClippingPlaneCollection.js +4 -4
- package/Source/Scene/ClippingPolygon.js +2 -0
- package/Source/Scene/ClippingPolygonCollection.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 +98 -0
- package/Source/Scene/EdgeFramebuffer.js +1 -5
- package/Source/Scene/Expression.js +6 -8
- 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 +511 -409
- package/Source/Scene/GlobeSurfaceTile.js +575 -398
- package/Source/Scene/GlobeSurfaceTileProvider.js +1382 -1151
- package/Source/Scene/GltfBufferViewLoader.js +3 -3
- package/Source/Scene/GltfLoader.js +33 -3
- package/Source/Scene/GltfLoaderUtil.js +20 -4
- package/Source/Scene/GltfPipeline/forEachTextureInMaterial.js +10 -0
- package/Source/Scene/GltfPipeline/removeUnusedElements.js +21 -11
- 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/ImageryLayer.js +2 -2
- package/Source/Scene/ImageryLayerCollection.js +190 -6
- 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/Material.js +1 -0
- package/Source/Scene/Model/B3dmLoader.js +1 -2
- package/Source/Scene/Model/EdgeVisibilityPipelineStage.js +10 -8
- package/Source/Scene/Model/Extensions/Gpm/GltfGpmLoader.js +4 -0
- 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 +11 -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/ModelUtility.js +1 -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 +19 -3
- package/Source/Scene/PlanarFillIdFramebuffer.js +172 -0
- package/Source/Scene/PntsParser.js +1 -1
- package/Source/Scene/PolylineCollection.js +1 -1
- package/Source/Scene/PostProcessStage.js +4 -2
- package/Source/Scene/QuadtreePrimitive.js +3 -2
- package/Source/Scene/ResourceCache.js +7 -4
- package/Source/Scene/ResourceCacheKey.js +21 -18
- package/Source/Scene/Scene.js +203 -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/findMeshoptExtension.js +23 -0
- package/Source/Scene/renderBufferPointCollection.js +14 -10
- package/Source/Scene/renderBufferPolygonCollection.js +10 -15
- package/Source/Scene/renderBufferPolylineCollection.js +121 -194
- 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/Source/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/Source/Workers/incrementallyBuildTerrainPicker.js +2 -0
- package/index.d.ts +825 -260
- package/index.js +29 -10
- package/package.json +4 -4
|
@@ -0,0 +1,682 @@
|
|
|
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
|
+
GeometryOffsetAttribute_default
|
|
28
|
+
} from "./chunk-SXSP3JHS.js";
|
|
29
|
+
import {
|
|
30
|
+
VertexFormat_default
|
|
31
|
+
} from "./chunk-DZBQUULR.js";
|
|
32
|
+
import {
|
|
33
|
+
GeometryAttributes_default
|
|
34
|
+
} from "./chunk-IUIFLOYO.js";
|
|
35
|
+
import {
|
|
36
|
+
GeometryAttribute_default,
|
|
37
|
+
Geometry_default,
|
|
38
|
+
PrimitiveType_default
|
|
39
|
+
} from "./chunk-QIZDWZK6.js";
|
|
40
|
+
import {
|
|
41
|
+
BoundingSphere_default
|
|
42
|
+
} from "./chunk-2H5264K7.js";
|
|
43
|
+
import {
|
|
44
|
+
ComponentDatatype_default
|
|
45
|
+
} from "./chunk-DSGLDRTI.js";
|
|
46
|
+
import {
|
|
47
|
+
Cartesian3_default,
|
|
48
|
+
Frozen_default
|
|
49
|
+
} from "./chunk-SA2A2AN5.js";
|
|
50
|
+
import {
|
|
51
|
+
Check_default,
|
|
52
|
+
DeveloperError_default
|
|
53
|
+
} from "./chunk-XLQZNQ4Z.js";
|
|
54
|
+
import {
|
|
55
|
+
defined_default
|
|
56
|
+
} from "./chunk-PCL3Y7H5.js";
|
|
57
|
+
|
|
58
|
+
// packages/engine/Source/Core/BoxGeometry.js
|
|
59
|
+
var diffScratch = new Cartesian3_default();
|
|
60
|
+
function BoxGeometry(options) {
|
|
61
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
62
|
+
const min = options.minimum;
|
|
63
|
+
const max = options.maximum;
|
|
64
|
+
Check_default.typeOf.object("min", min);
|
|
65
|
+
Check_default.typeOf.object("max", max);
|
|
66
|
+
if (defined_default(options.offsetAttribute) && options.offsetAttribute === GeometryOffsetAttribute_default.TOP) {
|
|
67
|
+
throw new DeveloperError_default(
|
|
68
|
+
"GeometryOffsetAttribute.TOP is not a supported options.offsetAttribute for this geometry."
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
const vertexFormat = options.vertexFormat ?? VertexFormat_default.DEFAULT;
|
|
72
|
+
this._minimum = Cartesian3_default.clone(min);
|
|
73
|
+
this._maximum = Cartesian3_default.clone(max);
|
|
74
|
+
this._vertexFormat = vertexFormat;
|
|
75
|
+
this._offsetAttribute = options.offsetAttribute;
|
|
76
|
+
this._workerName = "createBoxGeometry";
|
|
77
|
+
}
|
|
78
|
+
BoxGeometry.fromDimensions = function(options) {
|
|
79
|
+
options = options ?? Frozen_default.EMPTY_OBJECT;
|
|
80
|
+
const dimensions = options.dimensions;
|
|
81
|
+
Check_default.typeOf.object("dimensions", dimensions);
|
|
82
|
+
Check_default.typeOf.number.greaterThanOrEquals("dimensions.x", dimensions.x, 0);
|
|
83
|
+
Check_default.typeOf.number.greaterThanOrEquals("dimensions.y", dimensions.y, 0);
|
|
84
|
+
Check_default.typeOf.number.greaterThanOrEquals("dimensions.z", dimensions.z, 0);
|
|
85
|
+
const corner = Cartesian3_default.multiplyByScalar(dimensions, 0.5, new Cartesian3_default());
|
|
86
|
+
return new BoxGeometry({
|
|
87
|
+
minimum: Cartesian3_default.negate(corner, new Cartesian3_default()),
|
|
88
|
+
maximum: corner,
|
|
89
|
+
vertexFormat: options.vertexFormat,
|
|
90
|
+
offsetAttribute: options.offsetAttribute
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
BoxGeometry.fromAxisAlignedBoundingBox = function(boundingBox) {
|
|
94
|
+
Check_default.typeOf.object("boundingBox", boundingBox);
|
|
95
|
+
return new BoxGeometry({
|
|
96
|
+
minimum: boundingBox.minimum,
|
|
97
|
+
maximum: boundingBox.maximum
|
|
98
|
+
});
|
|
99
|
+
};
|
|
100
|
+
BoxGeometry.packedLength = 2 * Cartesian3_default.packedLength + VertexFormat_default.packedLength + 1;
|
|
101
|
+
BoxGeometry.pack = function(value, array, startingIndex) {
|
|
102
|
+
Check_default.typeOf.object("value", value);
|
|
103
|
+
Check_default.defined("array", array);
|
|
104
|
+
startingIndex = startingIndex ?? 0;
|
|
105
|
+
Cartesian3_default.pack(value._minimum, array, startingIndex);
|
|
106
|
+
Cartesian3_default.pack(
|
|
107
|
+
value._maximum,
|
|
108
|
+
array,
|
|
109
|
+
startingIndex + Cartesian3_default.packedLength
|
|
110
|
+
);
|
|
111
|
+
VertexFormat_default.pack(
|
|
112
|
+
value._vertexFormat,
|
|
113
|
+
array,
|
|
114
|
+
startingIndex + 2 * Cartesian3_default.packedLength
|
|
115
|
+
);
|
|
116
|
+
array[startingIndex + 2 * Cartesian3_default.packedLength + VertexFormat_default.packedLength] = value._offsetAttribute ?? -1;
|
|
117
|
+
return array;
|
|
118
|
+
};
|
|
119
|
+
var scratchMin = new Cartesian3_default();
|
|
120
|
+
var scratchMax = new Cartesian3_default();
|
|
121
|
+
var scratchVertexFormat = new VertexFormat_default();
|
|
122
|
+
var scratchOptions = {
|
|
123
|
+
minimum: scratchMin,
|
|
124
|
+
maximum: scratchMax,
|
|
125
|
+
vertexFormat: scratchVertexFormat,
|
|
126
|
+
offsetAttribute: void 0
|
|
127
|
+
};
|
|
128
|
+
BoxGeometry.unpack = function(array, startingIndex, result) {
|
|
129
|
+
Check_default.defined("array", array);
|
|
130
|
+
startingIndex = startingIndex ?? 0;
|
|
131
|
+
const min = Cartesian3_default.unpack(array, startingIndex, scratchMin);
|
|
132
|
+
const max = Cartesian3_default.unpack(
|
|
133
|
+
array,
|
|
134
|
+
startingIndex + Cartesian3_default.packedLength,
|
|
135
|
+
scratchMax
|
|
136
|
+
);
|
|
137
|
+
const vertexFormat = VertexFormat_default.unpack(
|
|
138
|
+
array,
|
|
139
|
+
startingIndex + 2 * Cartesian3_default.packedLength,
|
|
140
|
+
scratchVertexFormat
|
|
141
|
+
);
|
|
142
|
+
const offsetAttribute = array[startingIndex + 2 * Cartesian3_default.packedLength + VertexFormat_default.packedLength];
|
|
143
|
+
if (!defined_default(result)) {
|
|
144
|
+
scratchOptions.offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
|
|
145
|
+
return new BoxGeometry(scratchOptions);
|
|
146
|
+
}
|
|
147
|
+
result._minimum = Cartesian3_default.clone(min, result._minimum);
|
|
148
|
+
result._maximum = Cartesian3_default.clone(max, result._maximum);
|
|
149
|
+
result._vertexFormat = VertexFormat_default.clone(vertexFormat, result._vertexFormat);
|
|
150
|
+
result._offsetAttribute = offsetAttribute === -1 ? void 0 : offsetAttribute;
|
|
151
|
+
return result;
|
|
152
|
+
};
|
|
153
|
+
BoxGeometry.createGeometry = function(boxGeometry) {
|
|
154
|
+
const min = boxGeometry._minimum;
|
|
155
|
+
const max = boxGeometry._maximum;
|
|
156
|
+
const vertexFormat = boxGeometry._vertexFormat;
|
|
157
|
+
if (Cartesian3_default.equals(min, max)) {
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
const attributes = new GeometryAttributes_default();
|
|
161
|
+
let indices;
|
|
162
|
+
let positions;
|
|
163
|
+
if (vertexFormat.position && (vertexFormat.st || vertexFormat.normal || vertexFormat.tangent || vertexFormat.bitangent)) {
|
|
164
|
+
if (vertexFormat.position) {
|
|
165
|
+
positions = new Float64Array(6 * 4 * 3);
|
|
166
|
+
positions[0] = min.x;
|
|
167
|
+
positions[1] = min.y;
|
|
168
|
+
positions[2] = max.z;
|
|
169
|
+
positions[3] = max.x;
|
|
170
|
+
positions[4] = min.y;
|
|
171
|
+
positions[5] = max.z;
|
|
172
|
+
positions[6] = max.x;
|
|
173
|
+
positions[7] = max.y;
|
|
174
|
+
positions[8] = max.z;
|
|
175
|
+
positions[9] = min.x;
|
|
176
|
+
positions[10] = max.y;
|
|
177
|
+
positions[11] = max.z;
|
|
178
|
+
positions[12] = min.x;
|
|
179
|
+
positions[13] = min.y;
|
|
180
|
+
positions[14] = min.z;
|
|
181
|
+
positions[15] = max.x;
|
|
182
|
+
positions[16] = min.y;
|
|
183
|
+
positions[17] = min.z;
|
|
184
|
+
positions[18] = max.x;
|
|
185
|
+
positions[19] = max.y;
|
|
186
|
+
positions[20] = min.z;
|
|
187
|
+
positions[21] = min.x;
|
|
188
|
+
positions[22] = max.y;
|
|
189
|
+
positions[23] = min.z;
|
|
190
|
+
positions[24] = max.x;
|
|
191
|
+
positions[25] = min.y;
|
|
192
|
+
positions[26] = min.z;
|
|
193
|
+
positions[27] = max.x;
|
|
194
|
+
positions[28] = max.y;
|
|
195
|
+
positions[29] = min.z;
|
|
196
|
+
positions[30] = max.x;
|
|
197
|
+
positions[31] = max.y;
|
|
198
|
+
positions[32] = max.z;
|
|
199
|
+
positions[33] = max.x;
|
|
200
|
+
positions[34] = min.y;
|
|
201
|
+
positions[35] = max.z;
|
|
202
|
+
positions[36] = min.x;
|
|
203
|
+
positions[37] = min.y;
|
|
204
|
+
positions[38] = min.z;
|
|
205
|
+
positions[39] = min.x;
|
|
206
|
+
positions[40] = max.y;
|
|
207
|
+
positions[41] = min.z;
|
|
208
|
+
positions[42] = min.x;
|
|
209
|
+
positions[43] = max.y;
|
|
210
|
+
positions[44] = max.z;
|
|
211
|
+
positions[45] = min.x;
|
|
212
|
+
positions[46] = min.y;
|
|
213
|
+
positions[47] = max.z;
|
|
214
|
+
positions[48] = min.x;
|
|
215
|
+
positions[49] = max.y;
|
|
216
|
+
positions[50] = min.z;
|
|
217
|
+
positions[51] = max.x;
|
|
218
|
+
positions[52] = max.y;
|
|
219
|
+
positions[53] = min.z;
|
|
220
|
+
positions[54] = max.x;
|
|
221
|
+
positions[55] = max.y;
|
|
222
|
+
positions[56] = max.z;
|
|
223
|
+
positions[57] = min.x;
|
|
224
|
+
positions[58] = max.y;
|
|
225
|
+
positions[59] = max.z;
|
|
226
|
+
positions[60] = min.x;
|
|
227
|
+
positions[61] = min.y;
|
|
228
|
+
positions[62] = min.z;
|
|
229
|
+
positions[63] = max.x;
|
|
230
|
+
positions[64] = min.y;
|
|
231
|
+
positions[65] = min.z;
|
|
232
|
+
positions[66] = max.x;
|
|
233
|
+
positions[67] = min.y;
|
|
234
|
+
positions[68] = max.z;
|
|
235
|
+
positions[69] = min.x;
|
|
236
|
+
positions[70] = min.y;
|
|
237
|
+
positions[71] = max.z;
|
|
238
|
+
attributes.position = new GeometryAttribute_default({
|
|
239
|
+
componentDatatype: ComponentDatatype_default.DOUBLE,
|
|
240
|
+
componentsPerAttribute: 3,
|
|
241
|
+
values: positions
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
if (vertexFormat.normal) {
|
|
245
|
+
const normals = new Float32Array(6 * 4 * 3);
|
|
246
|
+
normals[0] = 0;
|
|
247
|
+
normals[1] = 0;
|
|
248
|
+
normals[2] = 1;
|
|
249
|
+
normals[3] = 0;
|
|
250
|
+
normals[4] = 0;
|
|
251
|
+
normals[5] = 1;
|
|
252
|
+
normals[6] = 0;
|
|
253
|
+
normals[7] = 0;
|
|
254
|
+
normals[8] = 1;
|
|
255
|
+
normals[9] = 0;
|
|
256
|
+
normals[10] = 0;
|
|
257
|
+
normals[11] = 1;
|
|
258
|
+
normals[12] = 0;
|
|
259
|
+
normals[13] = 0;
|
|
260
|
+
normals[14] = -1;
|
|
261
|
+
normals[15] = 0;
|
|
262
|
+
normals[16] = 0;
|
|
263
|
+
normals[17] = -1;
|
|
264
|
+
normals[18] = 0;
|
|
265
|
+
normals[19] = 0;
|
|
266
|
+
normals[20] = -1;
|
|
267
|
+
normals[21] = 0;
|
|
268
|
+
normals[22] = 0;
|
|
269
|
+
normals[23] = -1;
|
|
270
|
+
normals[24] = 1;
|
|
271
|
+
normals[25] = 0;
|
|
272
|
+
normals[26] = 0;
|
|
273
|
+
normals[27] = 1;
|
|
274
|
+
normals[28] = 0;
|
|
275
|
+
normals[29] = 0;
|
|
276
|
+
normals[30] = 1;
|
|
277
|
+
normals[31] = 0;
|
|
278
|
+
normals[32] = 0;
|
|
279
|
+
normals[33] = 1;
|
|
280
|
+
normals[34] = 0;
|
|
281
|
+
normals[35] = 0;
|
|
282
|
+
normals[36] = -1;
|
|
283
|
+
normals[37] = 0;
|
|
284
|
+
normals[38] = 0;
|
|
285
|
+
normals[39] = -1;
|
|
286
|
+
normals[40] = 0;
|
|
287
|
+
normals[41] = 0;
|
|
288
|
+
normals[42] = -1;
|
|
289
|
+
normals[43] = 0;
|
|
290
|
+
normals[44] = 0;
|
|
291
|
+
normals[45] = -1;
|
|
292
|
+
normals[46] = 0;
|
|
293
|
+
normals[47] = 0;
|
|
294
|
+
normals[48] = 0;
|
|
295
|
+
normals[49] = 1;
|
|
296
|
+
normals[50] = 0;
|
|
297
|
+
normals[51] = 0;
|
|
298
|
+
normals[52] = 1;
|
|
299
|
+
normals[53] = 0;
|
|
300
|
+
normals[54] = 0;
|
|
301
|
+
normals[55] = 1;
|
|
302
|
+
normals[56] = 0;
|
|
303
|
+
normals[57] = 0;
|
|
304
|
+
normals[58] = 1;
|
|
305
|
+
normals[59] = 0;
|
|
306
|
+
normals[60] = 0;
|
|
307
|
+
normals[61] = -1;
|
|
308
|
+
normals[62] = 0;
|
|
309
|
+
normals[63] = 0;
|
|
310
|
+
normals[64] = -1;
|
|
311
|
+
normals[65] = 0;
|
|
312
|
+
normals[66] = 0;
|
|
313
|
+
normals[67] = -1;
|
|
314
|
+
normals[68] = 0;
|
|
315
|
+
normals[69] = 0;
|
|
316
|
+
normals[70] = -1;
|
|
317
|
+
normals[71] = 0;
|
|
318
|
+
attributes.normal = new GeometryAttribute_default({
|
|
319
|
+
componentDatatype: ComponentDatatype_default.FLOAT,
|
|
320
|
+
componentsPerAttribute: 3,
|
|
321
|
+
values: normals
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
if (vertexFormat.st) {
|
|
325
|
+
const texCoords = new Float32Array(6 * 4 * 2);
|
|
326
|
+
texCoords[0] = 0;
|
|
327
|
+
texCoords[1] = 0;
|
|
328
|
+
texCoords[2] = 1;
|
|
329
|
+
texCoords[3] = 0;
|
|
330
|
+
texCoords[4] = 1;
|
|
331
|
+
texCoords[5] = 1;
|
|
332
|
+
texCoords[6] = 0;
|
|
333
|
+
texCoords[7] = 1;
|
|
334
|
+
texCoords[8] = 1;
|
|
335
|
+
texCoords[9] = 0;
|
|
336
|
+
texCoords[10] = 0;
|
|
337
|
+
texCoords[11] = 0;
|
|
338
|
+
texCoords[12] = 0;
|
|
339
|
+
texCoords[13] = 1;
|
|
340
|
+
texCoords[14] = 1;
|
|
341
|
+
texCoords[15] = 1;
|
|
342
|
+
texCoords[16] = 0;
|
|
343
|
+
texCoords[17] = 0;
|
|
344
|
+
texCoords[18] = 1;
|
|
345
|
+
texCoords[19] = 0;
|
|
346
|
+
texCoords[20] = 1;
|
|
347
|
+
texCoords[21] = 1;
|
|
348
|
+
texCoords[22] = 0;
|
|
349
|
+
texCoords[23] = 1;
|
|
350
|
+
texCoords[24] = 1;
|
|
351
|
+
texCoords[25] = 0;
|
|
352
|
+
texCoords[26] = 0;
|
|
353
|
+
texCoords[27] = 0;
|
|
354
|
+
texCoords[28] = 0;
|
|
355
|
+
texCoords[29] = 1;
|
|
356
|
+
texCoords[30] = 1;
|
|
357
|
+
texCoords[31] = 1;
|
|
358
|
+
texCoords[32] = 1;
|
|
359
|
+
texCoords[33] = 0;
|
|
360
|
+
texCoords[34] = 0;
|
|
361
|
+
texCoords[35] = 0;
|
|
362
|
+
texCoords[36] = 0;
|
|
363
|
+
texCoords[37] = 1;
|
|
364
|
+
texCoords[38] = 1;
|
|
365
|
+
texCoords[39] = 1;
|
|
366
|
+
texCoords[40] = 0;
|
|
367
|
+
texCoords[41] = 0;
|
|
368
|
+
texCoords[42] = 1;
|
|
369
|
+
texCoords[43] = 0;
|
|
370
|
+
texCoords[44] = 1;
|
|
371
|
+
texCoords[45] = 1;
|
|
372
|
+
texCoords[46] = 0;
|
|
373
|
+
texCoords[47] = 1;
|
|
374
|
+
attributes.st = new GeometryAttribute_default({
|
|
375
|
+
componentDatatype: ComponentDatatype_default.FLOAT,
|
|
376
|
+
componentsPerAttribute: 2,
|
|
377
|
+
values: texCoords
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
if (vertexFormat.tangent) {
|
|
381
|
+
const tangents = new Float32Array(6 * 4 * 3);
|
|
382
|
+
tangents[0] = 1;
|
|
383
|
+
tangents[1] = 0;
|
|
384
|
+
tangents[2] = 0;
|
|
385
|
+
tangents[3] = 1;
|
|
386
|
+
tangents[4] = 0;
|
|
387
|
+
tangents[5] = 0;
|
|
388
|
+
tangents[6] = 1;
|
|
389
|
+
tangents[7] = 0;
|
|
390
|
+
tangents[8] = 0;
|
|
391
|
+
tangents[9] = 1;
|
|
392
|
+
tangents[10] = 0;
|
|
393
|
+
tangents[11] = 0;
|
|
394
|
+
tangents[12] = -1;
|
|
395
|
+
tangents[13] = 0;
|
|
396
|
+
tangents[14] = 0;
|
|
397
|
+
tangents[15] = -1;
|
|
398
|
+
tangents[16] = 0;
|
|
399
|
+
tangents[17] = 0;
|
|
400
|
+
tangents[18] = -1;
|
|
401
|
+
tangents[19] = 0;
|
|
402
|
+
tangents[20] = 0;
|
|
403
|
+
tangents[21] = -1;
|
|
404
|
+
tangents[22] = 0;
|
|
405
|
+
tangents[23] = 0;
|
|
406
|
+
tangents[24] = 0;
|
|
407
|
+
tangents[25] = 1;
|
|
408
|
+
tangents[26] = 0;
|
|
409
|
+
tangents[27] = 0;
|
|
410
|
+
tangents[28] = 1;
|
|
411
|
+
tangents[29] = 0;
|
|
412
|
+
tangents[30] = 0;
|
|
413
|
+
tangents[31] = 1;
|
|
414
|
+
tangents[32] = 0;
|
|
415
|
+
tangents[33] = 0;
|
|
416
|
+
tangents[34] = 1;
|
|
417
|
+
tangents[35] = 0;
|
|
418
|
+
tangents[36] = 0;
|
|
419
|
+
tangents[37] = -1;
|
|
420
|
+
tangents[38] = 0;
|
|
421
|
+
tangents[39] = 0;
|
|
422
|
+
tangents[40] = -1;
|
|
423
|
+
tangents[41] = 0;
|
|
424
|
+
tangents[42] = 0;
|
|
425
|
+
tangents[43] = -1;
|
|
426
|
+
tangents[44] = 0;
|
|
427
|
+
tangents[45] = 0;
|
|
428
|
+
tangents[46] = -1;
|
|
429
|
+
tangents[47] = 0;
|
|
430
|
+
tangents[48] = -1;
|
|
431
|
+
tangents[49] = 0;
|
|
432
|
+
tangents[50] = 0;
|
|
433
|
+
tangents[51] = -1;
|
|
434
|
+
tangents[52] = 0;
|
|
435
|
+
tangents[53] = 0;
|
|
436
|
+
tangents[54] = -1;
|
|
437
|
+
tangents[55] = 0;
|
|
438
|
+
tangents[56] = 0;
|
|
439
|
+
tangents[57] = -1;
|
|
440
|
+
tangents[58] = 0;
|
|
441
|
+
tangents[59] = 0;
|
|
442
|
+
tangents[60] = 1;
|
|
443
|
+
tangents[61] = 0;
|
|
444
|
+
tangents[62] = 0;
|
|
445
|
+
tangents[63] = 1;
|
|
446
|
+
tangents[64] = 0;
|
|
447
|
+
tangents[65] = 0;
|
|
448
|
+
tangents[66] = 1;
|
|
449
|
+
tangents[67] = 0;
|
|
450
|
+
tangents[68] = 0;
|
|
451
|
+
tangents[69] = 1;
|
|
452
|
+
tangents[70] = 0;
|
|
453
|
+
tangents[71] = 0;
|
|
454
|
+
attributes.tangent = new GeometryAttribute_default({
|
|
455
|
+
componentDatatype: ComponentDatatype_default.FLOAT,
|
|
456
|
+
componentsPerAttribute: 3,
|
|
457
|
+
values: tangents
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
if (vertexFormat.bitangent) {
|
|
461
|
+
const bitangents = new Float32Array(6 * 4 * 3);
|
|
462
|
+
bitangents[0] = 0;
|
|
463
|
+
bitangents[1] = 1;
|
|
464
|
+
bitangents[2] = 0;
|
|
465
|
+
bitangents[3] = 0;
|
|
466
|
+
bitangents[4] = 1;
|
|
467
|
+
bitangents[5] = 0;
|
|
468
|
+
bitangents[6] = 0;
|
|
469
|
+
bitangents[7] = 1;
|
|
470
|
+
bitangents[8] = 0;
|
|
471
|
+
bitangents[9] = 0;
|
|
472
|
+
bitangents[10] = 1;
|
|
473
|
+
bitangents[11] = 0;
|
|
474
|
+
bitangents[12] = 0;
|
|
475
|
+
bitangents[13] = 1;
|
|
476
|
+
bitangents[14] = 0;
|
|
477
|
+
bitangents[15] = 0;
|
|
478
|
+
bitangents[16] = 1;
|
|
479
|
+
bitangents[17] = 0;
|
|
480
|
+
bitangents[18] = 0;
|
|
481
|
+
bitangents[19] = 1;
|
|
482
|
+
bitangents[20] = 0;
|
|
483
|
+
bitangents[21] = 0;
|
|
484
|
+
bitangents[22] = 1;
|
|
485
|
+
bitangents[23] = 0;
|
|
486
|
+
bitangents[24] = 0;
|
|
487
|
+
bitangents[25] = 0;
|
|
488
|
+
bitangents[26] = 1;
|
|
489
|
+
bitangents[27] = 0;
|
|
490
|
+
bitangents[28] = 0;
|
|
491
|
+
bitangents[29] = 1;
|
|
492
|
+
bitangents[30] = 0;
|
|
493
|
+
bitangents[31] = 0;
|
|
494
|
+
bitangents[32] = 1;
|
|
495
|
+
bitangents[33] = 0;
|
|
496
|
+
bitangents[34] = 0;
|
|
497
|
+
bitangents[35] = 1;
|
|
498
|
+
bitangents[36] = 0;
|
|
499
|
+
bitangents[37] = 0;
|
|
500
|
+
bitangents[38] = 1;
|
|
501
|
+
bitangents[39] = 0;
|
|
502
|
+
bitangents[40] = 0;
|
|
503
|
+
bitangents[41] = 1;
|
|
504
|
+
bitangents[42] = 0;
|
|
505
|
+
bitangents[43] = 0;
|
|
506
|
+
bitangents[44] = 1;
|
|
507
|
+
bitangents[45] = 0;
|
|
508
|
+
bitangents[46] = 0;
|
|
509
|
+
bitangents[47] = 1;
|
|
510
|
+
bitangents[48] = 0;
|
|
511
|
+
bitangents[49] = 0;
|
|
512
|
+
bitangents[50] = 1;
|
|
513
|
+
bitangents[51] = 0;
|
|
514
|
+
bitangents[52] = 0;
|
|
515
|
+
bitangents[53] = 1;
|
|
516
|
+
bitangents[54] = 0;
|
|
517
|
+
bitangents[55] = 0;
|
|
518
|
+
bitangents[56] = 1;
|
|
519
|
+
bitangents[57] = 0;
|
|
520
|
+
bitangents[58] = 0;
|
|
521
|
+
bitangents[59] = 1;
|
|
522
|
+
bitangents[60] = 0;
|
|
523
|
+
bitangents[61] = 0;
|
|
524
|
+
bitangents[62] = 1;
|
|
525
|
+
bitangents[63] = 0;
|
|
526
|
+
bitangents[64] = 0;
|
|
527
|
+
bitangents[65] = 1;
|
|
528
|
+
bitangents[66] = 0;
|
|
529
|
+
bitangents[67] = 0;
|
|
530
|
+
bitangents[68] = 1;
|
|
531
|
+
bitangents[69] = 0;
|
|
532
|
+
bitangents[70] = 0;
|
|
533
|
+
bitangents[71] = 1;
|
|
534
|
+
attributes.bitangent = new GeometryAttribute_default({
|
|
535
|
+
componentDatatype: ComponentDatatype_default.FLOAT,
|
|
536
|
+
componentsPerAttribute: 3,
|
|
537
|
+
values: bitangents
|
|
538
|
+
});
|
|
539
|
+
}
|
|
540
|
+
indices = new Uint16Array(6 * 2 * 3);
|
|
541
|
+
indices[0] = 0;
|
|
542
|
+
indices[1] = 1;
|
|
543
|
+
indices[2] = 2;
|
|
544
|
+
indices[3] = 0;
|
|
545
|
+
indices[4] = 2;
|
|
546
|
+
indices[5] = 3;
|
|
547
|
+
indices[6] = 4 + 2;
|
|
548
|
+
indices[7] = 4 + 1;
|
|
549
|
+
indices[8] = 4 + 0;
|
|
550
|
+
indices[9] = 4 + 3;
|
|
551
|
+
indices[10] = 4 + 2;
|
|
552
|
+
indices[11] = 4 + 0;
|
|
553
|
+
indices[12] = 8 + 0;
|
|
554
|
+
indices[13] = 8 + 1;
|
|
555
|
+
indices[14] = 8 + 2;
|
|
556
|
+
indices[15] = 8 + 0;
|
|
557
|
+
indices[16] = 8 + 2;
|
|
558
|
+
indices[17] = 8 + 3;
|
|
559
|
+
indices[18] = 12 + 2;
|
|
560
|
+
indices[19] = 12 + 1;
|
|
561
|
+
indices[20] = 12 + 0;
|
|
562
|
+
indices[21] = 12 + 3;
|
|
563
|
+
indices[22] = 12 + 2;
|
|
564
|
+
indices[23] = 12 + 0;
|
|
565
|
+
indices[24] = 16 + 2;
|
|
566
|
+
indices[25] = 16 + 1;
|
|
567
|
+
indices[26] = 16 + 0;
|
|
568
|
+
indices[27] = 16 + 3;
|
|
569
|
+
indices[28] = 16 + 2;
|
|
570
|
+
indices[29] = 16 + 0;
|
|
571
|
+
indices[30] = 20 + 0;
|
|
572
|
+
indices[31] = 20 + 1;
|
|
573
|
+
indices[32] = 20 + 2;
|
|
574
|
+
indices[33] = 20 + 0;
|
|
575
|
+
indices[34] = 20 + 2;
|
|
576
|
+
indices[35] = 20 + 3;
|
|
577
|
+
} else {
|
|
578
|
+
positions = new Float64Array(8 * 3);
|
|
579
|
+
positions[0] = min.x;
|
|
580
|
+
positions[1] = min.y;
|
|
581
|
+
positions[2] = min.z;
|
|
582
|
+
positions[3] = max.x;
|
|
583
|
+
positions[4] = min.y;
|
|
584
|
+
positions[5] = min.z;
|
|
585
|
+
positions[6] = max.x;
|
|
586
|
+
positions[7] = max.y;
|
|
587
|
+
positions[8] = min.z;
|
|
588
|
+
positions[9] = min.x;
|
|
589
|
+
positions[10] = max.y;
|
|
590
|
+
positions[11] = min.z;
|
|
591
|
+
positions[12] = min.x;
|
|
592
|
+
positions[13] = min.y;
|
|
593
|
+
positions[14] = max.z;
|
|
594
|
+
positions[15] = max.x;
|
|
595
|
+
positions[16] = min.y;
|
|
596
|
+
positions[17] = max.z;
|
|
597
|
+
positions[18] = max.x;
|
|
598
|
+
positions[19] = max.y;
|
|
599
|
+
positions[20] = max.z;
|
|
600
|
+
positions[21] = min.x;
|
|
601
|
+
positions[22] = max.y;
|
|
602
|
+
positions[23] = max.z;
|
|
603
|
+
attributes.position = new GeometryAttribute_default({
|
|
604
|
+
componentDatatype: ComponentDatatype_default.DOUBLE,
|
|
605
|
+
componentsPerAttribute: 3,
|
|
606
|
+
values: positions
|
|
607
|
+
});
|
|
608
|
+
indices = new Uint16Array(6 * 2 * 3);
|
|
609
|
+
indices[0] = 4;
|
|
610
|
+
indices[1] = 5;
|
|
611
|
+
indices[2] = 6;
|
|
612
|
+
indices[3] = 4;
|
|
613
|
+
indices[4] = 6;
|
|
614
|
+
indices[5] = 7;
|
|
615
|
+
indices[6] = 1;
|
|
616
|
+
indices[7] = 0;
|
|
617
|
+
indices[8] = 3;
|
|
618
|
+
indices[9] = 1;
|
|
619
|
+
indices[10] = 3;
|
|
620
|
+
indices[11] = 2;
|
|
621
|
+
indices[12] = 1;
|
|
622
|
+
indices[13] = 6;
|
|
623
|
+
indices[14] = 5;
|
|
624
|
+
indices[15] = 1;
|
|
625
|
+
indices[16] = 2;
|
|
626
|
+
indices[17] = 6;
|
|
627
|
+
indices[18] = 2;
|
|
628
|
+
indices[19] = 3;
|
|
629
|
+
indices[20] = 7;
|
|
630
|
+
indices[21] = 2;
|
|
631
|
+
indices[22] = 7;
|
|
632
|
+
indices[23] = 6;
|
|
633
|
+
indices[24] = 3;
|
|
634
|
+
indices[25] = 0;
|
|
635
|
+
indices[26] = 4;
|
|
636
|
+
indices[27] = 3;
|
|
637
|
+
indices[28] = 4;
|
|
638
|
+
indices[29] = 7;
|
|
639
|
+
indices[30] = 0;
|
|
640
|
+
indices[31] = 1;
|
|
641
|
+
indices[32] = 5;
|
|
642
|
+
indices[33] = 0;
|
|
643
|
+
indices[34] = 5;
|
|
644
|
+
indices[35] = 4;
|
|
645
|
+
}
|
|
646
|
+
const diff = Cartesian3_default.subtract(max, min, diffScratch);
|
|
647
|
+
const radius = Cartesian3_default.magnitude(diff) * 0.5;
|
|
648
|
+
if (defined_default(boxGeometry._offsetAttribute)) {
|
|
649
|
+
const length = positions.length;
|
|
650
|
+
const offsetValue = boxGeometry._offsetAttribute === GeometryOffsetAttribute_default.NONE ? 0 : 1;
|
|
651
|
+
const applyOffset = new Uint8Array(length / 3).fill(offsetValue);
|
|
652
|
+
attributes.applyOffset = new GeometryAttribute_default({
|
|
653
|
+
componentDatatype: ComponentDatatype_default.UNSIGNED_BYTE,
|
|
654
|
+
componentsPerAttribute: 1,
|
|
655
|
+
values: applyOffset
|
|
656
|
+
});
|
|
657
|
+
}
|
|
658
|
+
return new Geometry_default({
|
|
659
|
+
attributes,
|
|
660
|
+
indices,
|
|
661
|
+
primitiveType: PrimitiveType_default.TRIANGLES,
|
|
662
|
+
boundingSphere: new BoundingSphere_default(Cartesian3_default.ZERO, radius),
|
|
663
|
+
offsetAttribute: boxGeometry._offsetAttribute
|
|
664
|
+
});
|
|
665
|
+
};
|
|
666
|
+
var unitBoxGeometry;
|
|
667
|
+
BoxGeometry.getUnitBox = function() {
|
|
668
|
+
if (!defined_default(unitBoxGeometry)) {
|
|
669
|
+
unitBoxGeometry = BoxGeometry.createGeometry(
|
|
670
|
+
BoxGeometry.fromDimensions({
|
|
671
|
+
dimensions: new Cartesian3_default(1, 1, 1),
|
|
672
|
+
vertexFormat: VertexFormat_default.POSITION_ONLY
|
|
673
|
+
})
|
|
674
|
+
);
|
|
675
|
+
}
|
|
676
|
+
return unitBoxGeometry;
|
|
677
|
+
};
|
|
678
|
+
var BoxGeometry_default = BoxGeometry;
|
|
679
|
+
|
|
680
|
+
export {
|
|
681
|
+
BoxGeometry_default
|
|
682
|
+
};
|