@pggis/pg-sdk 3.2.9
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/README.md +152 -0
- package/dist/index.cjs +43 -0
- package/dist/pggis.min.css +1 -0
- package/dist/pggis.min.js +42 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist/resources/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist/resources/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/resources/Assets/Images/cesium_credit.png +0 -0
- package/dist/resources/Assets/Images/google_earth_credit.png +0 -0
- package/dist/resources/Assets/Images/ion-credit.png +0 -0
- package/dist/resources/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/resources/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/resources/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/resources/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/resources/Assets/Textures/maki/airfield.png +0 -0
- package/dist/resources/Assets/Textures/maki/airport.png +0 -0
- package/dist/resources/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/resources/Assets/Textures/maki/america-football.png +0 -0
- package/dist/resources/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/resources/Assets/Textures/maki/bakery.png +0 -0
- package/dist/resources/Assets/Textures/maki/bank.png +0 -0
- package/dist/resources/Assets/Textures/maki/bar.png +0 -0
- package/dist/resources/Assets/Textures/maki/baseball.png +0 -0
- package/dist/resources/Assets/Textures/maki/basketball.png +0 -0
- package/dist/resources/Assets/Textures/maki/beer.png +0 -0
- package/dist/resources/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/resources/Assets/Textures/maki/building.png +0 -0
- package/dist/resources/Assets/Textures/maki/bus.png +0 -0
- package/dist/resources/Assets/Textures/maki/cafe.png +0 -0
- package/dist/resources/Assets/Textures/maki/camera.png +0 -0
- package/dist/resources/Assets/Textures/maki/campsite.png +0 -0
- package/dist/resources/Assets/Textures/maki/car.png +0 -0
- package/dist/resources/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/resources/Assets/Textures/maki/cesium.png +0 -0
- package/dist/resources/Assets/Textures/maki/chemist.png +0 -0
- package/dist/resources/Assets/Textures/maki/cinema.png +0 -0
- package/dist/resources/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/circle.png +0 -0
- package/dist/resources/Assets/Textures/maki/city.png +0 -0
- package/dist/resources/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/resources/Assets/Textures/maki/college.png +0 -0
- package/dist/resources/Assets/Textures/maki/commercial.png +0 -0
- package/dist/resources/Assets/Textures/maki/cricket.png +0 -0
- package/dist/resources/Assets/Textures/maki/cross.png +0 -0
- package/dist/resources/Assets/Textures/maki/dam.png +0 -0
- package/dist/resources/Assets/Textures/maki/danger.png +0 -0
- package/dist/resources/Assets/Textures/maki/disability.png +0 -0
- package/dist/resources/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/resources/Assets/Textures/maki/embassy.png +0 -0
- package/dist/resources/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/resources/Assets/Textures/maki/entrance.png +0 -0
- package/dist/resources/Assets/Textures/maki/farm.png +0 -0
- package/dist/resources/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/resources/Assets/Textures/maki/ferry.png +0 -0
- package/dist/resources/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/resources/Assets/Textures/maki/fuel.png +0 -0
- package/dist/resources/Assets/Textures/maki/garden.png +0 -0
- package/dist/resources/Assets/Textures/maki/gift.png +0 -0
- package/dist/resources/Assets/Textures/maki/golf.png +0 -0
- package/dist/resources/Assets/Textures/maki/grocery.png +0 -0
- package/dist/resources/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/resources/Assets/Textures/maki/harbor.png +0 -0
- package/dist/resources/Assets/Textures/maki/heart.png +0 -0
- package/dist/resources/Assets/Textures/maki/heliport.png +0 -0
- package/dist/resources/Assets/Textures/maki/hospital.png +0 -0
- package/dist/resources/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/resources/Assets/Textures/maki/industrial.png +0 -0
- package/dist/resources/Assets/Textures/maki/land-use.png +0 -0
- package/dist/resources/Assets/Textures/maki/laundry.png +0 -0
- package/dist/resources/Assets/Textures/maki/library.png +0 -0
- package/dist/resources/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/resources/Assets/Textures/maki/lodging.png +0 -0
- package/dist/resources/Assets/Textures/maki/logging.png +0 -0
- package/dist/resources/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/resources/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/marker.png +0 -0
- package/dist/resources/Assets/Textures/maki/minefield.png +0 -0
- package/dist/resources/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/resources/Assets/Textures/maki/monument.png +0 -0
- package/dist/resources/Assets/Textures/maki/museum.png +0 -0
- package/dist/resources/Assets/Textures/maki/music.png +0 -0
- package/dist/resources/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/resources/Assets/Textures/maki/park.png +0 -0
- package/dist/resources/Assets/Textures/maki/park2.png +0 -0
- package/dist/resources/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/resources/Assets/Textures/maki/parking.png +0 -0
- package/dist/resources/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/resources/Assets/Textures/maki/pitch.png +0 -0
- package/dist/resources/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/resources/Assets/Textures/maki/playground.png +0 -0
- package/dist/resources/Assets/Textures/maki/police.png +0 -0
- package/dist/resources/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/resources/Assets/Textures/maki/post.png +0 -0
- package/dist/resources/Assets/Textures/maki/prison.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/resources/Assets/Textures/maki/rail.png +0 -0
- package/dist/resources/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/resources/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/resources/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/resources/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/resources/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/resources/Assets/Textures/maki/rocket.png +0 -0
- package/dist/resources/Assets/Textures/maki/school.png +0 -0
- package/dist/resources/Assets/Textures/maki/scooter.png +0 -0
- package/dist/resources/Assets/Textures/maki/shop.png +0 -0
- package/dist/resources/Assets/Textures/maki/skiing.png +0 -0
- package/dist/resources/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/resources/Assets/Textures/maki/soccer.png +0 -0
- package/dist/resources/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/square.png +0 -0
- package/dist/resources/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/star.png +0 -0
- package/dist/resources/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/resources/Assets/Textures/maki/swimming.png +0 -0
- package/dist/resources/Assets/Textures/maki/telephone.png +0 -0
- package/dist/resources/Assets/Textures/maki/tennis.png +0 -0
- package/dist/resources/Assets/Textures/maki/theatre.png +0 -0
- package/dist/resources/Assets/Textures/maki/toilets.png +0 -0
- package/dist/resources/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/resources/Assets/Textures/maki/town.png +0 -0
- package/dist/resources/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/resources/Assets/Textures/maki/triangle.png +0 -0
- package/dist/resources/Assets/Textures/maki/village.png +0 -0
- package/dist/resources/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/resources/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/resources/Assets/Textures/maki/water.png +0 -0
- package/dist/resources/Assets/Textures/maki/wetland.png +0 -0
- package/dist/resources/Assets/Textures/maki/zoo.png +0 -0
- package/dist/resources/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/resources/Assets/Textures/pin.svg +1 -0
- package/dist/resources/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/resources/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/resources/Assets/approximateTerrainHeights.json +1 -0
- package/dist/resources/ThirdParty/Workers/basis_transcoder.js +21 -0
- package/dist/resources/ThirdParty/Workers/package.json +1 -0
- package/dist/resources/ThirdParty/Workers/pako_deflate.min.js +2 -0
- package/dist/resources/ThirdParty/Workers/pako_inflate.min.js +2 -0
- package/dist/resources/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/dist/resources/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist/resources/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/resources/ThirdParty/google-earth-dbroot-parser.js +8337 -0
- package/dist/resources/Workers/chunk-3PW6ZBN4.js +2977 -0
- package/dist/resources/Workers/chunk-434ZTTFX.js +73 -0
- package/dist/resources/Workers/chunk-4KP73B43.js +73 -0
- package/dist/resources/Workers/chunk-52VSIKEA.js +2716 -0
- package/dist/resources/Workers/chunk-5GDBZTHX.js +1075 -0
- package/dist/resources/Workers/chunk-5HLGKKG3.js +163 -0
- package/dist/resources/Workers/chunk-5IRLXUTA.js +1258 -0
- package/dist/resources/Workers/chunk-5SK36PU4.js +430 -0
- package/dist/resources/Workers/chunk-ARPTYYKS.js +258 -0
- package/dist/resources/Workers/chunk-ATB2I7OS.js +55 -0
- package/dist/resources/Workers/chunk-AXFRNOVC.js +368 -0
- package/dist/resources/Workers/chunk-BP467WX3.js +501 -0
- package/dist/resources/Workers/chunk-BUZDZBUH.js +1007 -0
- package/dist/resources/Workers/chunk-CDGHUKQ4.js +1477 -0
- package/dist/resources/Workers/chunk-CSIZ3BGT.js +398 -0
- package/dist/resources/Workers/chunk-CWJQGBWT.js +39 -0
- package/dist/resources/Workers/chunk-DMCSY5BU.js +100 -0
- package/dist/resources/Workers/chunk-DR5XZ6K5.js +390 -0
- package/dist/resources/Workers/chunk-FWGNCYP6.js +476 -0
- package/dist/resources/Workers/chunk-GF5TNNKP.js +353 -0
- package/dist/resources/Workers/chunk-GVL5I7TC.js +1052 -0
- package/dist/resources/Workers/chunk-H5DUXHCV.js +421 -0
- package/dist/resources/Workers/chunk-HFKSAB5K.js +511 -0
- package/dist/resources/Workers/chunk-HOT2SNXP.js +8639 -0
- package/dist/resources/Workers/chunk-HPH5HSFE.js +1860 -0
- package/dist/resources/Workers/chunk-HPP4JLNH.js +218 -0
- package/dist/resources/Workers/chunk-HUPNRBWW.js +196 -0
- package/dist/resources/Workers/chunk-JGG36SQV.js +102 -0
- package/dist/resources/Workers/chunk-LGJUI2CE.js +2361 -0
- package/dist/resources/Workers/chunk-LGL4P5KL.js +171 -0
- package/dist/resources/Workers/chunk-LX6XV4DK.js +138 -0
- package/dist/resources/Workers/chunk-MN34FIF5.js +37 -0
- package/dist/resources/Workers/chunk-MW3CJYLX.js +101 -0
- package/dist/resources/Workers/chunk-NE4JNU6H.js +767 -0
- package/dist/resources/Workers/chunk-O43GWBSF.js +55 -0
- package/dist/resources/Workers/chunk-PIXK6KHB.js +44 -0
- package/dist/resources/Workers/chunk-PZ2WJWUG.js +634 -0
- package/dist/resources/Workers/chunk-QRBRVGZC.js +305 -0
- package/dist/resources/Workers/chunk-QTZQZY2C.js +669 -0
- package/dist/resources/Workers/chunk-R3HUGXBH.js +302 -0
- package/dist/resources/Workers/chunk-R4OZKBXH.js +456 -0
- package/dist/resources/Workers/chunk-RH4N2ONY.js +236 -0
- package/dist/resources/Workers/chunk-RIDPF7PO.js +58 -0
- package/dist/resources/Workers/chunk-SNN7WOC2.js +781 -0
- package/dist/resources/Workers/chunk-SQVTYRZY.js +122 -0
- package/dist/resources/Workers/chunk-SV7DDPAC.js +629 -0
- package/dist/resources/Workers/chunk-TIXXVKUY.js +834 -0
- package/dist/resources/Workers/chunk-TMPVBFJQ.js +289 -0
- package/dist/resources/Workers/chunk-XUTVA4K5.js +684 -0
- package/dist/resources/Workers/chunk-Y4OJ4B23.js +59 -0
- package/dist/resources/Workers/chunk-YBKFS53K.js +77 -0
- package/dist/resources/Workers/chunk-Z2SIPUKB.js +117 -0
- package/dist/resources/Workers/chunk-Z4JUBRHP.js +157 -0
- package/dist/resources/Workers/chunk-ZQRZBHYI.js +138 -0
- package/dist/resources/Workers/combineGeometry.js +67 -0
- package/dist/resources/Workers/createBoxGeometry.js +57 -0
- package/dist/resources/Workers/createBoxOutlineGeometry.js +234 -0
- package/dist/resources/Workers/createCircleGeometry.js +196 -0
- package/dist/resources/Workers/createCircleOutlineGeometry.js +146 -0
- package/dist/resources/Workers/createCoplanarPolygonGeometry.js +505 -0
- package/dist/resources/Workers/createCoplanarPolygonOutlineGeometry.js +224 -0
- package/dist/resources/Workers/createCorridorGeometry.js +1263 -0
- package/dist/resources/Workers/createCorridorOutlineGeometry.js +568 -0
- package/dist/resources/Workers/createCylinderGeometry.js +59 -0
- package/dist/resources/Workers/createCylinderOutlineGeometry.js +230 -0
- package/dist/resources/Workers/createEllipseGeometry.js +70 -0
- package/dist/resources/Workers/createEllipseOutlineGeometry.js +63 -0
- package/dist/resources/Workers/createEllipsoidGeometry.js +58 -0
- package/dist/resources/Workers/createEllipsoidOutlineGeometry.js +60 -0
- package/dist/resources/Workers/createFrustumGeometry.js +57 -0
- package/dist/resources/Workers/createFrustumOutlineGeometry.js +234 -0
- package/dist/resources/Workers/createGeometry.js +150 -0
- package/dist/resources/Workers/createGroundPolylineGeometry.js +1607 -0
- package/dist/resources/Workers/createPlaneGeometry.js +223 -0
- package/dist/resources/Workers/createPlaneOutlineGeometry.js +123 -0
- package/dist/resources/Workers/createPolygonGeometry.js +1545 -0
- package/dist/resources/Workers/createPolygonOutlineGeometry.js +542 -0
- package/dist/resources/Workers/createPolylineGeometry.js +495 -0
- package/dist/resources/Workers/createPolylineVolumeGeometry.js +380 -0
- package/dist/resources/Workers/createPolylineVolumeOutlineGeometry.js +277 -0
- package/dist/resources/Workers/createRectangleGeometry.js +1273 -0
- package/dist/resources/Workers/createRectangleOutlineGeometry.js +478 -0
- package/dist/resources/Workers/createSimplePolylineGeometry.js +399 -0
- package/dist/resources/Workers/createSphereGeometry.js +117 -0
- package/dist/resources/Workers/createSphereOutlineGeometry.js +117 -0
- package/dist/resources/Workers/createTaskProcessorWorker.js +32 -0
- package/dist/resources/Workers/createVectorTileClampedPolylines.js +492 -0
- package/dist/resources/Workers/createVectorTileGeometries.js +386 -0
- package/dist/resources/Workers/createVectorTilePoints.js +112 -0
- package/dist/resources/Workers/createVectorTilePolygons.js +384 -0
- package/dist/resources/Workers/createVectorTilePolylines.js +262 -0
- package/dist/resources/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +568 -0
- package/dist/resources/Workers/createVerticesFromHeightmap.js +2277 -0
- package/dist/resources/Workers/createVerticesFromQuantizedTerrainMesh.js +745 -0
- package/dist/resources/Workers/createWallGeometry.js +489 -0
- package/dist/resources/Workers/createWallOutlineGeometry.js +337 -0
- package/dist/resources/Workers/decodeDraco.js +369 -0
- package/dist/resources/Workers/decodeGoogleEarthEnterprisePacket.js +2650 -0
- package/dist/resources/Workers/decodeI3S.js +835 -0
- package/dist/resources/Workers/transcodeKTX2.js +3425 -0
- package/dist/resources/Workers/transferTypedArrayTest.js +41 -0
- package/dist/resources/Workers/upsampleQuantizedTerrainMesh.js +818 -0
- package/package.json +81 -0
|
@@ -0,0 +1,767 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
|
4
|
+
* Version 1.113
|
|
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
|
+
AttributeCompression_default
|
|
28
|
+
} from "./chunk-5SK36PU4.js";
|
|
29
|
+
import {
|
|
30
|
+
BoundingSphere_default
|
|
31
|
+
} from "./chunk-HOT2SNXP.js";
|
|
32
|
+
import {
|
|
33
|
+
Matrix4_default,
|
|
34
|
+
Rectangle_default
|
|
35
|
+
} from "./chunk-3PW6ZBN4.js";
|
|
36
|
+
import {
|
|
37
|
+
ComponentDatatype_default
|
|
38
|
+
} from "./chunk-ARPTYYKS.js";
|
|
39
|
+
import {
|
|
40
|
+
Cartesian2_default,
|
|
41
|
+
Cartesian3_default,
|
|
42
|
+
Ellipsoid_default
|
|
43
|
+
} from "./chunk-LGJUI2CE.js";
|
|
44
|
+
import {
|
|
45
|
+
Math_default
|
|
46
|
+
} from "./chunk-BP467WX3.js";
|
|
47
|
+
import {
|
|
48
|
+
defaultValue_default
|
|
49
|
+
} from "./chunk-CWJQGBWT.js";
|
|
50
|
+
import {
|
|
51
|
+
Check_default,
|
|
52
|
+
DeveloperError_default
|
|
53
|
+
} from "./chunk-5HLGKKG3.js";
|
|
54
|
+
import {
|
|
55
|
+
defined_default
|
|
56
|
+
} from "./chunk-YBKFS53K.js";
|
|
57
|
+
|
|
58
|
+
// packages/engine/Source/Core/EllipsoidalOccluder.js
|
|
59
|
+
function EllipsoidalOccluder(ellipsoid, cameraPosition) {
|
|
60
|
+
Check_default.typeOf.object("ellipsoid", ellipsoid);
|
|
61
|
+
this._ellipsoid = ellipsoid;
|
|
62
|
+
this._cameraPosition = new Cartesian3_default();
|
|
63
|
+
this._cameraPositionInScaledSpace = new Cartesian3_default();
|
|
64
|
+
this._distanceToLimbInScaledSpaceSquared = 0;
|
|
65
|
+
if (defined_default(cameraPosition)) {
|
|
66
|
+
this.cameraPosition = cameraPosition;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
Object.defineProperties(EllipsoidalOccluder.prototype, {
|
|
70
|
+
/**
|
|
71
|
+
* Gets the occluding ellipsoid.
|
|
72
|
+
* @memberof EllipsoidalOccluder.prototype
|
|
73
|
+
* @type {Ellipsoid}
|
|
74
|
+
*/
|
|
75
|
+
ellipsoid: {
|
|
76
|
+
get: function() {
|
|
77
|
+
return this._ellipsoid;
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* Gets or sets the position of the camera.
|
|
82
|
+
* @memberof EllipsoidalOccluder.prototype
|
|
83
|
+
* @type {Cartesian3}
|
|
84
|
+
*/
|
|
85
|
+
cameraPosition: {
|
|
86
|
+
get: function() {
|
|
87
|
+
return this._cameraPosition;
|
|
88
|
+
},
|
|
89
|
+
set: function(cameraPosition) {
|
|
90
|
+
const ellipsoid = this._ellipsoid;
|
|
91
|
+
const cv = ellipsoid.transformPositionToScaledSpace(
|
|
92
|
+
cameraPosition,
|
|
93
|
+
this._cameraPositionInScaledSpace
|
|
94
|
+
);
|
|
95
|
+
const vhMagnitudeSquared = Cartesian3_default.magnitudeSquared(cv) - 1;
|
|
96
|
+
Cartesian3_default.clone(cameraPosition, this._cameraPosition);
|
|
97
|
+
this._cameraPositionInScaledSpace = cv;
|
|
98
|
+
this._distanceToLimbInScaledSpaceSquared = vhMagnitudeSquared;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
var scratchCartesian = new Cartesian3_default();
|
|
103
|
+
EllipsoidalOccluder.prototype.isPointVisible = function(occludee) {
|
|
104
|
+
const ellipsoid = this._ellipsoid;
|
|
105
|
+
const occludeeScaledSpacePosition = ellipsoid.transformPositionToScaledSpace(
|
|
106
|
+
occludee,
|
|
107
|
+
scratchCartesian
|
|
108
|
+
);
|
|
109
|
+
return isScaledSpacePointVisible(
|
|
110
|
+
occludeeScaledSpacePosition,
|
|
111
|
+
this._cameraPositionInScaledSpace,
|
|
112
|
+
this._distanceToLimbInScaledSpaceSquared
|
|
113
|
+
);
|
|
114
|
+
};
|
|
115
|
+
EllipsoidalOccluder.prototype.isScaledSpacePointVisible = function(occludeeScaledSpacePosition) {
|
|
116
|
+
return isScaledSpacePointVisible(
|
|
117
|
+
occludeeScaledSpacePosition,
|
|
118
|
+
this._cameraPositionInScaledSpace,
|
|
119
|
+
this._distanceToLimbInScaledSpaceSquared
|
|
120
|
+
);
|
|
121
|
+
};
|
|
122
|
+
var scratchCameraPositionInScaledSpaceShrunk = new Cartesian3_default();
|
|
123
|
+
EllipsoidalOccluder.prototype.isScaledSpacePointVisiblePossiblyUnderEllipsoid = function(occludeeScaledSpacePosition, minimumHeight) {
|
|
124
|
+
const ellipsoid = this._ellipsoid;
|
|
125
|
+
let vhMagnitudeSquared;
|
|
126
|
+
let cv;
|
|
127
|
+
if (defined_default(minimumHeight) && minimumHeight < 0 && ellipsoid.minimumRadius > -minimumHeight) {
|
|
128
|
+
cv = scratchCameraPositionInScaledSpaceShrunk;
|
|
129
|
+
cv.x = this._cameraPosition.x / (ellipsoid.radii.x + minimumHeight);
|
|
130
|
+
cv.y = this._cameraPosition.y / (ellipsoid.radii.y + minimumHeight);
|
|
131
|
+
cv.z = this._cameraPosition.z / (ellipsoid.radii.z + minimumHeight);
|
|
132
|
+
vhMagnitudeSquared = cv.x * cv.x + cv.y * cv.y + cv.z * cv.z - 1;
|
|
133
|
+
} else {
|
|
134
|
+
cv = this._cameraPositionInScaledSpace;
|
|
135
|
+
vhMagnitudeSquared = this._distanceToLimbInScaledSpaceSquared;
|
|
136
|
+
}
|
|
137
|
+
return isScaledSpacePointVisible(
|
|
138
|
+
occludeeScaledSpacePosition,
|
|
139
|
+
cv,
|
|
140
|
+
vhMagnitudeSquared
|
|
141
|
+
);
|
|
142
|
+
};
|
|
143
|
+
EllipsoidalOccluder.prototype.computeHorizonCullingPoint = function(directionToPoint, positions, result) {
|
|
144
|
+
return computeHorizonCullingPointFromPositions(
|
|
145
|
+
this._ellipsoid,
|
|
146
|
+
directionToPoint,
|
|
147
|
+
positions,
|
|
148
|
+
result
|
|
149
|
+
);
|
|
150
|
+
};
|
|
151
|
+
var scratchEllipsoidShrunk = Ellipsoid_default.clone(Ellipsoid_default.UNIT_SPHERE);
|
|
152
|
+
EllipsoidalOccluder.prototype.computeHorizonCullingPointPossiblyUnderEllipsoid = function(directionToPoint, positions, minimumHeight, result) {
|
|
153
|
+
const possiblyShrunkEllipsoid = getPossiblyShrunkEllipsoid(
|
|
154
|
+
this._ellipsoid,
|
|
155
|
+
minimumHeight,
|
|
156
|
+
scratchEllipsoidShrunk
|
|
157
|
+
);
|
|
158
|
+
return computeHorizonCullingPointFromPositions(
|
|
159
|
+
possiblyShrunkEllipsoid,
|
|
160
|
+
directionToPoint,
|
|
161
|
+
positions,
|
|
162
|
+
result
|
|
163
|
+
);
|
|
164
|
+
};
|
|
165
|
+
EllipsoidalOccluder.prototype.computeHorizonCullingPointFromVertices = function(directionToPoint, vertices, stride, center, result) {
|
|
166
|
+
return computeHorizonCullingPointFromVertices(
|
|
167
|
+
this._ellipsoid,
|
|
168
|
+
directionToPoint,
|
|
169
|
+
vertices,
|
|
170
|
+
stride,
|
|
171
|
+
center,
|
|
172
|
+
result
|
|
173
|
+
);
|
|
174
|
+
};
|
|
175
|
+
EllipsoidalOccluder.prototype.computeHorizonCullingPointFromVerticesPossiblyUnderEllipsoid = function(directionToPoint, vertices, stride, center, minimumHeight, result) {
|
|
176
|
+
const possiblyShrunkEllipsoid = getPossiblyShrunkEllipsoid(
|
|
177
|
+
this._ellipsoid,
|
|
178
|
+
minimumHeight,
|
|
179
|
+
scratchEllipsoidShrunk
|
|
180
|
+
);
|
|
181
|
+
return computeHorizonCullingPointFromVertices(
|
|
182
|
+
possiblyShrunkEllipsoid,
|
|
183
|
+
directionToPoint,
|
|
184
|
+
vertices,
|
|
185
|
+
stride,
|
|
186
|
+
center,
|
|
187
|
+
result
|
|
188
|
+
);
|
|
189
|
+
};
|
|
190
|
+
var subsampleScratch = [];
|
|
191
|
+
EllipsoidalOccluder.prototype.computeHorizonCullingPointFromRectangle = function(rectangle, ellipsoid, result) {
|
|
192
|
+
Check_default.typeOf.object("rectangle", rectangle);
|
|
193
|
+
const positions = Rectangle_default.subsample(
|
|
194
|
+
rectangle,
|
|
195
|
+
ellipsoid,
|
|
196
|
+
0,
|
|
197
|
+
subsampleScratch
|
|
198
|
+
);
|
|
199
|
+
const bs = BoundingSphere_default.fromPoints(positions);
|
|
200
|
+
if (Cartesian3_default.magnitude(bs.center) < 0.1 * ellipsoid.minimumRadius) {
|
|
201
|
+
return void 0;
|
|
202
|
+
}
|
|
203
|
+
return this.computeHorizonCullingPoint(bs.center, positions, result);
|
|
204
|
+
};
|
|
205
|
+
var scratchEllipsoidShrunkRadii = new Cartesian3_default();
|
|
206
|
+
function getPossiblyShrunkEllipsoid(ellipsoid, minimumHeight, result) {
|
|
207
|
+
if (defined_default(minimumHeight) && minimumHeight < 0 && ellipsoid.minimumRadius > -minimumHeight) {
|
|
208
|
+
const ellipsoidShrunkRadii = Cartesian3_default.fromElements(
|
|
209
|
+
ellipsoid.radii.x + minimumHeight,
|
|
210
|
+
ellipsoid.radii.y + minimumHeight,
|
|
211
|
+
ellipsoid.radii.z + minimumHeight,
|
|
212
|
+
scratchEllipsoidShrunkRadii
|
|
213
|
+
);
|
|
214
|
+
ellipsoid = Ellipsoid_default.fromCartesian3(ellipsoidShrunkRadii, result);
|
|
215
|
+
}
|
|
216
|
+
return ellipsoid;
|
|
217
|
+
}
|
|
218
|
+
function computeHorizonCullingPointFromPositions(ellipsoid, directionToPoint, positions, result) {
|
|
219
|
+
Check_default.typeOf.object("directionToPoint", directionToPoint);
|
|
220
|
+
Check_default.defined("positions", positions);
|
|
221
|
+
if (!defined_default(result)) {
|
|
222
|
+
result = new Cartesian3_default();
|
|
223
|
+
}
|
|
224
|
+
const scaledSpaceDirectionToPoint = computeScaledSpaceDirectionToPoint(
|
|
225
|
+
ellipsoid,
|
|
226
|
+
directionToPoint
|
|
227
|
+
);
|
|
228
|
+
let resultMagnitude = 0;
|
|
229
|
+
for (let i = 0, len = positions.length; i < len; ++i) {
|
|
230
|
+
const position = positions[i];
|
|
231
|
+
const candidateMagnitude = computeMagnitude(
|
|
232
|
+
ellipsoid,
|
|
233
|
+
position,
|
|
234
|
+
scaledSpaceDirectionToPoint
|
|
235
|
+
);
|
|
236
|
+
if (candidateMagnitude < 0) {
|
|
237
|
+
return void 0;
|
|
238
|
+
}
|
|
239
|
+
resultMagnitude = Math.max(resultMagnitude, candidateMagnitude);
|
|
240
|
+
}
|
|
241
|
+
return magnitudeToPoint(scaledSpaceDirectionToPoint, resultMagnitude, result);
|
|
242
|
+
}
|
|
243
|
+
var positionScratch = new Cartesian3_default();
|
|
244
|
+
function computeHorizonCullingPointFromVertices(ellipsoid, directionToPoint, vertices, stride, center, result) {
|
|
245
|
+
Check_default.typeOf.object("directionToPoint", directionToPoint);
|
|
246
|
+
Check_default.defined("vertices", vertices);
|
|
247
|
+
Check_default.typeOf.number("stride", stride);
|
|
248
|
+
if (!defined_default(result)) {
|
|
249
|
+
result = new Cartesian3_default();
|
|
250
|
+
}
|
|
251
|
+
stride = defaultValue_default(stride, 3);
|
|
252
|
+
center = defaultValue_default(center, Cartesian3_default.ZERO);
|
|
253
|
+
const scaledSpaceDirectionToPoint = computeScaledSpaceDirectionToPoint(
|
|
254
|
+
ellipsoid,
|
|
255
|
+
directionToPoint
|
|
256
|
+
);
|
|
257
|
+
let resultMagnitude = 0;
|
|
258
|
+
for (let i = 0, len = vertices.length; i < len; i += stride) {
|
|
259
|
+
positionScratch.x = vertices[i] + center.x;
|
|
260
|
+
positionScratch.y = vertices[i + 1] + center.y;
|
|
261
|
+
positionScratch.z = vertices[i + 2] + center.z;
|
|
262
|
+
const candidateMagnitude = computeMagnitude(
|
|
263
|
+
ellipsoid,
|
|
264
|
+
positionScratch,
|
|
265
|
+
scaledSpaceDirectionToPoint
|
|
266
|
+
);
|
|
267
|
+
if (candidateMagnitude < 0) {
|
|
268
|
+
return void 0;
|
|
269
|
+
}
|
|
270
|
+
resultMagnitude = Math.max(resultMagnitude, candidateMagnitude);
|
|
271
|
+
}
|
|
272
|
+
return magnitudeToPoint(scaledSpaceDirectionToPoint, resultMagnitude, result);
|
|
273
|
+
}
|
|
274
|
+
function isScaledSpacePointVisible(occludeeScaledSpacePosition, cameraPositionInScaledSpace, distanceToLimbInScaledSpaceSquared) {
|
|
275
|
+
const cv = cameraPositionInScaledSpace;
|
|
276
|
+
const vhMagnitudeSquared = distanceToLimbInScaledSpaceSquared;
|
|
277
|
+
const vt = Cartesian3_default.subtract(
|
|
278
|
+
occludeeScaledSpacePosition,
|
|
279
|
+
cv,
|
|
280
|
+
scratchCartesian
|
|
281
|
+
);
|
|
282
|
+
const vtDotVc = -Cartesian3_default.dot(vt, cv);
|
|
283
|
+
const isOccluded = vhMagnitudeSquared < 0 ? vtDotVc > 0 : vtDotVc > vhMagnitudeSquared && vtDotVc * vtDotVc / Cartesian3_default.magnitudeSquared(vt) > vhMagnitudeSquared;
|
|
284
|
+
return !isOccluded;
|
|
285
|
+
}
|
|
286
|
+
var scaledSpaceScratch = new Cartesian3_default();
|
|
287
|
+
var directionScratch = new Cartesian3_default();
|
|
288
|
+
function computeMagnitude(ellipsoid, position, scaledSpaceDirectionToPoint) {
|
|
289
|
+
const scaledSpacePosition = ellipsoid.transformPositionToScaledSpace(
|
|
290
|
+
position,
|
|
291
|
+
scaledSpaceScratch
|
|
292
|
+
);
|
|
293
|
+
let magnitudeSquared = Cartesian3_default.magnitudeSquared(scaledSpacePosition);
|
|
294
|
+
let magnitude = Math.sqrt(magnitudeSquared);
|
|
295
|
+
const direction = Cartesian3_default.divideByScalar(
|
|
296
|
+
scaledSpacePosition,
|
|
297
|
+
magnitude,
|
|
298
|
+
directionScratch
|
|
299
|
+
);
|
|
300
|
+
magnitudeSquared = Math.max(1, magnitudeSquared);
|
|
301
|
+
magnitude = Math.max(1, magnitude);
|
|
302
|
+
const cosAlpha = Cartesian3_default.dot(direction, scaledSpaceDirectionToPoint);
|
|
303
|
+
const sinAlpha = Cartesian3_default.magnitude(
|
|
304
|
+
Cartesian3_default.cross(direction, scaledSpaceDirectionToPoint, direction)
|
|
305
|
+
);
|
|
306
|
+
const cosBeta = 1 / magnitude;
|
|
307
|
+
const sinBeta = Math.sqrt(magnitudeSquared - 1) * cosBeta;
|
|
308
|
+
return 1 / (cosAlpha * cosBeta - sinAlpha * sinBeta);
|
|
309
|
+
}
|
|
310
|
+
function magnitudeToPoint(scaledSpaceDirectionToPoint, resultMagnitude, result) {
|
|
311
|
+
if (resultMagnitude <= 0 || resultMagnitude === 1 / 0 || resultMagnitude !== resultMagnitude) {
|
|
312
|
+
return void 0;
|
|
313
|
+
}
|
|
314
|
+
return Cartesian3_default.multiplyByScalar(
|
|
315
|
+
scaledSpaceDirectionToPoint,
|
|
316
|
+
resultMagnitude,
|
|
317
|
+
result
|
|
318
|
+
);
|
|
319
|
+
}
|
|
320
|
+
var directionToPointScratch = new Cartesian3_default();
|
|
321
|
+
function computeScaledSpaceDirectionToPoint(ellipsoid, directionToPoint) {
|
|
322
|
+
if (Cartesian3_default.equals(directionToPoint, Cartesian3_default.ZERO)) {
|
|
323
|
+
return directionToPoint;
|
|
324
|
+
}
|
|
325
|
+
ellipsoid.transformPositionToScaledSpace(
|
|
326
|
+
directionToPoint,
|
|
327
|
+
directionToPointScratch
|
|
328
|
+
);
|
|
329
|
+
return Cartesian3_default.normalize(directionToPointScratch, directionToPointScratch);
|
|
330
|
+
}
|
|
331
|
+
var EllipsoidalOccluder_default = EllipsoidalOccluder;
|
|
332
|
+
|
|
333
|
+
// packages/engine/Source/Core/VerticalExaggeration.js
|
|
334
|
+
var VerticalExaggeration = {};
|
|
335
|
+
VerticalExaggeration.getHeight = function(height, scale, relativeHeight) {
|
|
336
|
+
if (!Number.isFinite(scale)) {
|
|
337
|
+
throw new DeveloperError_default("scale must be a finite number.");
|
|
338
|
+
}
|
|
339
|
+
if (!Number.isFinite(relativeHeight)) {
|
|
340
|
+
throw new DeveloperError_default("relativeHeight must be a finite number.");
|
|
341
|
+
}
|
|
342
|
+
return (height - relativeHeight) * scale + relativeHeight;
|
|
343
|
+
};
|
|
344
|
+
var scratchCartographic = new Cartesian3_default();
|
|
345
|
+
VerticalExaggeration.getPosition = function(position, ellipsoid, verticalExaggeration, verticalExaggerationRelativeHeight, result) {
|
|
346
|
+
const cartographic = ellipsoid.cartesianToCartographic(
|
|
347
|
+
position,
|
|
348
|
+
scratchCartographic
|
|
349
|
+
);
|
|
350
|
+
if (!defined_default(cartographic)) {
|
|
351
|
+
return Cartesian3_default.clone(position, result);
|
|
352
|
+
}
|
|
353
|
+
const newHeight = VerticalExaggeration.getHeight(
|
|
354
|
+
cartographic.height,
|
|
355
|
+
verticalExaggeration,
|
|
356
|
+
verticalExaggerationRelativeHeight
|
|
357
|
+
);
|
|
358
|
+
return Cartesian3_default.fromRadians(
|
|
359
|
+
cartographic.longitude,
|
|
360
|
+
cartographic.latitude,
|
|
361
|
+
newHeight,
|
|
362
|
+
ellipsoid,
|
|
363
|
+
result
|
|
364
|
+
);
|
|
365
|
+
};
|
|
366
|
+
var VerticalExaggeration_default = VerticalExaggeration;
|
|
367
|
+
|
|
368
|
+
// packages/engine/Source/Core/TerrainQuantization.js
|
|
369
|
+
var TerrainQuantization = {
|
|
370
|
+
/**
|
|
371
|
+
* The vertices are not compressed.
|
|
372
|
+
*
|
|
373
|
+
* @type {number}
|
|
374
|
+
* @constant
|
|
375
|
+
*/
|
|
376
|
+
NONE: 0,
|
|
377
|
+
/**
|
|
378
|
+
* The vertices are compressed to 12 bits.
|
|
379
|
+
*
|
|
380
|
+
* @type {number}
|
|
381
|
+
* @constant
|
|
382
|
+
*/
|
|
383
|
+
BITS12: 1
|
|
384
|
+
};
|
|
385
|
+
var TerrainQuantization_default = Object.freeze(TerrainQuantization);
|
|
386
|
+
|
|
387
|
+
// packages/engine/Source/Core/TerrainEncoding.js
|
|
388
|
+
var cartesian3Scratch = new Cartesian3_default();
|
|
389
|
+
var cartesian3DimScratch = new Cartesian3_default();
|
|
390
|
+
var cartesian2Scratch = new Cartesian2_default();
|
|
391
|
+
var matrix4Scratch = new Matrix4_default();
|
|
392
|
+
var matrix4Scratch2 = new Matrix4_default();
|
|
393
|
+
var SHIFT_LEFT_12 = Math.pow(2, 12);
|
|
394
|
+
function TerrainEncoding(center, axisAlignedBoundingBox, minimumHeight, maximumHeight, fromENU, hasVertexNormals, hasWebMercatorT, hasGeodeticSurfaceNormals, exaggeration, exaggerationRelativeHeight) {
|
|
395
|
+
let quantization = TerrainQuantization_default.NONE;
|
|
396
|
+
let toENU;
|
|
397
|
+
let matrix;
|
|
398
|
+
if (defined_default(axisAlignedBoundingBox) && defined_default(minimumHeight) && defined_default(maximumHeight) && defined_default(fromENU)) {
|
|
399
|
+
const minimum = axisAlignedBoundingBox.minimum;
|
|
400
|
+
const maximum = axisAlignedBoundingBox.maximum;
|
|
401
|
+
const dimensions = Cartesian3_default.subtract(
|
|
402
|
+
maximum,
|
|
403
|
+
minimum,
|
|
404
|
+
cartesian3DimScratch
|
|
405
|
+
);
|
|
406
|
+
const hDim = maximumHeight - minimumHeight;
|
|
407
|
+
const maxDim = Math.max(Cartesian3_default.maximumComponent(dimensions), hDim);
|
|
408
|
+
if (maxDim < SHIFT_LEFT_12 - 1) {
|
|
409
|
+
quantization = TerrainQuantization_default.BITS12;
|
|
410
|
+
} else {
|
|
411
|
+
quantization = TerrainQuantization_default.NONE;
|
|
412
|
+
}
|
|
413
|
+
toENU = Matrix4_default.inverseTransformation(fromENU, new Matrix4_default());
|
|
414
|
+
const translation = Cartesian3_default.negate(minimum, cartesian3Scratch);
|
|
415
|
+
Matrix4_default.multiply(
|
|
416
|
+
Matrix4_default.fromTranslation(translation, matrix4Scratch),
|
|
417
|
+
toENU,
|
|
418
|
+
toENU
|
|
419
|
+
);
|
|
420
|
+
const scale = cartesian3Scratch;
|
|
421
|
+
scale.x = 1 / dimensions.x;
|
|
422
|
+
scale.y = 1 / dimensions.y;
|
|
423
|
+
scale.z = 1 / dimensions.z;
|
|
424
|
+
Matrix4_default.multiply(Matrix4_default.fromScale(scale, matrix4Scratch), toENU, toENU);
|
|
425
|
+
matrix = Matrix4_default.clone(fromENU);
|
|
426
|
+
Matrix4_default.setTranslation(matrix, Cartesian3_default.ZERO, matrix);
|
|
427
|
+
fromENU = Matrix4_default.clone(fromENU, new Matrix4_default());
|
|
428
|
+
const translationMatrix = Matrix4_default.fromTranslation(minimum, matrix4Scratch);
|
|
429
|
+
const scaleMatrix = Matrix4_default.fromScale(dimensions, matrix4Scratch2);
|
|
430
|
+
const st = Matrix4_default.multiply(translationMatrix, scaleMatrix, matrix4Scratch);
|
|
431
|
+
Matrix4_default.multiply(fromENU, st, fromENU);
|
|
432
|
+
Matrix4_default.multiply(matrix, st, matrix);
|
|
433
|
+
}
|
|
434
|
+
this.quantization = quantization;
|
|
435
|
+
this.minimumHeight = minimumHeight;
|
|
436
|
+
this.maximumHeight = maximumHeight;
|
|
437
|
+
this.center = Cartesian3_default.clone(center);
|
|
438
|
+
this.toScaledENU = toENU;
|
|
439
|
+
this.fromScaledENU = fromENU;
|
|
440
|
+
this.matrix = matrix;
|
|
441
|
+
this.hasVertexNormals = hasVertexNormals;
|
|
442
|
+
this.hasWebMercatorT = defaultValue_default(hasWebMercatorT, false);
|
|
443
|
+
this.hasGeodeticSurfaceNormals = defaultValue_default(
|
|
444
|
+
hasGeodeticSurfaceNormals,
|
|
445
|
+
false
|
|
446
|
+
);
|
|
447
|
+
this.exaggeration = defaultValue_default(exaggeration, 1);
|
|
448
|
+
this.exaggerationRelativeHeight = defaultValue_default(
|
|
449
|
+
exaggerationRelativeHeight,
|
|
450
|
+
0
|
|
451
|
+
);
|
|
452
|
+
this.stride = 0;
|
|
453
|
+
this._offsetGeodeticSurfaceNormal = 0;
|
|
454
|
+
this._offsetVertexNormal = 0;
|
|
455
|
+
this._calculateStrideAndOffsets();
|
|
456
|
+
}
|
|
457
|
+
TerrainEncoding.prototype.encode = function(vertexBuffer, bufferIndex, position, uv, height, normalToPack, webMercatorT, geodeticSurfaceNormal) {
|
|
458
|
+
const u = uv.x;
|
|
459
|
+
const v = uv.y;
|
|
460
|
+
if (this.quantization === TerrainQuantization_default.BITS12) {
|
|
461
|
+
position = Matrix4_default.multiplyByPoint(
|
|
462
|
+
this.toScaledENU,
|
|
463
|
+
position,
|
|
464
|
+
cartesian3Scratch
|
|
465
|
+
);
|
|
466
|
+
position.x = Math_default.clamp(position.x, 0, 1);
|
|
467
|
+
position.y = Math_default.clamp(position.y, 0, 1);
|
|
468
|
+
position.z = Math_default.clamp(position.z, 0, 1);
|
|
469
|
+
const hDim = this.maximumHeight - this.minimumHeight;
|
|
470
|
+
const h = Math_default.clamp((height - this.minimumHeight) / hDim, 0, 1);
|
|
471
|
+
Cartesian2_default.fromElements(position.x, position.y, cartesian2Scratch);
|
|
472
|
+
const compressed0 = AttributeCompression_default.compressTextureCoordinates(
|
|
473
|
+
cartesian2Scratch
|
|
474
|
+
);
|
|
475
|
+
Cartesian2_default.fromElements(position.z, h, cartesian2Scratch);
|
|
476
|
+
const compressed1 = AttributeCompression_default.compressTextureCoordinates(
|
|
477
|
+
cartesian2Scratch
|
|
478
|
+
);
|
|
479
|
+
Cartesian2_default.fromElements(u, v, cartesian2Scratch);
|
|
480
|
+
const compressed2 = AttributeCompression_default.compressTextureCoordinates(
|
|
481
|
+
cartesian2Scratch
|
|
482
|
+
);
|
|
483
|
+
vertexBuffer[bufferIndex++] = compressed0;
|
|
484
|
+
vertexBuffer[bufferIndex++] = compressed1;
|
|
485
|
+
vertexBuffer[bufferIndex++] = compressed2;
|
|
486
|
+
if (this.hasWebMercatorT) {
|
|
487
|
+
Cartesian2_default.fromElements(webMercatorT, 0, cartesian2Scratch);
|
|
488
|
+
const compressed3 = AttributeCompression_default.compressTextureCoordinates(
|
|
489
|
+
cartesian2Scratch
|
|
490
|
+
);
|
|
491
|
+
vertexBuffer[bufferIndex++] = compressed3;
|
|
492
|
+
}
|
|
493
|
+
} else {
|
|
494
|
+
Cartesian3_default.subtract(position, this.center, cartesian3Scratch);
|
|
495
|
+
vertexBuffer[bufferIndex++] = cartesian3Scratch.x;
|
|
496
|
+
vertexBuffer[bufferIndex++] = cartesian3Scratch.y;
|
|
497
|
+
vertexBuffer[bufferIndex++] = cartesian3Scratch.z;
|
|
498
|
+
vertexBuffer[bufferIndex++] = height;
|
|
499
|
+
vertexBuffer[bufferIndex++] = u;
|
|
500
|
+
vertexBuffer[bufferIndex++] = v;
|
|
501
|
+
if (this.hasWebMercatorT) {
|
|
502
|
+
vertexBuffer[bufferIndex++] = webMercatorT;
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
if (this.hasVertexNormals) {
|
|
506
|
+
vertexBuffer[bufferIndex++] = AttributeCompression_default.octPackFloat(
|
|
507
|
+
normalToPack
|
|
508
|
+
);
|
|
509
|
+
}
|
|
510
|
+
if (this.hasGeodeticSurfaceNormals) {
|
|
511
|
+
vertexBuffer[bufferIndex++] = geodeticSurfaceNormal.x;
|
|
512
|
+
vertexBuffer[bufferIndex++] = geodeticSurfaceNormal.y;
|
|
513
|
+
vertexBuffer[bufferIndex++] = geodeticSurfaceNormal.z;
|
|
514
|
+
}
|
|
515
|
+
return bufferIndex;
|
|
516
|
+
};
|
|
517
|
+
var scratchPosition = new Cartesian3_default();
|
|
518
|
+
var scratchGeodeticSurfaceNormal = new Cartesian3_default();
|
|
519
|
+
TerrainEncoding.prototype.addGeodeticSurfaceNormals = function(oldBuffer, newBuffer, ellipsoid) {
|
|
520
|
+
if (this.hasGeodeticSurfaceNormals) {
|
|
521
|
+
return;
|
|
522
|
+
}
|
|
523
|
+
const oldStride = this.stride;
|
|
524
|
+
const vertexCount = oldBuffer.length / oldStride;
|
|
525
|
+
this.hasGeodeticSurfaceNormals = true;
|
|
526
|
+
this._calculateStrideAndOffsets();
|
|
527
|
+
const newStride = this.stride;
|
|
528
|
+
for (let index = 0; index < vertexCount; index++) {
|
|
529
|
+
for (let offset = 0; offset < oldStride; offset++) {
|
|
530
|
+
const oldIndex = index * oldStride + offset;
|
|
531
|
+
const newIndex = index * newStride + offset;
|
|
532
|
+
newBuffer[newIndex] = oldBuffer[oldIndex];
|
|
533
|
+
}
|
|
534
|
+
const position = this.decodePosition(newBuffer, index, scratchPosition);
|
|
535
|
+
const geodeticSurfaceNormal = ellipsoid.geodeticSurfaceNormal(
|
|
536
|
+
position,
|
|
537
|
+
scratchGeodeticSurfaceNormal
|
|
538
|
+
);
|
|
539
|
+
const bufferIndex = index * newStride + this._offsetGeodeticSurfaceNormal;
|
|
540
|
+
newBuffer[bufferIndex] = geodeticSurfaceNormal.x;
|
|
541
|
+
newBuffer[bufferIndex + 1] = geodeticSurfaceNormal.y;
|
|
542
|
+
newBuffer[bufferIndex + 2] = geodeticSurfaceNormal.z;
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
TerrainEncoding.prototype.removeGeodeticSurfaceNormals = function(oldBuffer, newBuffer) {
|
|
546
|
+
if (!this.hasGeodeticSurfaceNormals) {
|
|
547
|
+
return;
|
|
548
|
+
}
|
|
549
|
+
const oldStride = this.stride;
|
|
550
|
+
const vertexCount = oldBuffer.length / oldStride;
|
|
551
|
+
this.hasGeodeticSurfaceNormals = false;
|
|
552
|
+
this._calculateStrideAndOffsets();
|
|
553
|
+
const newStride = this.stride;
|
|
554
|
+
for (let index = 0; index < vertexCount; index++) {
|
|
555
|
+
for (let offset = 0; offset < newStride; offset++) {
|
|
556
|
+
const oldIndex = index * oldStride + offset;
|
|
557
|
+
const newIndex = index * newStride + offset;
|
|
558
|
+
newBuffer[newIndex] = oldBuffer[oldIndex];
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
TerrainEncoding.prototype.decodePosition = function(buffer, index, result) {
|
|
563
|
+
if (!defined_default(result)) {
|
|
564
|
+
result = new Cartesian3_default();
|
|
565
|
+
}
|
|
566
|
+
index *= this.stride;
|
|
567
|
+
if (this.quantization === TerrainQuantization_default.BITS12) {
|
|
568
|
+
const xy = AttributeCompression_default.decompressTextureCoordinates(
|
|
569
|
+
buffer[index],
|
|
570
|
+
cartesian2Scratch
|
|
571
|
+
);
|
|
572
|
+
result.x = xy.x;
|
|
573
|
+
result.y = xy.y;
|
|
574
|
+
const zh = AttributeCompression_default.decompressTextureCoordinates(
|
|
575
|
+
buffer[index + 1],
|
|
576
|
+
cartesian2Scratch
|
|
577
|
+
);
|
|
578
|
+
result.z = zh.x;
|
|
579
|
+
return Matrix4_default.multiplyByPoint(this.fromScaledENU, result, result);
|
|
580
|
+
}
|
|
581
|
+
result.x = buffer[index];
|
|
582
|
+
result.y = buffer[index + 1];
|
|
583
|
+
result.z = buffer[index + 2];
|
|
584
|
+
return Cartesian3_default.add(result, this.center, result);
|
|
585
|
+
};
|
|
586
|
+
TerrainEncoding.prototype.getExaggeratedPosition = function(buffer, index, result) {
|
|
587
|
+
result = this.decodePosition(buffer, index, result);
|
|
588
|
+
const exaggeration = this.exaggeration;
|
|
589
|
+
const exaggerationRelativeHeight = this.exaggerationRelativeHeight;
|
|
590
|
+
const hasExaggeration = exaggeration !== 1;
|
|
591
|
+
if (hasExaggeration && this.hasGeodeticSurfaceNormals) {
|
|
592
|
+
const geodeticSurfaceNormal = this.decodeGeodeticSurfaceNormal(
|
|
593
|
+
buffer,
|
|
594
|
+
index,
|
|
595
|
+
scratchGeodeticSurfaceNormal
|
|
596
|
+
);
|
|
597
|
+
const rawHeight = this.decodeHeight(buffer, index);
|
|
598
|
+
const heightDifference = VerticalExaggeration_default.getHeight(
|
|
599
|
+
rawHeight,
|
|
600
|
+
exaggeration,
|
|
601
|
+
exaggerationRelativeHeight
|
|
602
|
+
) - rawHeight;
|
|
603
|
+
result.x += geodeticSurfaceNormal.x * heightDifference;
|
|
604
|
+
result.y += geodeticSurfaceNormal.y * heightDifference;
|
|
605
|
+
result.z += geodeticSurfaceNormal.z * heightDifference;
|
|
606
|
+
}
|
|
607
|
+
return result;
|
|
608
|
+
};
|
|
609
|
+
TerrainEncoding.prototype.decodeTextureCoordinates = function(buffer, index, result) {
|
|
610
|
+
if (!defined_default(result)) {
|
|
611
|
+
result = new Cartesian2_default();
|
|
612
|
+
}
|
|
613
|
+
index *= this.stride;
|
|
614
|
+
if (this.quantization === TerrainQuantization_default.BITS12) {
|
|
615
|
+
return AttributeCompression_default.decompressTextureCoordinates(
|
|
616
|
+
buffer[index + 2],
|
|
617
|
+
result
|
|
618
|
+
);
|
|
619
|
+
}
|
|
620
|
+
return Cartesian2_default.fromElements(buffer[index + 4], buffer[index + 5], result);
|
|
621
|
+
};
|
|
622
|
+
TerrainEncoding.prototype.decodeHeight = function(buffer, index) {
|
|
623
|
+
index *= this.stride;
|
|
624
|
+
if (this.quantization === TerrainQuantization_default.BITS12) {
|
|
625
|
+
const zh = AttributeCompression_default.decompressTextureCoordinates(
|
|
626
|
+
buffer[index + 1],
|
|
627
|
+
cartesian2Scratch
|
|
628
|
+
);
|
|
629
|
+
return zh.y * (this.maximumHeight - this.minimumHeight) + this.minimumHeight;
|
|
630
|
+
}
|
|
631
|
+
return buffer[index + 3];
|
|
632
|
+
};
|
|
633
|
+
TerrainEncoding.prototype.decodeWebMercatorT = function(buffer, index) {
|
|
634
|
+
index *= this.stride;
|
|
635
|
+
if (this.quantization === TerrainQuantization_default.BITS12) {
|
|
636
|
+
return AttributeCompression_default.decompressTextureCoordinates(
|
|
637
|
+
buffer[index + 3],
|
|
638
|
+
cartesian2Scratch
|
|
639
|
+
).x;
|
|
640
|
+
}
|
|
641
|
+
return buffer[index + 6];
|
|
642
|
+
};
|
|
643
|
+
TerrainEncoding.prototype.getOctEncodedNormal = function(buffer, index, result) {
|
|
644
|
+
index = index * this.stride + this._offsetVertexNormal;
|
|
645
|
+
const temp = buffer[index] / 256;
|
|
646
|
+
const x = Math.floor(temp);
|
|
647
|
+
const y = (temp - x) * 256;
|
|
648
|
+
return Cartesian2_default.fromElements(x, y, result);
|
|
649
|
+
};
|
|
650
|
+
TerrainEncoding.prototype.decodeGeodeticSurfaceNormal = function(buffer, index, result) {
|
|
651
|
+
index = index * this.stride + this._offsetGeodeticSurfaceNormal;
|
|
652
|
+
result.x = buffer[index];
|
|
653
|
+
result.y = buffer[index + 1];
|
|
654
|
+
result.z = buffer[index + 2];
|
|
655
|
+
return result;
|
|
656
|
+
};
|
|
657
|
+
TerrainEncoding.prototype._calculateStrideAndOffsets = function() {
|
|
658
|
+
let vertexStride = 0;
|
|
659
|
+
switch (this.quantization) {
|
|
660
|
+
case TerrainQuantization_default.BITS12:
|
|
661
|
+
vertexStride += 3;
|
|
662
|
+
break;
|
|
663
|
+
default:
|
|
664
|
+
vertexStride += 6;
|
|
665
|
+
}
|
|
666
|
+
if (this.hasWebMercatorT) {
|
|
667
|
+
vertexStride += 1;
|
|
668
|
+
}
|
|
669
|
+
if (this.hasVertexNormals) {
|
|
670
|
+
this._offsetVertexNormal = vertexStride;
|
|
671
|
+
vertexStride += 1;
|
|
672
|
+
}
|
|
673
|
+
if (this.hasGeodeticSurfaceNormals) {
|
|
674
|
+
this._offsetGeodeticSurfaceNormal = vertexStride;
|
|
675
|
+
vertexStride += 3;
|
|
676
|
+
}
|
|
677
|
+
this.stride = vertexStride;
|
|
678
|
+
};
|
|
679
|
+
var attributesIndicesNone = {
|
|
680
|
+
position3DAndHeight: 0,
|
|
681
|
+
textureCoordAndEncodedNormals: 1,
|
|
682
|
+
geodeticSurfaceNormal: 2
|
|
683
|
+
};
|
|
684
|
+
var attributesIndicesBits12 = {
|
|
685
|
+
compressed0: 0,
|
|
686
|
+
compressed1: 1,
|
|
687
|
+
geodeticSurfaceNormal: 2
|
|
688
|
+
};
|
|
689
|
+
TerrainEncoding.prototype.getAttributes = function(buffer) {
|
|
690
|
+
const datatype = ComponentDatatype_default.FLOAT;
|
|
691
|
+
const sizeInBytes = ComponentDatatype_default.getSizeInBytes(datatype);
|
|
692
|
+
const strideInBytes = this.stride * sizeInBytes;
|
|
693
|
+
let offsetInBytes = 0;
|
|
694
|
+
const attributes = [];
|
|
695
|
+
function addAttribute(index, componentsPerAttribute) {
|
|
696
|
+
attributes.push({
|
|
697
|
+
index,
|
|
698
|
+
vertexBuffer: buffer,
|
|
699
|
+
componentDatatype: datatype,
|
|
700
|
+
componentsPerAttribute,
|
|
701
|
+
offsetInBytes,
|
|
702
|
+
strideInBytes
|
|
703
|
+
});
|
|
704
|
+
offsetInBytes += componentsPerAttribute * sizeInBytes;
|
|
705
|
+
}
|
|
706
|
+
if (this.quantization === TerrainQuantization_default.NONE) {
|
|
707
|
+
addAttribute(attributesIndicesNone.position3DAndHeight, 4);
|
|
708
|
+
let componentsTexCoordAndNormals = 2;
|
|
709
|
+
componentsTexCoordAndNormals += this.hasWebMercatorT ? 1 : 0;
|
|
710
|
+
componentsTexCoordAndNormals += this.hasVertexNormals ? 1 : 0;
|
|
711
|
+
addAttribute(
|
|
712
|
+
attributesIndicesNone.textureCoordAndEncodedNormals,
|
|
713
|
+
componentsTexCoordAndNormals
|
|
714
|
+
);
|
|
715
|
+
if (this.hasGeodeticSurfaceNormals) {
|
|
716
|
+
addAttribute(attributesIndicesNone.geodeticSurfaceNormal, 3);
|
|
717
|
+
}
|
|
718
|
+
} else {
|
|
719
|
+
const usingAttribute0Component4 = this.hasWebMercatorT || this.hasVertexNormals;
|
|
720
|
+
const usingAttribute1Component1 = this.hasWebMercatorT && this.hasVertexNormals;
|
|
721
|
+
addAttribute(
|
|
722
|
+
attributesIndicesBits12.compressed0,
|
|
723
|
+
usingAttribute0Component4 ? 4 : 3
|
|
724
|
+
);
|
|
725
|
+
if (usingAttribute1Component1) {
|
|
726
|
+
addAttribute(attributesIndicesBits12.compressed1, 1);
|
|
727
|
+
}
|
|
728
|
+
if (this.hasGeodeticSurfaceNormals) {
|
|
729
|
+
addAttribute(attributesIndicesBits12.geodeticSurfaceNormal, 3);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
return attributes;
|
|
733
|
+
};
|
|
734
|
+
TerrainEncoding.prototype.getAttributeLocations = function() {
|
|
735
|
+
if (this.quantization === TerrainQuantization_default.NONE) {
|
|
736
|
+
return attributesIndicesNone;
|
|
737
|
+
}
|
|
738
|
+
return attributesIndicesBits12;
|
|
739
|
+
};
|
|
740
|
+
TerrainEncoding.clone = function(encoding, result) {
|
|
741
|
+
if (!defined_default(encoding)) {
|
|
742
|
+
return void 0;
|
|
743
|
+
}
|
|
744
|
+
if (!defined_default(result)) {
|
|
745
|
+
result = new TerrainEncoding();
|
|
746
|
+
}
|
|
747
|
+
result.quantization = encoding.quantization;
|
|
748
|
+
result.minimumHeight = encoding.minimumHeight;
|
|
749
|
+
result.maximumHeight = encoding.maximumHeight;
|
|
750
|
+
result.center = Cartesian3_default.clone(encoding.center);
|
|
751
|
+
result.toScaledENU = Matrix4_default.clone(encoding.toScaledENU);
|
|
752
|
+
result.fromScaledENU = Matrix4_default.clone(encoding.fromScaledENU);
|
|
753
|
+
result.matrix = Matrix4_default.clone(encoding.matrix);
|
|
754
|
+
result.hasVertexNormals = encoding.hasVertexNormals;
|
|
755
|
+
result.hasWebMercatorT = encoding.hasWebMercatorT;
|
|
756
|
+
result.hasGeodeticSurfaceNormals = encoding.hasGeodeticSurfaceNormals;
|
|
757
|
+
result.exaggeration = encoding.exaggeration;
|
|
758
|
+
result.exaggerationRelativeHeight = encoding.exaggerationRelativeHeight;
|
|
759
|
+
result._calculateStrideAndOffsets();
|
|
760
|
+
return result;
|
|
761
|
+
};
|
|
762
|
+
var TerrainEncoding_default = TerrainEncoding;
|
|
763
|
+
|
|
764
|
+
export {
|
|
765
|
+
EllipsoidalOccluder_default,
|
|
766
|
+
TerrainEncoding_default
|
|
767
|
+
};
|