@rtzh/engine 0.0.11 → 0.0.12
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 +656 -518
- package/Build/Workers/{chunk-23CHWHW6.js → chunk-2QUYHF2A.js} +4 -4
- package/Build/Workers/{chunk-DHWZGIOA.js → chunk-3J7LZYZG.js} +5 -5
- package/Build/Workers/{chunk-F4Q3VOCC.js → chunk-3KDCIRQI.js} +7 -7
- package/Build/Workers/{chunk-IVDXHQYL.js → chunk-3M6XQXJL.js} +5 -5
- package/Build/Workers/{chunk-K6PDZWHZ.js → chunk-3P5AO3U5.js} +5 -5
- package/Build/Workers/{chunk-FUFHIXPT.js → chunk-4DH5OOWE.js} +4 -4
- package/Build/Workers/{chunk-GDHDJK32.js → chunk-4G6JR2MZ.js} +10 -10
- package/Build/Workers/{chunk-5WKGRIN6.js → chunk-4VMTI2WC.js} +6 -6
- package/Build/Workers/{chunk-5D3ECYS3.js → chunk-55JFCPW4.js} +4 -4
- package/Build/Workers/{chunk-3CD4WIF4.js → chunk-5CVGPIDD.js} +2 -2
- package/Build/Workers/{chunk-FYW5UQ24.js → chunk-6JO3MGIQ.js} +12 -12
- package/Build/Workers/{chunk-DLRIAMQF.js → chunk-6SYRFK5R.js} +2 -2
- package/Build/Workers/{chunk-ATC2WXI4.js → chunk-6TITDWW4.js} +17 -17
- package/Build/Workers/{chunk-7EU3DIKZ.js → chunk-6ZPTOV5S.js} +18 -18
- package/Build/Workers/{chunk-MJVNNURF.js → chunk-74FGX7I7.js} +12 -12
- package/Build/Workers/{chunk-KMZXZUA7.js → chunk-7DG7QQQ6.js} +5 -5
- package/Build/Workers/{chunk-4BJHO56J.js → chunk-7DUCNF2V.js} +6 -6
- package/Build/Workers/{chunk-CTARL7CY.js → chunk-A3KVKXRR.js} +13 -13
- package/Build/Workers/{chunk-6HB2DMC2.js → chunk-A3OQ66NS.js} +16 -16
- package/Build/Workers/{chunk-5SVTAJRH.js → chunk-ADOJA3C4.js} +12 -12
- package/Build/Workers/{chunk-DKJMD2HX.js → chunk-AM7WOPMS.js} +6 -6
- package/Build/Workers/{chunk-6RUDXAFC.js → chunk-AUWAGN3U.js} +16 -16
- package/Build/Workers/{chunk-AEURJQ3B.js → chunk-B3SSRLUO.js} +2 -2
- package/Build/Workers/{chunk-ET7LWDHA.js → chunk-B7PKU4HH.js} +2 -2
- package/Build/Workers/{chunk-GPWELPVQ.js → chunk-B7SQOHFY.js} +7 -7
- package/Build/Workers/{chunk-F7IITURY.js → chunk-BGIF6VMP.js} +3 -3
- package/Build/Workers/{chunk-72YPCD72.js → chunk-BHYR5M4Y.js} +17 -17
- package/Build/Workers/{chunk-243UEBJF.js → chunk-BIPYGVES.js} +10 -10
- package/Build/Workers/{chunk-6BIU5AL4.js → chunk-BU5W4J4F.js} +10 -10
- package/Build/Workers/{chunk-4GPHI5UY.js → chunk-C3DT73MC.js} +10 -10
- package/Build/Workers/{chunk-IXM65GBF.js → chunk-CD2WSWPY.js} +4 -4
- package/Build/Workers/{chunk-HFCJLXTG.js → chunk-CHAPQYGD.js} +1 -1
- package/Build/Workers/{chunk-2UNHFFAZ.js → chunk-CXC4JSSY.js} +5 -5
- package/Build/Workers/{chunk-6MYDYE24.js → chunk-DB2NML4I.js} +1 -1
- package/Build/Workers/{chunk-32ZGDYJY.js → chunk-DKP3PVXJ.js} +18 -18
- package/Build/Workers/{chunk-CV5JLCHF.js → chunk-DLNCIAY5.js} +13 -13
- package/Build/Workers/{chunk-FD62YGTB.js → chunk-DMQ2K2CH.js} +7 -7
- package/Build/Workers/{chunk-J766O3PA.js → chunk-DN54YAFV.js} +4 -4
- package/Build/Workers/{chunk-7AS3X42P.js → chunk-E3YEHNIJ.js} +10 -10
- package/Build/Workers/{chunk-4NAHNN5G.js → chunk-ECYQUWGD.js} +10 -10
- package/Build/Workers/{chunk-54AFUJNV.js → chunk-EUE3UD5F.js} +11 -11
- package/Build/Workers/{chunk-DAYNPAVN.js → chunk-EXMUTZB4.js} +2 -2
- package/Build/Workers/{chunk-54LZ6OUD.js → chunk-F5SRLVVZ.js} +17 -17
- package/Build/Workers/{chunk-EWDHM5NC.js → chunk-FBSLGF4L.js} +1 -1
- package/Build/Workers/{chunk-565HBO3F.js → chunk-FNX2KJDD.js} +6 -6
- package/Build/Workers/{chunk-IYAZCFAC.js → chunk-FPEAW6NQ.js} +6 -6
- package/Build/Workers/{chunk-CQ5PWUMS.js → chunk-GAZENUEZ.js} +1 -1
- package/Build/Workers/{chunk-7BOVULMD.js → chunk-GBB5VIA3.js} +2 -2
- package/Build/Workers/{chunk-7R74V5Z3.js → chunk-HTMJEEON.js} +8 -8
- package/Build/Workers/{chunk-I5JHYEIE.js → chunk-HZ4N44YJ.js} +8 -8
- package/Build/Workers/{chunk-5UKR42KW.js → chunk-I4CJV4A3.js} +14 -14
- package/Build/Workers/{chunk-3L7XBXFS.js → chunk-IB22JEKK.js} +5 -5
- package/Build/Workers/{chunk-F6JVBOM5.js → chunk-IG64RWHT.js} +11 -11
- package/Build/Workers/{chunk-6AUSOZOL.js → chunk-IK5A56IF.js} +7 -7
- package/Build/Workers/{chunk-I3VVEQQ6.js → chunk-IMC7L6CL.js} +9 -9
- package/Build/Workers/{chunk-JRPAFYGJ.js → chunk-IPBVNANG.js} +17 -17
- package/Build/Workers/{chunk-6J63N735.js → chunk-IUIXI2XJ.js} +6 -6
- package/Build/Workers/{chunk-CGAHG2LR.js → chunk-J3WRL2GC.js} +2 -2
- package/Build/Workers/{chunk-AMJRLIO3.js → chunk-JF6HRK66.js} +11 -11
- package/Build/Workers/{chunk-2ZR6KBRW.js → chunk-JFOADEL2.js} +8 -8
- package/Build/Workers/{chunk-KGQGZ7PF.js → chunk-JNSU4PGT.js} +12 -12
- package/Build/Workers/{chunk-6ZF4QOFM.js → chunk-JPORXJB2.js} +6 -6
- package/Build/Workers/{chunk-6YSUD2OH.js → chunk-JTH56QYP.js} +7 -7
- package/Build/Workers/{chunk-G7PGTG3P.js → chunk-K5QIQSHR.js} +13 -13
- package/Build/Workers/{chunk-H33FCT5U.js → chunk-KN3RXSGH.js} +9 -9
- package/Build/Workers/{chunk-4SC4KVID.js → chunk-KTUWGLXR.js} +10 -10
- package/Build/Workers/{chunk-B3FJJGCH.js → chunk-LBVC3PWG.js} +4 -4
- package/Build/Workers/{chunk-6YT2LZ3Z.js → chunk-LKUMU7VD.js} +4 -4
- package/Build/Workers/{chunk-FARHIBOA.js → chunk-LUA5G72O.js} +1 -1
- package/Build/Workers/{chunk-7X6CLAD2.js → chunk-MSYP7LPX.js} +9 -9
- package/Build/Workers/{chunk-LGMONS4O.js → chunk-MZWPVY6R.js} +7 -7
- package/Build/Workers/{chunk-4SZJ3KRD.js → chunk-N557LIW2.js} +3 -3
- package/Build/Workers/{chunk-45SKJP37.js → chunk-NGTONEWG.js} +4 -4
- package/Build/Workers/{chunk-FRUZKVBP.js → chunk-NLAR3AKL.js} +6 -6
- package/Build/Workers/{chunk-APOATHFZ.js → chunk-OF3WIS5R.js} +4 -4
- package/Build/Workers/{chunk-BQRZMSMM.js → chunk-OHWONB5E.js} +4 -4
- package/Build/Workers/{chunk-QDNIPHD7.js → chunk-OTYYR4HA.js} +12 -12
- package/Build/Workers/{chunk-GCZNJHST.js → chunk-OVJADFWR.js} +5 -5
- package/Build/Workers/{chunk-MPHEIDPB.js → chunk-OWR6KGDV.js} +1 -1
- package/Build/Workers/{chunk-7QPQGSS3.js → chunk-PEZ2F4AC.js} +5 -5
- package/Build/Workers/{chunk-553BNJPP.js → chunk-PJEU2YDM.js} +8 -8
- package/Build/Workers/{chunk-7KOMCIWI.js → chunk-PNJB4ARY.js} +8 -8
- package/Build/Workers/{chunk-2CZLDPAQ.js → chunk-PSGQHI7V.js} +2 -2
- package/Build/Workers/{chunk-EDFDPOY6.js → chunk-PTBF7YWH.js} +1 -1
- package/Build/Workers/{chunk-BIJHMMCD.js → chunk-QICSE57I.js} +4 -4
- package/Build/Workers/{chunk-2VN5W6HA.js → chunk-QM26UZ4G.js} +5 -5
- package/Build/Workers/{chunk-4IXXMXPJ.js → chunk-QMUEVSBY.js} +10 -10
- package/Build/Workers/{chunk-HKSICPYV.js → chunk-QNTU5YFH.js} +1 -1
- package/Build/Workers/{chunk-J2S3WMUZ.js → chunk-RLMDD7LI.js} +6 -6
- package/Build/Workers/{chunk-E7SFSMUX.js → chunk-RWZLJD75.js} +2 -2
- package/Build/Workers/{chunk-4UBPBH32.js → chunk-SCDH4DI7.js} +5 -5
- package/Build/Workers/{chunk-CQB3KRGK.js → chunk-SKWZGTC6.js} +7 -7
- package/Build/Workers/{chunk-5W4ISZGQ.js → chunk-SUTV4NUG.js} +14 -14
- package/Build/Workers/{chunk-J2CUNLQP.js → chunk-T3CBEYZZ.js} +9 -9
- package/Build/Workers/{chunk-5T4DXPEL.js → chunk-T6IEXU63.js} +8 -8
- package/Build/Workers/{chunk-DPTYP7J3.js → chunk-TBIPO5CH.js} +1 -1
- package/Build/Workers/{chunk-37WPNI52.js → chunk-TEAYSUTK.js} +1 -1
- package/Build/Workers/{chunk-5L3PEFKO.js → chunk-TSB4I6D6.js} +1 -1
- package/Build/Workers/{chunk-2ZXYLPPT.js → chunk-ULWGQGIU.js} +2 -2
- package/Build/Workers/{chunk-GZMTBQM2.js → chunk-UTAFOZR6.js} +4 -4
- package/Build/Workers/{chunk-6KA3AJM6.js → chunk-V4BLFYXZ.js} +6 -6
- package/Build/Workers/{chunk-3ZDA3MBK.js → chunk-VH4ZDU2H.js} +6 -6
- package/Build/Workers/{chunk-JUJONRWD.js → chunk-WAJ236EA.js} +11 -11
- package/Build/Workers/{chunk-56MKFDJH.js → chunk-WDTR5ZPN.js} +12 -12
- package/Build/Workers/{chunk-FNI64UKI.js → chunk-WJ74Z47X.js} +5 -5
- package/Build/Workers/{chunk-3PWX65TL.js → chunk-WKYBYW6H.js} +14 -14
- package/Build/Workers/{chunk-G6PDJHNG.js → chunk-WTKUVRNG.js} +7 -7
- package/Build/Workers/{chunk-HAR6Y2HP.js → chunk-XH535OLG.js} +2 -2
- package/Build/Workers/{chunk-LSGHTNF5.js → chunk-XMN6BU5T.js} +13 -13
- package/Build/Workers/{chunk-ET7K6FSD.js → chunk-Y6KZOXMR.js} +14 -14
- package/Build/Workers/{chunk-42I3QSKJ.js → chunk-YGPS3DPM.js} +1 -1
- package/Build/Workers/{chunk-6TWMNB7Q.js → chunk-YMGBVMJH.js} +6 -6
- package/Build/Workers/{chunk-32GOIUYC.js → chunk-ZESIYF5P.js} +5 -5
- package/Build/Workers/{chunk-2LMIHR6B.js → chunk-ZSDJVMQL.js} +2 -2
- 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 +33 -33
- package/Build/Workers/createCoplanarPolygonOutlineGeometry.js +31 -31
- package/Build/Workers/createCorridorGeometry.js +29 -29
- package/Build/Workers/createCorridorOutlineGeometry.js +28 -28
- 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 +22 -22
- package/Build/Workers/createPlaneGeometry.js +16 -16
- package/Build/Workers/createPlaneOutlineGeometry.js +15 -15
- package/Build/Workers/createPolygonGeometry.js +32 -32
- package/Build/Workers/createPolygonOutlineGeometry.js +30 -30
- package/Build/Workers/createPolylineGeometry.js +25 -25
- 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 +20 -20
- package/Build/Workers/createSimplePolylineGeometry.js +23 -23
- 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 +23 -23
- package/Build/Workers/decodeDraco.js +10 -10
- package/Build/Workers/decodeGoogleEarthEnterprisePacket.js +5 -5
- 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/README.md +69 -69
- package/Source/Scene/Model/CustomShader.js +5 -4
- package/Source/Scene/Model/CustomShaderPipelineStage.js +11 -5
- package/Source/Scene/Model/CustomShaderTranslucencyMode.js +8 -0
- package/Source/Scene/Model/MaterialPipelineStage.js +919 -919
- package/Source/Scene/Model/ModelDrawCommand.js +8 -2
- package/Source/Shaders/Model/CPUStylingStageFS.glsl +1 -1
- package/Source/Shaders/Model/CPUStylingStageFS.js +1 -1
- package/Source/Shaders/Model/CPUStylingStageVS.glsl +1 -1
- package/Source/Shaders/Model/CPUStylingStageVS.js +1 -1
- package/Source/Shaders/Model/ModelFS.glsl +13 -0
- package/Source/Shaders/Model/ModelFS.js +13 -0
- package/Source/ThirdParty/Workers/zip-web-worker.js +1 -1
- package/index.d.ts +7 -1
- package/index.js +90 -90
- package/package.json +1 -1
- package/Build/Workers/chunk-27JI7F7B.js +0 -101
- package/Build/Workers/chunk-2B7VLWK3.js +0 -58
- package/Build/Workers/chunk-2OWEFNS4.js +0 -97
- package/Build/Workers/chunk-2Y2KA6PM.js +0 -387
- package/Build/Workers/chunk-2YAONTGQ.js +0 -476
- package/Build/Workers/chunk-324L25HV.js +0 -352
- package/Build/Workers/chunk-3EZBCDBK.js +0 -439
- package/Build/Workers/chunk-3JPA6GA3.js +0 -837
- package/Build/Workers/chunk-3NSMZ3XW.js +0 -1067
- package/Build/Workers/chunk-3QLIXW6V.js +0 -778
- package/Build/Workers/chunk-3SVEN5QG.js +0 -288
- package/Build/Workers/chunk-3WRJXCJS.js +0 -497
- package/Build/Workers/chunk-3WT5VKYM.js +0 -101
- package/Build/Workers/chunk-3YO7HM5H.js +0 -476
- package/Build/Workers/chunk-3ZJ6X3BW.js +0 -57
- package/Build/Workers/chunk-4C4UR2S6.js +0 -682
- package/Build/Workers/chunk-4CQDMEZY.js +0 -2058
- package/Build/Workers/chunk-4DIL24GG.js +0 -1460
- package/Build/Workers/chunk-4DQ3ODGO.js +0 -629
- package/Build/Workers/chunk-4FEDW3WT.js +0 -299
- package/Build/Workers/chunk-4GZLJPDW.js +0 -8366
- package/Build/Workers/chunk-52UUGJQ6.js +0 -288
- package/Build/Workers/chunk-53AFSDGM.js +0 -37
- package/Build/Workers/chunk-54SSO7NS.js +0 -352
- package/Build/Workers/chunk-5A4OWIAY.js +0 -511
- package/Build/Workers/chunk-5DPCF65K.js +0 -162
- package/Build/Workers/chunk-5IOA3NCI.js +0 -8366
- package/Build/Workers/chunk-5MCUZL44.js +0 -455
- package/Build/Workers/chunk-5RMI6LFO.js +0 -692
- package/Build/Workers/chunk-5UHIRI2A.js +0 -1800
- package/Build/Workers/chunk-5VDZEVQX.js +0 -788
- package/Build/Workers/chunk-5VWFNSLF.js +0 -44
- package/Build/Workers/chunk-5WAMP6Z4.js +0 -299
- package/Build/Workers/chunk-5ZMMQ7HE.js +0 -37
- package/Build/Workers/chunk-64VDO4BW.js +0 -114
- package/Build/Workers/chunk-664SI23B.js +0 -368
- package/Build/Workers/chunk-6BNIWSFA.js +0 -940
- package/Build/Workers/chunk-6F4HKBHD.js +0 -352
- package/Build/Workers/chunk-6GNLKYQO.js +0 -114
- package/Build/Workers/chunk-72Q33KL6.js +0 -280
- package/Build/Workers/chunk-73EGVDOC.js +0 -398
- package/Build/Workers/chunk-74HENCNJ.js +0 -171
- package/Build/Workers/chunk-763Q2YKY.js +0 -1483
- package/Build/Workers/chunk-7BQLJI3P.js +0 -692
- package/Build/Workers/chunk-7C2MOK27.js +0 -57
- package/Build/Workers/chunk-7EFYX4FL.js +0 -642
- package/Build/Workers/chunk-7MMYV5PM.js +0 -288
- package/Build/Workers/chunk-7RAUHLDW.js +0 -497
- package/Build/Workers/chunk-ADQVXDEJ.js +0 -2719
- package/Build/Workers/chunk-AFZVC5JN.js +0 -778
- package/Build/Workers/chunk-ASGXCLGL.js +0 -97
- package/Build/Workers/chunk-AVNHAFMV.js +0 -114
- package/Build/Workers/chunk-AWMYTHW4.js +0 -101
- package/Build/Workers/chunk-B5ZUBUPB.js +0 -398
- package/Build/Workers/chunk-BCYABDWF.js +0 -3514
- package/Build/Workers/chunk-BGG3BP2R.js +0 -280
- package/Build/Workers/chunk-BHTWF7UG.js +0 -73
- package/Build/Workers/chunk-BJHSYHOQ.js +0 -97
- package/Build/Workers/chunk-BLZILZWF.js +0 -2719
- package/Build/Workers/chunk-BM6ZG63T.js +0 -171
- package/Build/Workers/chunk-BYTLHM7N.js +0 -414
- package/Build/Workers/chunk-C3G2NDXM.js +0 -162
- package/Build/Workers/chunk-CCPKBCZD.js +0 -171
- package/Build/Workers/chunk-CMAG5O53.js +0 -1483
- package/Build/Workers/chunk-CR6BZUQC.js +0 -1443
- package/Build/Workers/chunk-CXDJ7YNS.js +0 -305
- package/Build/Workers/chunk-D3FNWB3Q.js +0 -138
- package/Build/Workers/chunk-DBM2NHJ5.js +0 -352
- package/Build/Workers/chunk-DIA4J2DB.js +0 -497
- package/Build/Workers/chunk-DVTKM7FF.js +0 -256
- package/Build/Workers/chunk-E3NHG3TR.js +0 -1460
- package/Build/Workers/chunk-E5BSDIGY.js +0 -139
- package/Build/Workers/chunk-EDVAQGDJ.js +0 -2719
- package/Build/Workers/chunk-EE4T7VKT.js +0 -368
- package/Build/Workers/chunk-EFHDO3L2.js +0 -102
- package/Build/Workers/chunk-EJVGOIOW.js +0 -1317
- package/Build/Workers/chunk-ENIF6OQ5.js +0 -139
- package/Build/Workers/chunk-EPVJ5OOH.js +0 -8366
- package/Build/Workers/chunk-ERYOZBVC.js +0 -171
- package/Build/Workers/chunk-F2BQY3GT.js +0 -1317
- package/Build/Workers/chunk-FCSN7XOU.js +0 -55
- package/Build/Workers/chunk-FHM3HFYM.js +0 -1045
- package/Build/Workers/chunk-FRF5LWIM.js +0 -299
- package/Build/Workers/chunk-FSYQE5XE.js +0 -55
- package/Build/Workers/chunk-FTHCZAWE.js +0 -44
- package/Build/Workers/chunk-FTXEOX64.js +0 -1067
- package/Build/Workers/chunk-FYZVCB32.js +0 -75
- package/Build/Workers/chunk-G2KELS4I.js +0 -138
- package/Build/Workers/chunk-GAQXLBFJ.js +0 -1483
- package/Build/Workers/chunk-GCPD37SU.js +0 -1054
- package/Build/Workers/chunk-GEH53ULL.js +0 -299
- package/Build/Workers/chunk-GJFIEALZ.js +0 -387
- package/Build/Workers/chunk-GLA2PT5T.js +0 -476
- package/Build/Workers/chunk-GMOKUODV.js +0 -352
- package/Build/Workers/chunk-GNGGEDZK.js +0 -352
- package/Build/Workers/chunk-GNGZG6C6.js +0 -162
- package/Build/Workers/chunk-GWLEBUVI.js +0 -2058
- package/Build/Workers/chunk-GYIGOBV2.js +0 -439
- package/Build/Workers/chunk-H2MM7FMU.js +0 -1054
- package/Build/Workers/chunk-H3BSU65R.js +0 -1067
- package/Build/Workers/chunk-HBL3QZ2L.js +0 -642
- package/Build/Workers/chunk-HC6DDPFU.js +0 -198
- package/Build/Workers/chunk-HEFUSHA6.js +0 -3514
- package/Build/Workers/chunk-HEKLTOOR.js +0 -1443
- package/Build/Workers/chunk-HHN2M3ES.js +0 -682
- package/Build/Workers/chunk-HHUKBKWS.js +0 -414
- package/Build/Workers/chunk-HKII76UV.js +0 -1800
- package/Build/Workers/chunk-HLIXASKN.js +0 -476
- package/Build/Workers/chunk-HM4MH5IG.js +0 -138
- package/Build/Workers/chunk-HWUHUN7Z.js +0 -387
- package/Build/Workers/chunk-I7LWED3Z.js +0 -101
- package/Build/Workers/chunk-IB2XQV6U.js +0 -101
- package/Build/Workers/chunk-IC2JHDCI.js +0 -114
- package/Build/Workers/chunk-IEBTKCMB.js +0 -497
- package/Build/Workers/chunk-IEEHNZ36.js +0 -241
- package/Build/Workers/chunk-IHOM6QXV.js +0 -439
- package/Build/Workers/chunk-IK4D64GY.js +0 -439
- package/Build/Workers/chunk-IKMU6YHA.js +0 -288
- package/Build/Workers/chunk-IRG63TBY.js +0 -55
- package/Build/Workers/chunk-IY53MZW2.js +0 -58
- package/Build/Workers/chunk-IYXLSOLF.js +0 -692
- package/Build/Workers/chunk-J4PNHKWO.js +0 -2719
- package/Build/Workers/chunk-JFLJS4QU.js +0 -1443
- package/Build/Workers/chunk-JJD7S2CV.js +0 -3514
- package/Build/Workers/chunk-JJWMDUOJ.js +0 -44
- package/Build/Workers/chunk-JM4TFRYQ.js +0 -163
- package/Build/Workers/chunk-JNNIPGJU.js +0 -163
- package/Build/Workers/chunk-JOQFYJZ2.js +0 -692
- package/Build/Workers/chunk-JQ7IQ56G.js +0 -837
- package/Build/Workers/chunk-JWEZXKBE.js +0 -73
- package/Build/Workers/chunk-K2PUGKEO.js +0 -2058
- package/Build/Workers/chunk-KFOT2YV5.js +0 -138
- package/Build/Workers/chunk-KMJD5APO.js +0 -162
- package/Build/Workers/chunk-KOVKY3HB.js +0 -198
- package/Build/Workers/chunk-KQ4ET526.js +0 -163
- package/Build/Workers/chunk-KWFCDTXS.js +0 -940
- package/Build/Workers/chunk-KWX3CJFT.js +0 -198
- package/Build/Workers/chunk-L2QIVAZV.js +0 -3514
- package/Build/Workers/chunk-L33HPENB.js +0 -75
- package/Build/Workers/chunk-LENXRROQ.js +0 -398
- package/Build/Workers/chunk-LFQ63ZU4.js +0 -455
- package/Build/Workers/chunk-LHJDLAZT.js +0 -1483
- package/Build/Workers/chunk-LJHG4PJQ.js +0 -305
- package/Build/Workers/chunk-LNS36LUZ.js +0 -2058
- package/Build/Workers/chunk-LPJHTJDQ.js +0 -305
- package/Build/Workers/chunk-LRW2QXMW.js +0 -352
- package/Build/Workers/chunk-LUUEGFLT.js +0 -305
- package/Build/Workers/chunk-LVU4AZC6.js +0 -219
- package/Build/Workers/chunk-LW2VGHDM.js +0 -1800
- package/Build/Workers/chunk-LXM2ZC4V.js +0 -288
- package/Build/Workers/chunk-LXMLERGC.js +0 -1067
- package/Build/Workers/chunk-LXOUU2I5.js +0 -219
- package/Build/Workers/chunk-M7EEEKQE.js +0 -476
- package/Build/Workers/chunk-MB2ZJQR3.js +0 -55
- package/Build/Workers/chunk-MCJRXFRL.js +0 -102
- package/Build/Workers/chunk-MCNY7SPD.js +0 -139
- package/Build/Workers/chunk-MEFWVMG6.js +0 -788
- package/Build/Workers/chunk-MHEKNHOF.js +0 -511
- package/Build/Workers/chunk-MLL4AAXV.js +0 -1460
- package/Build/Workers/chunk-MPCZC3G6.js +0 -414
- package/Build/Workers/chunk-MRLJERN3.js +0 -114
- package/Build/Workers/chunk-MWN26ZEM.js +0 -280
- package/Build/Workers/chunk-MXKQUDTP.js +0 -55
- package/Build/Workers/chunk-NEF7XO5W.js +0 -940
- package/Build/Workers/chunk-NIWB6UMY.js +0 -198
- package/Build/Workers/chunk-NJEG7WRW.js +0 -387
- package/Build/Workers/chunk-NL7US44X.js +0 -171
- package/Build/Workers/chunk-NOJAQPXU.js +0 -102
- package/Build/Workers/chunk-NSRZZEHH.js +0 -455
- package/Build/Workers/chunk-NUMQ72QV.js +0 -55
- package/Build/Workers/chunk-NXZJKIYD.js +0 -97
- package/Build/Workers/chunk-O224ZEA5.js +0 -58
- package/Build/Workers/chunk-O4MZOV3C.js +0 -414
- package/Build/Workers/chunk-O5ICO3AS.js +0 -682
- package/Build/Workers/chunk-O5QH7XD5.js +0 -629
- package/Build/Workers/chunk-O6T3T3V3.js +0 -97
- package/Build/Workers/chunk-OAFZ26QL.js +0 -837
- package/Build/Workers/chunk-OBM2JYMG.js +0 -75
- package/Build/Workers/chunk-OBQVOEPZ.js +0 -124
- package/Build/Workers/chunk-OC63Z35M.js +0 -280
- package/Build/Workers/chunk-OD7UYXFV.js +0 -352
- package/Build/Workers/chunk-ODZZZGXK.js +0 -219
- package/Build/Workers/chunk-OEAC5XUG.js +0 -73
- package/Build/Workers/chunk-OFTWEOW2.js +0 -1483
- package/Build/Workers/chunk-OIJH6LAY.js +0 -497
- package/Build/Workers/chunk-OJFVD5ZS.js +0 -778
- package/Build/Workers/chunk-OJNPKCEL.js +0 -73
- package/Build/Workers/chunk-OOIZ7CHP.js +0 -114
- package/Build/Workers/chunk-OQK27J4J.js +0 -139
- package/Build/Workers/chunk-OTDNJAYJ.js +0 -55
- package/Build/Workers/chunk-OX4DGIUJ.js +0 -788
- package/Build/Workers/chunk-PEEYBEL5.js +0 -2058
- package/Build/Workers/chunk-PEUDXOFI.js +0 -241
- package/Build/Workers/chunk-PGYA2CMO.js +0 -642
- package/Build/Workers/chunk-PKXFFIEZ.js +0 -57
- package/Build/Workers/chunk-PQLZOYZE.js +0 -642
- package/Build/Workers/chunk-PSDWIJMU.js +0 -219
- package/Build/Workers/chunk-PU44PXY2.js +0 -75
- package/Build/Workers/chunk-PW3GQAXA.js +0 -3514
- package/Build/Workers/chunk-Q2X2Z7JH.js +0 -241
- package/Build/Workers/chunk-Q2YRPH7V.js +0 -1067
- package/Build/Workers/chunk-Q36VXWGP.js +0 -57
- package/Build/Workers/chunk-Q4XPVYXJ.js +0 -476
- package/Build/Workers/chunk-QEGQDFX2.js +0 -1045
- package/Build/Workers/chunk-QFN5B75P.js +0 -1054
- package/Build/Workers/chunk-QGXE4VZ3.js +0 -55
- package/Build/Workers/chunk-QIEHP7O4.js +0 -280
- package/Build/Workers/chunk-QOLOPE4O.js +0 -1317
- package/Build/Workers/chunk-QY55DT53.js +0 -97
- package/Build/Workers/chunk-R2AFDOIY.js +0 -778
- package/Build/Workers/chunk-R3PTQZ6H.js +0 -44
- package/Build/Workers/chunk-R5U3MYPS.js +0 -198
- package/Build/Workers/chunk-RBLCJVK6.js +0 -73
- package/Build/Workers/chunk-RGD6RGTH.js +0 -138
- package/Build/Workers/chunk-RJ564LVX.js +0 -398
- package/Build/Workers/chunk-RJIH4MDC.js +0 -241
- package/Build/Workers/chunk-RJVB3K2X.js +0 -511
- package/Build/Workers/chunk-RNZ5L3W4.js +0 -387
- package/Build/Workers/chunk-RO7SDGOD.js +0 -352
- package/Build/Workers/chunk-RORZNBGJ.js +0 -299
- package/Build/Workers/chunk-RRBGLANL.js +0 -55
- package/Build/Workers/chunk-RT7PY6BH.js +0 -2719
- package/Build/Workers/chunk-RTJ6L5O4.js +0 -163
- package/Build/Workers/chunk-SAD42JSM.js +0 -102
- package/Build/Workers/chunk-SBR7MW44.js +0 -139
- package/Build/Workers/chunk-SCF2OVAZ.js +0 -219
- package/Build/Workers/chunk-SCNCHSTQ.js +0 -642
- package/Build/Workers/chunk-SFM3GNS2.js +0 -682
- package/Build/Workers/chunk-SG56ZOPD.js +0 -788
- package/Build/Workers/chunk-SHQEATE2.js +0 -1045
- package/Build/Workers/chunk-SJX7UJNW.js +0 -241
- package/Build/Workers/chunk-SKXE77AM.js +0 -139
- package/Build/Workers/chunk-SLYUIIFB.js +0 -455
- package/Build/Workers/chunk-SPL7JK6K.js +0 -1054
- package/Build/Workers/chunk-SPPYSEH2.js +0 -1460
- package/Build/Workers/chunk-SQSWONTJ.js +0 -241
- package/Build/Workers/chunk-SRLJWNU2.js +0 -368
- package/Build/Workers/chunk-SSE2O2SB.js +0 -1460
- package/Build/Workers/chunk-SX6GJD6B.js +0 -837
- package/Build/Workers/chunk-SXISWCV7.js +0 -58
- package/Build/Workers/chunk-SYCWSSRX.js +0 -1443
- package/Build/Workers/chunk-SZELHE7Q.js +0 -163
- package/Build/Workers/chunk-SZQC2TUH.js +0 -368
- package/Build/Workers/chunk-T4LDJBKR.js +0 -124
- package/Build/Workers/chunk-TAWVKT4B.js +0 -58
- package/Build/Workers/chunk-TBASKFFL.js +0 -124
- package/Build/Workers/chunk-TBEKWAR5.js +0 -73
- package/Build/Workers/chunk-TDGGEIZE.js +0 -398
- package/Build/Workers/chunk-TE277WT3.js +0 -280
- package/Build/Workers/chunk-TEZGNCXH.js +0 -8366
- package/Build/Workers/chunk-TFL2ZV77.js +0 -692
- package/Build/Workers/chunk-THWXTO7B.js +0 -57
- package/Build/Workers/chunk-TIQZUI5N.js +0 -44
- package/Build/Workers/chunk-TKJHRY4V.js +0 -511
- package/Build/Workers/chunk-TLXEQ5QY.js +0 -778
- package/Build/Workers/chunk-TQ63SH2Z.js +0 -352
- package/Build/Workers/chunk-TSNKYHSC.js +0 -305
- package/Build/Workers/chunk-TYQ7MNMK.js +0 -37
- package/Build/Workers/chunk-U267N6IJ.js +0 -299
- package/Build/Workers/chunk-U3VI26GL.js +0 -162
- package/Build/Workers/chunk-U77FLUQF.js +0 -368
- package/Build/Workers/chunk-UIMHSWDJ.js +0 -455
- package/Build/Workers/chunk-UIYQEJ5H.js +0 -1054
- package/Build/Workers/chunk-UJ72JOGF.js +0 -511
- package/Build/Workers/chunk-ULWO6TCN.js +0 -352
- package/Build/Workers/chunk-UO3AWZR3.js +0 -352
- package/Build/Workers/chunk-UQSQNTEF.js +0 -368
- package/Build/Workers/chunk-USWXYJRX.js +0 -1045
- package/Build/Workers/chunk-UTDSEOTC.js +0 -288
- package/Build/Workers/chunk-UTXXZ7XH.js +0 -940
- package/Build/Workers/chunk-UUKLWTJC.js +0 -2719
- package/Build/Workers/chunk-UY7I27VQ.js +0 -1800
- package/Build/Workers/chunk-UZXJSLDO.js +0 -3514
- package/Build/Workers/chunk-V2TRFTCU.js +0 -1317
- package/Build/Workers/chunk-V4I3IKAK.js +0 -1460
- package/Build/Workers/chunk-V7QHEF6O.js +0 -1317
- package/Build/Workers/chunk-VFC54WB7.js +0 -940
- package/Build/Workers/chunk-VG7NX64T.js +0 -37
- package/Build/Workers/chunk-VIMRGSM5.js +0 -256
- package/Build/Workers/chunk-VL4QTEZC.js +0 -138
- package/Build/Workers/chunk-VLB25GGE.js +0 -439
- package/Build/Workers/chunk-VP2OAU4C.js +0 -124
- package/Build/Workers/chunk-VVKDT4J7.js +0 -837
- package/Build/Workers/chunk-VXDOONLH.js +0 -162
- package/Build/Workers/chunk-W2EK42GB.js +0 -75
- package/Build/Workers/chunk-W2OMUTYA.js +0 -1800
- package/Build/Workers/chunk-W3LNGBJU.js +0 -44
- package/Build/Workers/chunk-W4DV7TAL.js +0 -8366
- package/Build/Workers/chunk-WDMHDACX.js +0 -1800
- package/Build/Workers/chunk-WF224D4A.js +0 -642
- package/Build/Workers/chunk-WFTPZ3ZX.js +0 -788
- package/Build/Workers/chunk-WHOEQFL4.js +0 -682
- package/Build/Workers/chunk-WLIQ26XU.js +0 -455
- package/Build/Workers/chunk-WOEPS2UA.js +0 -171
- package/Build/Workers/chunk-WWLWTSMV.js +0 -55
- package/Build/Workers/chunk-WX2ZANQC.js +0 -940
- package/Build/Workers/chunk-WZJEAPEP.js +0 -629
- package/Build/Workers/chunk-XEB4GEXW.js +0 -629
- package/Build/Workers/chunk-XFKTM6GN.js +0 -2058
- package/Build/Workers/chunk-XHGB5IOL.js +0 -1045
- package/Build/Workers/chunk-XHNWVOIJ.js +0 -219
- package/Build/Workers/chunk-XKBR7TJB.js +0 -398
- package/Build/Workers/chunk-XMIENZET.js +0 -256
- package/Build/Workers/chunk-XNKQLSHI.js +0 -629
- package/Build/Workers/chunk-XOXF37BU.js +0 -1317
- package/Build/Workers/chunk-XXD3TQVI.js +0 -837
- package/Build/Workers/chunk-XYRT4RDI.js +0 -1045
- package/Build/Workers/chunk-XZINQPR6.js +0 -124
- package/Build/Workers/chunk-XZN7KCY3.js +0 -1054
- package/Build/Workers/chunk-YC6PFDXQ.js +0 -8366
- package/Build/Workers/chunk-YCTK62TY.js +0 -1483
- package/Build/Workers/chunk-YFJB3US4.js +0 -102
- package/Build/Workers/chunk-YLKTSY65.js +0 -414
- package/Build/Workers/chunk-YLSZYTTO.js +0 -102
- package/Build/Workers/chunk-YMXATXRN.js +0 -57
- package/Build/Workers/chunk-YQXKIGXX.js +0 -414
- package/Build/Workers/chunk-YR3LX3PR.js +0 -497
- package/Build/Workers/chunk-YVRD2PO5.js +0 -124
- package/Build/Workers/chunk-YWPKCFKZ.js +0 -1443
- package/Build/Workers/chunk-YWSB7PZP.js +0 -511
- package/Build/Workers/chunk-Z24A5EMJ.js +0 -387
- package/Build/Workers/chunk-Z4IW5XUY.js +0 -788
- package/Build/Workers/chunk-Z5MHVJGN.js +0 -778
- package/Build/Workers/chunk-ZBRVFEGF.js +0 -256
- package/Build/Workers/chunk-ZCPCQJBX.js +0 -198
- package/Build/Workers/chunk-ZEEVOFG2.js +0 -256
- package/Build/Workers/chunk-ZFHCP7RN.js +0 -692
- package/Build/Workers/chunk-ZHHEFNHL.js +0 -37
- package/Build/Workers/chunk-ZI5GDNEV.js +0 -305
- package/Build/Workers/chunk-ZS7KQSEM.js +0 -439
- package/Build/Workers/chunk-ZVXETFPZ.js +0 -1067
- package/Build/Workers/chunk-ZXZTWDTN.js +0 -682
- package/Build/Workers/chunk-ZYTMDBCR.js +0 -1443
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.8
|
|
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-C3G2NDXM.js";
|
|
29
|
-
import {
|
|
30
|
-
IntersectionTests_default,
|
|
31
|
-
Ray_default
|
|
32
|
-
} from "./chunk-LGMONS4O.js";
|
|
33
|
-
import {
|
|
34
|
-
Plane_default
|
|
35
|
-
} from "./chunk-BM6ZG63T.js";
|
|
36
|
-
import {
|
|
37
|
-
Transforms_default
|
|
38
|
-
} from "./chunk-EPVJ5OOH.js";
|
|
39
|
-
import {
|
|
40
|
-
Cartesian4_default,
|
|
41
|
-
Matrix4_default
|
|
42
|
-
} from "./chunk-GWLEBUVI.js";
|
|
43
|
-
import {
|
|
44
|
-
Cartesian2_default,
|
|
45
|
-
Ellipsoid_default
|
|
46
|
-
} from "./chunk-KMZXZUA7.js";
|
|
47
|
-
import {
|
|
48
|
-
Cartesian3_default
|
|
49
|
-
} from "./chunk-HEKLTOOR.js";
|
|
50
|
-
import {
|
|
51
|
-
Check_default,
|
|
52
|
-
DeveloperError_default
|
|
53
|
-
} from "./chunk-2ZXYLPPT.js";
|
|
54
|
-
import {
|
|
55
|
-
defined_default
|
|
56
|
-
} from "./chunk-PU44PXY2.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
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.6
|
|
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
|
-
|
|
27
|
-
// packages/engine/Source/Core/GeometryOffsetAttribute.js
|
|
28
|
-
var GeometryOffsetAttribute = {
|
|
29
|
-
NONE: 0,
|
|
30
|
-
TOP: 1,
|
|
31
|
-
ALL: 2
|
|
32
|
-
};
|
|
33
|
-
var GeometryOffsetAttribute_default = Object.freeze(GeometryOffsetAttribute);
|
|
34
|
-
|
|
35
|
-
export {
|
|
36
|
-
GeometryOffsetAttribute_default
|
|
37
|
-
};
|
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
-
* Version 0.0.6
|
|
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
|
-
IndexDatatype_default
|
|
28
|
-
} from "./chunk-E5BSDIGY.js";
|
|
29
|
-
import {
|
|
30
|
-
Math_default
|
|
31
|
-
} from "./chunk-DIA4J2DB.js";
|
|
32
|
-
import {
|
|
33
|
-
DeveloperError_default
|
|
34
|
-
} from "./chunk-SZELHE7Q.js";
|
|
35
|
-
import {
|
|
36
|
-
defined_default
|
|
37
|
-
} from "./chunk-OBM2JYMG.js";
|
|
38
|
-
|
|
39
|
-
// packages/engine/Source/Core/TerrainProvider.js
|
|
40
|
-
function TerrainProvider() {
|
|
41
|
-
DeveloperError_default.throwInstantiationError();
|
|
42
|
-
}
|
|
43
|
-
Object.defineProperties(TerrainProvider.prototype, {
|
|
44
|
-
/**
|
|
45
|
-
* Gets an event that is raised when the terrain provider encounters an asynchronous error. By subscribing
|
|
46
|
-
* to the event, you will be notified of the error and can potentially recover from it. Event listeners
|
|
47
|
-
* are passed an instance of {@link TileProviderError}.
|
|
48
|
-
* @memberof TerrainProvider.prototype
|
|
49
|
-
* @type {Event<TerrainProvider.ErrorEvent>}
|
|
50
|
-
* @readonly
|
|
51
|
-
*/
|
|
52
|
-
errorEvent: {
|
|
53
|
-
get: DeveloperError_default.throwInstantiationError
|
|
54
|
-
},
|
|
55
|
-
/**
|
|
56
|
-
* Gets the credit to display when this terrain provider is active. Typically this is used to credit
|
|
57
|
-
* the source of the terrain.
|
|
58
|
-
* @memberof TerrainProvider.prototype
|
|
59
|
-
* @type {Credit}
|
|
60
|
-
* @readonly
|
|
61
|
-
*/
|
|
62
|
-
credit: {
|
|
63
|
-
get: DeveloperError_default.throwInstantiationError
|
|
64
|
-
},
|
|
65
|
-
/**
|
|
66
|
-
* Gets the tiling scheme used by the provider.
|
|
67
|
-
* @memberof TerrainProvider.prototype
|
|
68
|
-
* @type {TilingScheme}
|
|
69
|
-
* @readonly
|
|
70
|
-
*/
|
|
71
|
-
tilingScheme: {
|
|
72
|
-
get: DeveloperError_default.throwInstantiationError
|
|
73
|
-
},
|
|
74
|
-
/**
|
|
75
|
-
* Gets a value indicating whether or not the provider includes a water mask. The water mask
|
|
76
|
-
* indicates which areas of the globe are water rather than land, so they can be rendered
|
|
77
|
-
* as a reflective surface with animated waves.
|
|
78
|
-
* @memberof TerrainProvider.prototype
|
|
79
|
-
* @type {boolean}
|
|
80
|
-
* @readonly
|
|
81
|
-
*/
|
|
82
|
-
hasWaterMask: {
|
|
83
|
-
get: DeveloperError_default.throwInstantiationError
|
|
84
|
-
},
|
|
85
|
-
/**
|
|
86
|
-
* Gets a value indicating whether or not the requested tiles include vertex normals.
|
|
87
|
-
* @memberof TerrainProvider.prototype
|
|
88
|
-
* @type {boolean}
|
|
89
|
-
* @readonly
|
|
90
|
-
*/
|
|
91
|
-
hasVertexNormals: {
|
|
92
|
-
get: DeveloperError_default.throwInstantiationError
|
|
93
|
-
},
|
|
94
|
-
/**
|
|
95
|
-
* Gets an object that can be used to determine availability of terrain from this provider, such as
|
|
96
|
-
* at points and in rectangles. This property may be undefined if availability
|
|
97
|
-
* information is not available.
|
|
98
|
-
* @memberof TerrainProvider.prototype
|
|
99
|
-
* @type {TileAvailability|undefined}
|
|
100
|
-
* @readonly
|
|
101
|
-
*/
|
|
102
|
-
availability: {
|
|
103
|
-
get: DeveloperError_default.throwInstantiationError
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
var regularGridIndicesCache = [];
|
|
107
|
-
TerrainProvider.getRegularGridIndices = function(width, height) {
|
|
108
|
-
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
109
|
-
throw new DeveloperError_default(
|
|
110
|
-
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
111
|
-
);
|
|
112
|
-
}
|
|
113
|
-
let byWidth = regularGridIndicesCache[width];
|
|
114
|
-
if (!defined_default(byWidth)) {
|
|
115
|
-
regularGridIndicesCache[width] = byWidth = [];
|
|
116
|
-
}
|
|
117
|
-
let indices = byWidth[height];
|
|
118
|
-
if (!defined_default(indices)) {
|
|
119
|
-
if (width * height < Math_default.SIXTY_FOUR_KILOBYTES) {
|
|
120
|
-
indices = byWidth[height] = new Uint16Array(
|
|
121
|
-
(width - 1) * (height - 1) * 6
|
|
122
|
-
);
|
|
123
|
-
} else {
|
|
124
|
-
indices = byWidth[height] = new Uint32Array(
|
|
125
|
-
(width - 1) * (height - 1) * 6
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
addRegularGridIndices(width, height, indices, 0);
|
|
129
|
-
}
|
|
130
|
-
return indices;
|
|
131
|
-
};
|
|
132
|
-
var regularGridAndEdgeIndicesCache = [];
|
|
133
|
-
TerrainProvider.getRegularGridIndicesAndEdgeIndices = function(width, height) {
|
|
134
|
-
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
135
|
-
throw new DeveloperError_default(
|
|
136
|
-
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
137
|
-
);
|
|
138
|
-
}
|
|
139
|
-
let byWidth = regularGridAndEdgeIndicesCache[width];
|
|
140
|
-
if (!defined_default(byWidth)) {
|
|
141
|
-
regularGridAndEdgeIndicesCache[width] = byWidth = [];
|
|
142
|
-
}
|
|
143
|
-
let indicesAndEdges = byWidth[height];
|
|
144
|
-
if (!defined_default(indicesAndEdges)) {
|
|
145
|
-
const indices = TerrainProvider.getRegularGridIndices(width, height);
|
|
146
|
-
const edgeIndices = getEdgeIndices(width, height);
|
|
147
|
-
const westIndicesSouthToNorth = edgeIndices.westIndicesSouthToNorth;
|
|
148
|
-
const southIndicesEastToWest = edgeIndices.southIndicesEastToWest;
|
|
149
|
-
const eastIndicesNorthToSouth = edgeIndices.eastIndicesNorthToSouth;
|
|
150
|
-
const northIndicesWestToEast = edgeIndices.northIndicesWestToEast;
|
|
151
|
-
indicesAndEdges = byWidth[height] = {
|
|
152
|
-
indices,
|
|
153
|
-
westIndicesSouthToNorth,
|
|
154
|
-
southIndicesEastToWest,
|
|
155
|
-
eastIndicesNorthToSouth,
|
|
156
|
-
northIndicesWestToEast
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
return indicesAndEdges;
|
|
160
|
-
};
|
|
161
|
-
var regularGridAndSkirtAndEdgeIndicesCache = [];
|
|
162
|
-
TerrainProvider.getRegularGridAndSkirtIndicesAndEdgeIndices = function(width, height) {
|
|
163
|
-
if (width * height >= Math_default.FOUR_GIGABYTES) {
|
|
164
|
-
throw new DeveloperError_default(
|
|
165
|
-
"The total number of vertices (width * height) must be less than 4,294,967,296."
|
|
166
|
-
);
|
|
167
|
-
}
|
|
168
|
-
let byWidth = regularGridAndSkirtAndEdgeIndicesCache[width];
|
|
169
|
-
if (!defined_default(byWidth)) {
|
|
170
|
-
regularGridAndSkirtAndEdgeIndicesCache[width] = byWidth = [];
|
|
171
|
-
}
|
|
172
|
-
let indicesAndEdges = byWidth[height];
|
|
173
|
-
if (!defined_default(indicesAndEdges)) {
|
|
174
|
-
const gridVertexCount = width * height;
|
|
175
|
-
const gridIndexCount = (width - 1) * (height - 1) * 6;
|
|
176
|
-
const edgeVertexCount = width * 2 + height * 2;
|
|
177
|
-
const edgeIndexCount = Math.max(0, edgeVertexCount - 4) * 6;
|
|
178
|
-
const vertexCount = gridVertexCount + edgeVertexCount;
|
|
179
|
-
const indexCount = gridIndexCount + edgeIndexCount;
|
|
180
|
-
const edgeIndices = getEdgeIndices(width, height);
|
|
181
|
-
const westIndicesSouthToNorth = edgeIndices.westIndicesSouthToNorth;
|
|
182
|
-
const southIndicesEastToWest = edgeIndices.southIndicesEastToWest;
|
|
183
|
-
const eastIndicesNorthToSouth = edgeIndices.eastIndicesNorthToSouth;
|
|
184
|
-
const northIndicesWestToEast = edgeIndices.northIndicesWestToEast;
|
|
185
|
-
const indices = IndexDatatype_default.createTypedArray(vertexCount, indexCount);
|
|
186
|
-
addRegularGridIndices(width, height, indices, 0);
|
|
187
|
-
TerrainProvider.addSkirtIndices(
|
|
188
|
-
westIndicesSouthToNorth,
|
|
189
|
-
southIndicesEastToWest,
|
|
190
|
-
eastIndicesNorthToSouth,
|
|
191
|
-
northIndicesWestToEast,
|
|
192
|
-
gridVertexCount,
|
|
193
|
-
indices,
|
|
194
|
-
gridIndexCount
|
|
195
|
-
);
|
|
196
|
-
indicesAndEdges = byWidth[height] = {
|
|
197
|
-
indices,
|
|
198
|
-
westIndicesSouthToNorth,
|
|
199
|
-
southIndicesEastToWest,
|
|
200
|
-
eastIndicesNorthToSouth,
|
|
201
|
-
northIndicesWestToEast,
|
|
202
|
-
indexCountWithoutSkirts: gridIndexCount
|
|
203
|
-
};
|
|
204
|
-
}
|
|
205
|
-
return indicesAndEdges;
|
|
206
|
-
};
|
|
207
|
-
TerrainProvider.getSkirtVertexCount = function(westIndicesSouthToNorth, southIndicesEastToWest, eastIndicesNorthToSouth, northIndicesWestToEast) {
|
|
208
|
-
return westIndicesSouthToNorth.length + southIndicesEastToWest.length + eastIndicesNorthToSouth.length + northIndicesWestToEast.length;
|
|
209
|
-
};
|
|
210
|
-
TerrainProvider.getSkirtIndexCount = function(skirtVertexCount) {
|
|
211
|
-
return (skirtVertexCount - 4) * 2 * 3;
|
|
212
|
-
};
|
|
213
|
-
TerrainProvider.getSkirtIndexCountWithFilledCorners = function(skirtVertexCount) {
|
|
214
|
-
return ((skirtVertexCount - 4) * 2 + 4) * 3;
|
|
215
|
-
};
|
|
216
|
-
TerrainProvider.addSkirtIndices = function(westIndicesSouthToNorth, southIndicesEastToWest, eastIndicesNorthToSouth, northIndicesWestToEast, vertexCount, indices, offset) {
|
|
217
|
-
let vertexIndex = vertexCount;
|
|
218
|
-
offset = addSkirtIndices(
|
|
219
|
-
westIndicesSouthToNorth,
|
|
220
|
-
vertexIndex,
|
|
221
|
-
indices,
|
|
222
|
-
offset
|
|
223
|
-
);
|
|
224
|
-
vertexIndex += westIndicesSouthToNorth.length;
|
|
225
|
-
offset = addSkirtIndices(
|
|
226
|
-
southIndicesEastToWest,
|
|
227
|
-
vertexIndex,
|
|
228
|
-
indices,
|
|
229
|
-
offset
|
|
230
|
-
);
|
|
231
|
-
vertexIndex += southIndicesEastToWest.length;
|
|
232
|
-
offset = addSkirtIndices(
|
|
233
|
-
eastIndicesNorthToSouth,
|
|
234
|
-
vertexIndex,
|
|
235
|
-
indices,
|
|
236
|
-
offset
|
|
237
|
-
);
|
|
238
|
-
vertexIndex += eastIndicesNorthToSouth.length;
|
|
239
|
-
addSkirtIndices(northIndicesWestToEast, vertexIndex, indices, offset);
|
|
240
|
-
};
|
|
241
|
-
TerrainProvider.addSkirtIndicesWithFilledCorners = function(westIndicesSouthToNorth, southIndicesEastToWest, eastIndicesNorthToSouth, northIndicesWestToEast, vertexCount, indices, offset) {
|
|
242
|
-
TerrainProvider.addSkirtIndices(
|
|
243
|
-
westIndicesSouthToNorth,
|
|
244
|
-
southIndicesEastToWest,
|
|
245
|
-
eastIndicesNorthToSouth,
|
|
246
|
-
northIndicesWestToEast,
|
|
247
|
-
vertexCount,
|
|
248
|
-
indices,
|
|
249
|
-
offset
|
|
250
|
-
);
|
|
251
|
-
const skirtVertexCount = TerrainProvider.getSkirtVertexCount(
|
|
252
|
-
westIndicesSouthToNorth,
|
|
253
|
-
southIndicesEastToWest,
|
|
254
|
-
eastIndicesNorthToSouth,
|
|
255
|
-
northIndicesWestToEast
|
|
256
|
-
);
|
|
257
|
-
const skirtIndexCountWithoutCaps = TerrainProvider.getSkirtIndexCount(skirtVertexCount);
|
|
258
|
-
const cornerStartIdx = offset + skirtIndexCountWithoutCaps;
|
|
259
|
-
const cornerSWIndex = westIndicesSouthToNorth[0];
|
|
260
|
-
const cornerNWIndex = northIndicesWestToEast[0];
|
|
261
|
-
const cornerNEIndex = eastIndicesNorthToSouth[0];
|
|
262
|
-
const cornerSEIndex = southIndicesEastToWest[0];
|
|
263
|
-
const westSouthIndex = vertexCount;
|
|
264
|
-
const westNorthIndex = westSouthIndex + westIndicesSouthToNorth.length - 1;
|
|
265
|
-
const southEastIndex = westNorthIndex + 1;
|
|
266
|
-
const southWestIndex = southEastIndex + southIndicesEastToWest.length - 1;
|
|
267
|
-
const eastNorthIndex = southWestIndex + 1;
|
|
268
|
-
const eastSouthIndex = eastNorthIndex + eastIndicesNorthToSouth.length - 1;
|
|
269
|
-
const northWestIndex = eastSouthIndex + 1;
|
|
270
|
-
const northEastIndex = northWestIndex + northIndicesWestToEast.length - 1;
|
|
271
|
-
indices[cornerStartIdx + 0] = cornerSWIndex;
|
|
272
|
-
indices[cornerStartIdx + 1] = westSouthIndex;
|
|
273
|
-
indices[cornerStartIdx + 2] = southWestIndex;
|
|
274
|
-
indices[cornerStartIdx + 3] = cornerSEIndex;
|
|
275
|
-
indices[cornerStartIdx + 4] = southEastIndex;
|
|
276
|
-
indices[cornerStartIdx + 5] = eastSouthIndex;
|
|
277
|
-
indices[cornerStartIdx + 6] = cornerNEIndex;
|
|
278
|
-
indices[cornerStartIdx + 7] = eastNorthIndex;
|
|
279
|
-
indices[cornerStartIdx + 8] = northEastIndex;
|
|
280
|
-
indices[cornerStartIdx + 9] = cornerNWIndex;
|
|
281
|
-
indices[cornerStartIdx + 10] = northWestIndex;
|
|
282
|
-
indices[cornerStartIdx + 11] = westNorthIndex;
|
|
283
|
-
};
|
|
284
|
-
function getEdgeIndices(width, height) {
|
|
285
|
-
const westIndicesSouthToNorth = new Array(height);
|
|
286
|
-
const southIndicesEastToWest = new Array(width);
|
|
287
|
-
const eastIndicesNorthToSouth = new Array(height);
|
|
288
|
-
const northIndicesWestToEast = new Array(width);
|
|
289
|
-
let i;
|
|
290
|
-
for (i = 0; i < width; ++i) {
|
|
291
|
-
northIndicesWestToEast[i] = i;
|
|
292
|
-
southIndicesEastToWest[i] = width * height - 1 - i;
|
|
293
|
-
}
|
|
294
|
-
for (i = 0; i < height; ++i) {
|
|
295
|
-
eastIndicesNorthToSouth[i] = (i + 1) * width - 1;
|
|
296
|
-
westIndicesSouthToNorth[i] = (height - i - 1) * width;
|
|
297
|
-
}
|
|
298
|
-
return {
|
|
299
|
-
westIndicesSouthToNorth,
|
|
300
|
-
southIndicesEastToWest,
|
|
301
|
-
eastIndicesNorthToSouth,
|
|
302
|
-
northIndicesWestToEast
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
function addRegularGridIndices(width, height, indices, offset) {
|
|
306
|
-
let index = 0;
|
|
307
|
-
for (let j = 0; j < height - 1; ++j) {
|
|
308
|
-
for (let i = 0; i < width - 1; ++i) {
|
|
309
|
-
const upperLeft = index;
|
|
310
|
-
const lowerLeft = upperLeft + width;
|
|
311
|
-
const lowerRight = lowerLeft + 1;
|
|
312
|
-
const upperRight = upperLeft + 1;
|
|
313
|
-
indices[offset++] = upperLeft;
|
|
314
|
-
indices[offset++] = lowerLeft;
|
|
315
|
-
indices[offset++] = upperRight;
|
|
316
|
-
indices[offset++] = upperRight;
|
|
317
|
-
indices[offset++] = lowerLeft;
|
|
318
|
-
indices[offset++] = lowerRight;
|
|
319
|
-
++index;
|
|
320
|
-
}
|
|
321
|
-
++index;
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
function addSkirtIndices(edgeIndices, vertexIndex, indices, offset) {
|
|
325
|
-
let previousIndex = edgeIndices[0];
|
|
326
|
-
const length = edgeIndices.length;
|
|
327
|
-
for (let i = 1; i < length; ++i) {
|
|
328
|
-
const index = edgeIndices[i];
|
|
329
|
-
indices[offset++] = previousIndex;
|
|
330
|
-
indices[offset++] = index;
|
|
331
|
-
indices[offset++] = vertexIndex;
|
|
332
|
-
indices[offset++] = vertexIndex;
|
|
333
|
-
indices[offset++] = index;
|
|
334
|
-
indices[offset++] = vertexIndex + 1;
|
|
335
|
-
previousIndex = index;
|
|
336
|
-
++vertexIndex;
|
|
337
|
-
}
|
|
338
|
-
return offset;
|
|
339
|
-
}
|
|
340
|
-
TerrainProvider.heightmapTerrainQuality = 0.25;
|
|
341
|
-
TerrainProvider.getEstimatedLevelZeroGeometricErrorForAHeightmap = function(ellipsoid, tileImageWidth, numberOfTilesAtLevelZero) {
|
|
342
|
-
return ellipsoid.maximumRadius * 2 * Math.PI * TerrainProvider.heightmapTerrainQuality / (tileImageWidth * numberOfTilesAtLevelZero);
|
|
343
|
-
};
|
|
344
|
-
TerrainProvider.prototype.requestTileGeometry = DeveloperError_default.throwInstantiationError;
|
|
345
|
-
TerrainProvider.prototype.getLevelMaximumGeometricError = DeveloperError_default.throwInstantiationError;
|
|
346
|
-
TerrainProvider.prototype.getTileDataAvailable = DeveloperError_default.throwInstantiationError;
|
|
347
|
-
TerrainProvider.prototype.loadTileDataAvailability = DeveloperError_default.throwInstantiationError;
|
|
348
|
-
var TerrainProvider_default = TerrainProvider;
|
|
349
|
-
|
|
350
|
-
export {
|
|
351
|
-
TerrainProvider_default
|
|
352
|
-
};
|