potato-map3d-ui2 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of potato-map3d-ui2 might be problematic. Click here for more details.
- package/.vscode/extensions.json +3 -0
- package/README.md +18 -0
- package/env.d.ts +7 -0
- package/index.html +17 -0
- package/package.json +22 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/public/Cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/public/Cesium/Assets/Images/bing_maps_credit.png +0 -0
- package/public/Cesium/Assets/Images/cesium_credit.png +0 -0
- package/public/Cesium/Assets/Images/google_earth_credit.png +0 -0
- package/public/Cesium/Assets/Images/ion-credit.png +0 -0
- package/public/Cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/public/Cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/public/Cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/public/Cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/public/Cesium/Assets/Textures/maki/airfield.png +0 -0
- package/public/Cesium/Assets/Textures/maki/airport.png +0 -0
- package/public/Cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/public/Cesium/Assets/Textures/maki/america-football.png +0 -0
- package/public/Cesium/Assets/Textures/maki/art-gallery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bakery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bank.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bar.png +0 -0
- package/public/Cesium/Assets/Textures/maki/baseball.png +0 -0
- package/public/Cesium/Assets/Textures/maki/basketball.png +0 -0
- package/public/Cesium/Assets/Textures/maki/beer.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bicycle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/building.png +0 -0
- package/public/Cesium/Assets/Textures/maki/bus.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cafe.png +0 -0
- package/public/Cesium/Assets/Textures/maki/camera.png +0 -0
- package/public/Cesium/Assets/Textures/maki/campsite.png +0 -0
- package/public/Cesium/Assets/Textures/maki/car.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cemetery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cesium.png +0 -0
- package/public/Cesium/Assets/Textures/maki/chemist.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cinema.png +0 -0
- package/public/Cesium/Assets/Textures/maki/circle-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/circle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/city.png +0 -0
- package/public/Cesium/Assets/Textures/maki/clothing-store.png +0 -0
- package/public/Cesium/Assets/Textures/maki/college.png +0 -0
- package/public/Cesium/Assets/Textures/maki/commercial.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cricket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/cross.png +0 -0
- package/public/Cesium/Assets/Textures/maki/dam.png +0 -0
- package/public/Cesium/Assets/Textures/maki/danger.png +0 -0
- package/public/Cesium/Assets/Textures/maki/disability.png +0 -0
- package/public/Cesium/Assets/Textures/maki/dog-park.png +0 -0
- package/public/Cesium/Assets/Textures/maki/embassy.png +0 -0
- package/public/Cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/entrance.png +0 -0
- package/public/Cesium/Assets/Textures/maki/farm.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fast-food.png +0 -0
- package/public/Cesium/Assets/Textures/maki/ferry.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fire-station.png +0 -0
- package/public/Cesium/Assets/Textures/maki/fuel.png +0 -0
- package/public/Cesium/Assets/Textures/maki/garden.png +0 -0
- package/public/Cesium/Assets/Textures/maki/gift.png +0 -0
- package/public/Cesium/Assets/Textures/maki/golf.png +0 -0
- package/public/Cesium/Assets/Textures/maki/grocery.png +0 -0
- package/public/Cesium/Assets/Textures/maki/hairdresser.png +0 -0
- package/public/Cesium/Assets/Textures/maki/harbor.png +0 -0
- package/public/Cesium/Assets/Textures/maki/heart.png +0 -0
- package/public/Cesium/Assets/Textures/maki/heliport.png +0 -0
- package/public/Cesium/Assets/Textures/maki/hospital.png +0 -0
- package/public/Cesium/Assets/Textures/maki/ice-cream.png +0 -0
- package/public/Cesium/Assets/Textures/maki/industrial.png +0 -0
- package/public/Cesium/Assets/Textures/maki/land-use.png +0 -0
- package/public/Cesium/Assets/Textures/maki/laundry.png +0 -0
- package/public/Cesium/Assets/Textures/maki/library.png +0 -0
- package/public/Cesium/Assets/Textures/maki/lighthouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/lodging.png +0 -0
- package/public/Cesium/Assets/Textures/maki/logging.png +0 -0
- package/public/Cesium/Assets/Textures/maki/london-underground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/marker-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/marker.png +0 -0
- package/public/Cesium/Assets/Textures/maki/minefield.png +0 -0
- package/public/Cesium/Assets/Textures/maki/mobilephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/monument.png +0 -0
- package/public/Cesium/Assets/Textures/maki/museum.png +0 -0
- package/public/Cesium/Assets/Textures/maki/music.png +0 -0
- package/public/Cesium/Assets/Textures/maki/oil-well.png +0 -0
- package/public/Cesium/Assets/Textures/maki/park.png +0 -0
- package/public/Cesium/Assets/Textures/maki/park2.png +0 -0
- package/public/Cesium/Assets/Textures/maki/parking-garage.png +0 -0
- package/public/Cesium/Assets/Textures/maki/parking.png +0 -0
- package/public/Cesium/Assets/Textures/maki/pharmacy.png +0 -0
- package/public/Cesium/Assets/Textures/maki/pitch.png +0 -0
- package/public/Cesium/Assets/Textures/maki/place-of-worship.png +0 -0
- package/public/Cesium/Assets/Textures/maki/playground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/police.png +0 -0
- package/public/Cesium/Assets/Textures/maki/polling-place.png +0 -0
- package/public/Cesium/Assets/Textures/maki/post.png +0 -0
- package/public/Cesium/Assets/Textures/maki/prison.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-above.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-light.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-metro.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail-underground.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rail.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-christian.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-jewish.png +0 -0
- package/public/Cesium/Assets/Textures/maki/religious-muslim.png +0 -0
- package/public/Cesium/Assets/Textures/maki/restaurant.png +0 -0
- package/public/Cesium/Assets/Textures/maki/roadblock.png +0 -0
- package/public/Cesium/Assets/Textures/maki/rocket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/school.png +0 -0
- package/public/Cesium/Assets/Textures/maki/scooter.png +0 -0
- package/public/Cesium/Assets/Textures/maki/shop.png +0 -0
- package/public/Cesium/Assets/Textures/maki/skiing.png +0 -0
- package/public/Cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/soccer.png +0 -0
- package/public/Cesium/Assets/Textures/maki/square-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/square.png +0 -0
- package/public/Cesium/Assets/Textures/maki/star-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/star.png +0 -0
- package/public/Cesium/Assets/Textures/maki/suitcase.png +0 -0
- package/public/Cesium/Assets/Textures/maki/swimming.png +0 -0
- package/public/Cesium/Assets/Textures/maki/telephone.png +0 -0
- package/public/Cesium/Assets/Textures/maki/tennis.png +0 -0
- package/public/Cesium/Assets/Textures/maki/theatre.png +0 -0
- package/public/Cesium/Assets/Textures/maki/toilets.png +0 -0
- package/public/Cesium/Assets/Textures/maki/town-hall.png +0 -0
- package/public/Cesium/Assets/Textures/maki/town.png +0 -0
- package/public/Cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/public/Cesium/Assets/Textures/maki/triangle.png +0 -0
- package/public/Cesium/Assets/Textures/maki/village.png +0 -0
- package/public/Cesium/Assets/Textures/maki/warehouse.png +0 -0
- package/public/Cesium/Assets/Textures/maki/waste-basket.png +0 -0
- package/public/Cesium/Assets/Textures/maki/water.png +0 -0
- package/public/Cesium/Assets/Textures/maki/wetland.png +0 -0
- package/public/Cesium/Assets/Textures/maki/zoo.png +0 -0
- package/public/Cesium/Assets/Textures/moonSmall.jpg +0 -0
- package/public/Cesium/Assets/Textures/pin.svg +1 -0
- package/public/Cesium/Assets/Textures/waterNormals.jpg +0 -0
- package/public/Cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/public/Cesium/Assets/approximateTerrainHeights.json +1 -0
- package/public/Cesium/Cesium.d.ts +45342 -0
- package/public/Cesium/Cesium.js +80 -0
- package/public/Cesium/Scene/ModelExperimental/CustomShaderGuide/README.md +4 -0
- package/public/Cesium/ThirdParty/Workers/basis_transcoder.js +1 -0
- package/public/Cesium/ThirdParty/Workers/draco_decoder_nodejs.js +117 -0
- package/public/Cesium/ThirdParty/Workers/package.js +26 -0
- package/public/Cesium/ThirdParty/Workers/package.json +1 -0
- package/public/Cesium/ThirdParty/Workers/pako_deflate.min.js +1 -0
- package/public/Cesium/ThirdParty/Workers/pako_inflate.min.js +1 -0
- package/public/Cesium/ThirdParty/Workers/z-worker-pako.js +1 -0
- package/public/Cesium/ThirdParty/basis_transcoder.wasm +0 -0
- package/public/Cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/public/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/public/Cesium/Widgets/Animation/Animation.css +1 -0
- package/public/Cesium/Widgets/Animation/lighter.css +1 -0
- package/public/Cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +1 -0
- package/public/Cesium/Widgets/BaseLayerPicker/lighter.css +1 -0
- package/public/Cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +1 -0
- package/public/Cesium/Widgets/CesiumInspector/CesiumInspector.css +1 -0
- package/public/Cesium/Widgets/CesiumWidget/CesiumWidget.css +1 -0
- package/public/Cesium/Widgets/CesiumWidget/lighter.css +1 -0
- package/public/Cesium/Widgets/FullscreenButton/FullscreenButton.css +1 -0
- package/public/Cesium/Widgets/Geocoder/Geocoder.css +1 -0
- package/public/Cesium/Widgets/Geocoder/lighter.css +1 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriNationalGeographic.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriWorldImagery.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/esriWorldStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/public/Cesium/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/public/Cesium/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/public/Cesium/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/public/Cesium/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/public/Cesium/Widgets/Images/TimelineIcons.png +0 -0
- package/public/Cesium/Widgets/Images/info-loading.gif +0 -0
- package/public/Cesium/Widgets/InfoBox/InfoBox.css +1 -0
- package/public/Cesium/Widgets/InfoBox/InfoBoxDescription.css +1 -0
- package/public/Cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +1 -0
- package/public/Cesium/Widgets/NavigationHelpButton/lighter.css +1 -0
- package/public/Cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +1 -0
- package/public/Cesium/Widgets/ProjectionPicker/ProjectionPicker.css +1 -0
- package/public/Cesium/Widgets/SceneModePicker/SceneModePicker.css +1 -0
- package/public/Cesium/Widgets/SelectionIndicator/SelectionIndicator.css +1 -0
- package/public/Cesium/Widgets/Timeline/Timeline.css +1 -0
- package/public/Cesium/Widgets/Timeline/lighter.css +1 -0
- package/public/Cesium/Widgets/VRButton/VRButton.css +1 -0
- package/public/Cesium/Widgets/Viewer/Viewer.css +1 -0
- package/public/Cesium/Widgets/lighter.css +1 -0
- package/public/Cesium/Widgets/lighterShared.css +1 -0
- package/public/Cesium/Widgets/shared.css +1 -0
- package/public/Cesium/Widgets/widgets.css +1 -0
- package/public/Cesium/Workers/ArcType-b570b3ee.js +25 -0
- package/public/Cesium/Workers/ArcType-de5d8777.js +25 -0
- package/public/Cesium/Workers/AttributeCompression-5744d52e.js +25 -0
- package/public/Cesium/Workers/AttributeCompression-f967afc2.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-255e5057.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-47db7c7f.js +25 -0
- package/public/Cesium/Workers/AxisAlignedBoundingBox-546c299b.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-5691ae9d.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-636ecf9f.js +25 -0
- package/public/Cesium/Workers/BoundingRectangle-869c584d.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-17972137.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-b34a2283.js +25 -0
- package/public/Cesium/Workers/BoxGeometry-f99e1294.js +25 -0
- package/public/Cesium/Workers/Color-301b72e6.js +25 -0
- package/public/Cesium/Workers/Color-62754929.js +25 -0
- package/public/Cesium/Workers/Color-ab712aae.js +25 -0
- package/public/Cesium/Workers/ComponentDatatype-6ff7d2c3.js +25 -0
- package/public/Cesium/Workers/ComponentDatatype-e7fbe225.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-3c267f31.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-d343a6d7.js +25 -0
- package/public/Cesium/Workers/CoplanarPolygonGeometryLibrary-eb4bd06f.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-5c5a2d97.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-b25ae85b.js +25 -0
- package/public/Cesium/Workers/CorridorGeometryLibrary-bb6ab1cc.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-004fa238.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-1c699361.js +25 -0
- package/public/Cesium/Workers/CylinderGeometry-3a1d8b87.js +25 -0
- package/public/Cesium/Workers/CylinderGeometryLibrary-24ad1484.js +25 -0
- package/public/Cesium/Workers/CylinderGeometryLibrary-24ffef71.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-5676dce7.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-8cfc99b0.js +25 -0
- package/public/Cesium/Workers/EllipseGeometry-b71ca2ae.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-6da859ee.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-7ab28f68.js +25 -0
- package/public/Cesium/Workers/EllipseGeometryLibrary-9c7a22fb.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-35eddd22.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-6376df9c.js +25 -0
- package/public/Cesium/Workers/EllipseOutlineGeometry-b0b5806f.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeodesic-84738e5f.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeodesic-ed8a0e40.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-5f95b75b.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-78c28ab4.js +25 -0
- package/public/Cesium/Workers/EllipsoidGeometry-e2286aab.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-80bdc65f.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-9a1727ee.js +25 -0
- package/public/Cesium/Workers/EllipsoidOutlineGeometry-fd03887d.js +25 -0
- package/public/Cesium/Workers/EllipsoidRhumbLine-60f14314.js +25 -0
- package/public/Cesium/Workers/EllipsoidRhumbLine-c3b11f35.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-7dc686cd.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-9813dd6d.js +25 -0
- package/public/Cesium/Workers/EllipsoidTangentPlane-c5c26b0d.js +25 -0
- package/public/Cesium/Workers/EncodedCartesian3-1e797130.js +25 -0
- package/public/Cesium/Workers/EncodedCartesian3-a9a8a281.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-a6f9f16a.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-df8261e4.js +25 -0
- package/public/Cesium/Workers/FrustumGeometry-e939fe30.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-8163e7fe.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-c4e59d2f.js +25 -0
- package/public/Cesium/Workers/GeometryAttribute-f542c9a2.js +25 -0
- package/public/Cesium/Workers/GeometryAttributes-734a3446.js +25 -0
- package/public/Cesium/Workers/GeometryAttributes-cb1bf806.js +25 -0
- package/public/Cesium/Workers/GeometryInstance-4bfcfe78.js +25 -0
- package/public/Cesium/Workers/GeometryInstance-8a2d7ac1.js +25 -0
- package/public/Cesium/Workers/GeometryOffsetAttribute-59b14f45.js +25 -0
- package/public/Cesium/Workers/GeometryOffsetAttribute-ddcc2f7f.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-350055a2.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-6bdfe811.js +25 -0
- package/public/Cesium/Workers/GeometryPipeline-87dd0e0a.js +25 -0
- package/public/Cesium/Workers/IndexDatatype-65271ba3.js +25 -0
- package/public/Cesium/Workers/IndexDatatype-d42fd89c.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-60b7843b.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-7d7483f2.js +25 -0
- package/public/Cesium/Workers/IntersectionTests-a7d8bdc4.js +25 -0
- package/public/Cesium/Workers/Matrix2-735f0ea9.js +25 -0
- package/public/Cesium/Workers/Matrix2-73789715.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-4691d67b.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-5ee9ed67.js +25 -0
- package/public/Cesium/Workers/OrientedBoundingBox-e995cfaf.js +25 -0
- package/public/Cesium/Workers/Plane-6c77dfaf.js +25 -0
- package/public/Cesium/Workers/Plane-e916220d.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-1e3a5b27.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-9175878e.js +25 -0
- package/public/Cesium/Workers/PolygonGeometryLibrary-aaa1e2e8.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-22507996.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-5a1c3ce9.js +25 -0
- package/public/Cesium/Workers/PolygonPipeline-e5fc87bb.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-192ea676.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-608e4017.js +25 -0
- package/public/Cesium/Workers/PolylinePipeline-ab9c4512.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-02df6d4c.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-6e5cac20.js +25 -0
- package/public/Cesium/Workers/PolylineVolumeGeometryLibrary-a3701381.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-53950dc0.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-5711c037.js +25 -0
- package/public/Cesium/Workers/PrimitivePipeline-ee92ce1a.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-06a4e4d4.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-53def455.js +25 -0
- package/public/Cesium/Workers/RectangleGeometryLibrary-bde82d75.js +25 -0
- package/public/Cesium/Workers/RuntimeError-17a7ed3d.js +25 -0
- package/public/Cesium/Workers/RuntimeError-4f8ec8a2.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-149a9713.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-218a6b73.js +25 -0
- package/public/Cesium/Workers/TerrainEncoding-28a34fd9.js +25 -0
- package/public/Cesium/Workers/Transforms-ac54558c.js +63 -0
- package/public/Cesium/Workers/Transforms-b698c16d.js +63 -0
- package/public/Cesium/Workers/Transforms-d4da1631.js +63 -0
- package/public/Cesium/Workers/VertexFormat-4362bb4a.js +25 -0
- package/public/Cesium/Workers/VertexFormat-9886cb81.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-514d3e5b.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-c66f62cf.js +25 -0
- package/public/Cesium/Workers/WallGeometryLibrary-e26bb3f9.js +25 -0
- package/public/Cesium/Workers/WebGLConstants-6da700a2.js +25 -0
- package/public/Cesium/Workers/WebGLConstants-d878ea52.js +25 -0
- package/public/Cesium/Workers/WebMercatorProjection-04ef6bc3.js +25 -0
- package/public/Cesium/Workers/WebMercatorProjection-4d21b562.js +25 -0
- package/public/Cesium/Workers/_commonjsHelpers-3aae1032-65601a27.js +25 -0
- package/public/Cesium/Workers/_commonjsHelpers-c27c962c.js +25 -0
- package/public/Cesium/Workers/arrayRemoveDuplicates-6f91355d.js +25 -0
- package/public/Cesium/Workers/arrayRemoveDuplicates-d332a3bf.js +25 -0
- package/public/Cesium/Workers/cesiumWorkerBootstrapper.js +6 -0
- package/public/Cesium/Workers/combine-c04aaa26.js +25 -0
- package/public/Cesium/Workers/combine-d11b1f00.js +25 -0
- package/public/Cesium/Workers/combineGeometry.js +25 -0
- package/public/Cesium/Workers/createBoxGeometry.js +25 -0
- package/public/Cesium/Workers/createBoxOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCircleGeometry.js +25 -0
- package/public/Cesium/Workers/createCircleOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCoplanarPolygonGeometry.js +25 -0
- package/public/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCorridorGeometry.js +25 -0
- package/public/Cesium/Workers/createCorridorOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createCylinderGeometry.js +25 -0
- package/public/Cesium/Workers/createCylinderOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipseGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipseOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipsoidGeometry.js +25 -0
- package/public/Cesium/Workers/createEllipsoidOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createFrustumGeometry.js +25 -0
- package/public/Cesium/Workers/createFrustumOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createGeometry.js +25 -0
- package/public/Cesium/Workers/createGroundPolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createPlaneGeometry.js +25 -0
- package/public/Cesium/Workers/createPlaneOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolygonGeometry.js +25 -0
- package/public/Cesium/Workers/createPolygonOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineVolumeGeometry.js +25 -0
- package/public/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createRectangleGeometry.js +25 -0
- package/public/Cesium/Workers/createRectangleOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createSimplePolylineGeometry.js +25 -0
- package/public/Cesium/Workers/createSphereGeometry.js +25 -0
- package/public/Cesium/Workers/createSphereOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/createTaskProcessorWorker.js +25 -0
- package/public/Cesium/Workers/createVectorTileClampedPolylines.js +25 -0
- package/public/Cesium/Workers/createVectorTileGeometries.js +25 -0
- package/public/Cesium/Workers/createVectorTilePoints.js +25 -0
- package/public/Cesium/Workers/createVectorTilePolygons.js +25 -0
- package/public/Cesium/Workers/createVectorTilePolylines.js +25 -0
- package/public/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +25 -0
- package/public/Cesium/Workers/createVerticesFromHeightmap.js +27 -0
- package/public/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +25 -0
- package/public/Cesium/Workers/createWallGeometry.js +25 -0
- package/public/Cesium/Workers/createWallOutlineGeometry.js +25 -0
- package/public/Cesium/Workers/decodeDraco.js +25 -0
- package/public/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +25 -0
- package/public/Cesium/Workers/defaultValue-6ed27e8d.js +25 -0
- package/public/Cesium/Workers/defaultValue-97284df2.js +25 -0
- package/public/Cesium/Workers/package.js +26 -0
- package/public/Cesium/Workers/package.json +1 -0
- package/public/Cesium/Workers/transcodeKTX2.js +25 -0
- package/public/Cesium/Workers/transferTypedArrayTest.js +1 -0
- package/public/Cesium/Workers/upsampleQuantizedTerrainMesh.js +25 -0
- package/public/Cesium/index.cjs +9781 -0
- package/public/Cesium/index.js +9780 -0
- package/public/tudou3d/README.md +25 -0
- package/public/tudou3d/img/cursor.png +0 -0
- package/public/tudou3d/tudou3d-src.css +34 -0
- package/public/tudou3d/tudou3d-src.js +91704 -0
- package/public/tudou3d/tudou3d.css +8 -0
- package/public/tudou3d/tudou3d.js +6 -0
- package/public/vite.svg +1 -0
- package/src/App.vue +204 -0
- package/src/assets/base-map.svg +15 -0
- package/src/assets/face-map.svg +14 -0
- package/src/assets/north-map.svg +18 -0
- package/src/assets/reset-map.svg +13 -0
- package/src/assets/showcontrol-map.svg +21 -0
- package/src/assets/vue.svg +1 -0
- package/src/assets/zoomin-map.svg +13 -0
- package/src/assets/zoomout-map.svg +13 -0
- package/src/components/map3dt/index.vue +35 -0
- package/src/components/map3dt/useMap.ts +19 -0
- package/src/components/zoomIn/index.vue +37 -0
- package/src/components/zoomOut/index.vue +90 -0
- package/src/images.d.ts +7 -0
- package/src/main.ts +6 -0
- package/src/packages/main.ts +12 -0
- package/src/style.css +85 -0
- package/src/typings/shims-vue.d.ts +23 -0
- package/src/vite-env.d.ts +1 -0
- package/tsconfig.json +21 -0
- package/tsconfig.node.json +9 -0
- package/uno.config.ts +34 -0
- package/vite.config.ts +9 -0
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./arrayRemoveDuplicates-6f91355d","./Transforms-d4da1631","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./PolylineVolumeGeometryLibrary-a3701381","./CorridorGeometryLibrary-bb6ab1cc","./defaultValue-97284df2","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3","./PolygonPipeline-5a1c3ce9","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./EllipsoidTangentPlane-9813dd6d","./AxisAlignedBoundingBox-546c299b","./IntersectionTests-a7d8bdc4","./Plane-e916220d","./PolylinePipeline-ab9c4512","./EllipsoidGeodesic-ed8a0e40","./EllipsoidRhumbLine-60f14314"],(function(e,t,i,r,o,n,s,a,l,d,u,p,f,c,h,y,g,b,m,A,_,E,C){"use strict";const G=new i.Cartesian3,T=new i.Cartesian3,P=new i.Cartesian3;function v(e,t){const r=[],u=e.positions,f=e.corners,c=e.endPositions,h=new d.GeometryAttributes;let y,g,b,m=0,A=0,_=0;for(g=0;g<u.length;g+=2)b=u[g].length-3,m+=b,_+=b/3*4,A+=u[g+1].length-3;for(m+=3,A+=3,g=0;g<f.length;g++){y=f[g];const e=f[g].leftPositions;a.defined(e)?(b=e.length,m+=b,_+=b/3*2):(b=f[g].rightPositions.length,A+=b,_+=b/3*2)}const E=a.defined(c);let C;E&&(C=c[0].length-3,m+=C,A+=C,C/=3,_+=4*C);const v=m+A,w=new Float64Array(v);let L,D,x,k,V,H,N=0,O=v-1;const I=C/2,S=p.IndexDatatype.createTypedArray(v/3,_+4);let B=0;if(S[B++]=N/3,S[B++]=(O-2)/3,E){r.push(N/3),H=G,V=T;const e=c[0];for(g=0;g<I;g++)H=i.Cartesian3.fromArray(e,3*(I-1-g),H),V=i.Cartesian3.fromArray(e,3*(I+g),V),s.CorridorGeometryLibrary.addAttribute(w,V,N),s.CorridorGeometryLibrary.addAttribute(w,H,void 0,O),D=N/3,k=D+1,L=(O-2)/3,x=L-1,S[B++]=L,S[B++]=x,S[B++]=D,S[B++]=k,N+=3,O-=3}let M=0,R=u[M++],U=u[M++];for(w.set(R,N),w.set(U,O-U.length+1),b=U.length-3,r.push(N/3,(O-2)/3),g=0;g<b;g+=3)D=N/3,k=D+1,L=(O-2)/3,x=L-1,S[B++]=L,S[B++]=x,S[B++]=D,S[B++]=k,N+=3,O-=3;for(g=0;g<f.length;g++){let e;y=f[g];const o=y.leftPositions,l=y.rightPositions;let d,p=P;if(a.defined(o)){for(O-=3,d=x,r.push(k),e=0;e<o.length/3;e++)p=i.Cartesian3.fromArray(o,3*e,p),S[B++]=d-e-1,S[B++]=d-e,s.CorridorGeometryLibrary.addAttribute(w,p,void 0,O),O-=3;r.push(d-Math.floor(o.length/6)),t===n.CornerType.BEVELED&&r.push((O-2)/3+1),N+=3}else{for(N+=3,d=k,r.push(x),e=0;e<l.length/3;e++)p=i.Cartesian3.fromArray(l,3*e,p),S[B++]=d+e,S[B++]=d+e+1,s.CorridorGeometryLibrary.addAttribute(w,p,N),N+=3;r.push(d+Math.floor(l.length/6)),t===n.CornerType.BEVELED&&r.push(N/3-1),O-=3}for(R=u[M++],U=u[M++],R.splice(0,3),U.splice(U.length-3,3),w.set(R,N),w.set(U,O-U.length+1),b=U.length-3,e=0;e<U.length;e+=3)k=N/3,D=k-1,x=(O-2)/3,L=x+1,S[B++]=L,S[B++]=x,S[B++]=D,S[B++]=k,N+=3,O-=3;N-=3,O+=3,r.push(N/3,(O-2)/3)}if(E){N+=3,O-=3,H=G,V=T;const e=c[1];for(g=0;g<I;g++)H=i.Cartesian3.fromArray(e,3*(C-g-1),H),V=i.Cartesian3.fromArray(e,3*g,V),s.CorridorGeometryLibrary.addAttribute(w,H,void 0,O),s.CorridorGeometryLibrary.addAttribute(w,V,N),k=N/3,D=k-1,x=(O-2)/3,L=x+1,S[B++]=L,S[B++]=x,S[B++]=D,S[B++]=k,N+=3,O-=3;r.push(N/3)}else r.push(N/3,(O-2)/3);return S[B++]=N/3,S[B++]=(O-2)/3,h.position=new l.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:w}),{attributes:h,indices:S,wallIndices:r}}function w(e){const t=(e=a.defaultValue(e,a.defaultValue.EMPTY_OBJECT)).positions,r=e.width,s=a.defaultValue(e.height,0),l=a.defaultValue(e.extrudedHeight,s);this._positions=t,this._ellipsoid=i.Ellipsoid.clone(a.defaultValue(e.ellipsoid,i.Ellipsoid.WGS84)),this._width=r,this._height=Math.max(s,l),this._extrudedHeight=Math.min(s,l),this._cornerType=a.defaultValue(e.cornerType,n.CornerType.ROUNDED),this._granularity=a.defaultValue(e.granularity,o.CesiumMath.RADIANS_PER_DEGREE),this._offsetAttribute=e.offsetAttribute,this._workerName="createCorridorOutlineGeometry",this.packedLength=1+t.length*i.Cartesian3.packedLength+i.Ellipsoid.packedLength+6}w.pack=function(e,t,r){r=a.defaultValue(r,0);const o=e._positions,n=o.length;t[r++]=n;for(let e=0;e<n;++e,r+=i.Cartesian3.packedLength)i.Cartesian3.pack(o[e],t,r);return i.Ellipsoid.pack(e._ellipsoid,t,r),r+=i.Ellipsoid.packedLength,t[r++]=e._width,t[r++]=e._height,t[r++]=e._extrudedHeight,t[r++]=e._cornerType,t[r++]=e._granularity,t[r]=a.defaultValue(e._offsetAttribute,-1),t};const L=i.Ellipsoid.clone(i.Ellipsoid.UNIT_SPHERE),D={positions:void 0,ellipsoid:L,width:void 0,height:void 0,extrudedHeight:void 0,cornerType:void 0,granularity:void 0,offsetAttribute:void 0};return w.unpack=function(e,t,r){t=a.defaultValue(t,0);const o=e[t++],n=new Array(o);for(let r=0;r<o;++r,t+=i.Cartesian3.packedLength)n[r]=i.Cartesian3.unpack(e,t);const s=i.Ellipsoid.unpack(e,t,L);t+=i.Ellipsoid.packedLength;const l=e[t++],d=e[t++],u=e[t++],p=e[t++],f=e[t++],c=e[t];return a.defined(r)?(r._positions=n,r._ellipsoid=i.Ellipsoid.clone(s,r._ellipsoid),r._width=l,r._height=d,r._extrudedHeight=u,r._cornerType=p,r._granularity=f,r._offsetAttribute=-1===c?void 0:c,r):(D.positions=n,D.width=l,D.height=d,D.extrudedHeight=u,D.cornerType=p,D.granularity=f,D.offsetAttribute=-1===c?void 0:c,new w(D))},w.createGeometry=function(r){let n=r._positions;const d=r._width,c=r._ellipsoid;n=function(e,t){for(let i=0;i<e.length;i++)e[i]=t.scaleToGeodeticSurface(e[i],e[i]);return e}(n,c);const h=e.arrayRemoveDuplicates(n,i.Cartesian3.equalsEpsilon);if(h.length<2||d<=0)return;const y=r._height,g=r._extrudedHeight,b=!o.CesiumMath.equalsEpsilon(y,g,0,o.CesiumMath.EPSILON2),m={ellipsoid:c,positions:h,width:d,cornerType:r._cornerType,granularity:r._granularity,saveAttributes:!1};let A;if(b)m.height=y,m.extrudedHeight=g,m.offsetAttribute=r._offsetAttribute,A=function(e){const t=e.ellipsoid,i=v(s.CorridorGeometryLibrary.computePositions(e),e.cornerType),r=i.wallIndices,n=e.height,d=e.extrudedHeight,c=i.attributes,h=i.indices;let y=c.position.values,g=y.length,b=new Float64Array(g);b.set(y);const m=new Float64Array(2*g);if(y=f.PolygonPipeline.scaleToGeodeticHeight(y,n,t),b=f.PolygonPipeline.scaleToGeodeticHeight(b,d,t),m.set(y),m.set(b,g),c.position.values=m,g/=3,a.defined(e.offsetAttribute)){let t=new Uint8Array(2*g);if(e.offsetAttribute===u.GeometryOffsetAttribute.TOP)t=t.fill(1,0,g);else{const i=e.offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1;t=t.fill(i)}c.applyOffset=new l.GeometryAttribute({componentDatatype:o.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:t})}let A;const _=h.length,E=p.IndexDatatype.createTypedArray(m.length/3,2*(_+r.length));E.set(h);let C,G,T=_;for(A=0;A<_;A+=2){const e=h[A],t=h[A+1];E[T++]=e+g,E[T++]=t+g}for(A=0;A<r.length;A++)C=r[A],G=C+g,E[T++]=C,E[T++]=G;return{attributes:c,indices:E}}(m);else{if(A=v(s.CorridorGeometryLibrary.computePositions(m),m.cornerType),A.attributes.position.values=f.PolygonPipeline.scaleToGeodeticHeight(A.attributes.position.values,y,c),a.defined(r._offsetAttribute)){const e=A.attributes.position.values.length,t=r._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,i=new Uint8Array(e/3).fill(t);A.attributes.applyOffset=new l.GeometryAttribute({componentDatatype:o.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}}const _=A.attributes,E=t.BoundingSphere.fromVertices(_.position.values,void 0,3);return new l.Geometry({attributes:_,indices:A.indices,primitiveType:l.PrimitiveType.LINES,boundingSphere:E,offsetAttribute:r._offsetAttribute})},function(e,t){return a.defined(t)&&(e=w.unpack(e,t)),e._ellipsoid=i.Ellipsoid.clone(e._ellipsoid),w.createGeometry(e)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./CylinderGeometry-004fa238","./defaultValue-97284df2","./Transforms-d4da1631","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./CylinderGeometryLibrary-24ad1484","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3","./VertexFormat-9886cb81"],(function(e,t,r,a,n,o,i,d,f,m,y,u,b,s,c){"use strict";return function(r,a){return t.defined(a)&&(r=e.CylinderGeometry.unpack(r,a)),e.CylinderGeometry.createGeometry(r)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./Transforms-d4da1631","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./CylinderGeometryLibrary-24ad1484","./defaultValue-97284df2","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2"],(function(t,e,i,n,o,r,a,s,u,f,d,l,c){"use strict";const m=new e.Cartesian2;function b(t){const e=(t=r.defaultValue(t,r.defaultValue.EMPTY_OBJECT)).length,i=t.topRadius,n=t.bottomRadius,o=r.defaultValue(t.slices,128),a=Math.max(r.defaultValue(t.numberOfVerticalLines,16),0);this._length=e,this._topRadius=i,this._bottomRadius=n,this._slices=o,this._numberOfVerticalLines=a,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderOutlineGeometry"}b.packedLength=6,b.pack=function(t,e,i){return i=r.defaultValue(i,0),e[i++]=t._length,e[i++]=t._topRadius,e[i++]=t._bottomRadius,e[i++]=t._slices,e[i++]=t._numberOfVerticalLines,e[i]=r.defaultValue(t._offsetAttribute,-1),e};const p={length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};return b.unpack=function(t,e,i){e=r.defaultValue(e,0);const n=t[e++],o=t[e++],a=t[e++],s=t[e++],u=t[e++],f=t[e];return r.defined(i)?(i._length=n,i._topRadius=o,i._bottomRadius=a,i._slices=s,i._numberOfVerticalLines=u,i._offsetAttribute=-1===f?void 0:f,i):(p.length=n,p.topRadius=o,p.bottomRadius=a,p.slices=s,p.numberOfVerticalLines=u,p.offsetAttribute=-1===f?void 0:f,new b(p))},b.createGeometry=function(i){let d=i._length;const l=i._topRadius,c=i._bottomRadius,b=i._slices,p=i._numberOfVerticalLines;if(d<=0||l<0||c<0||0===l&&0===c)return;const y=2*b,_=o.CylinderGeometryLibrary.computePositions(d,l,c,b,!1);let h,A=2*b;if(p>0){const t=Math.min(p,b);h=Math.round(b/t),A+=t}const R=f.IndexDatatype.createTypedArray(y,2*A);let G,O=0;for(G=0;G<b-1;G++)R[O++]=G,R[O++]=G+1,R[O++]=G+b,R[O++]=G+1+b;if(R[O++]=b-1,R[O++]=0,R[O++]=b+b-1,R[O++]=b,p>0)for(G=0;G<b;G+=h)R[O++]=G,R[O++]=G+b;const V=new s.GeometryAttributes;V.position=new a.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:_}),m.x=.5*d,m.y=Math.max(c,l);const L=new t.BoundingSphere(e.Cartesian3.ZERO,e.Cartesian2.magnitude(m));if(r.defined(i._offsetAttribute)){d=_.length;const t=i._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,e=new Uint8Array(d/3).fill(t);V.applyOffset=new a.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:e})}return new a.Geometry({attributes:V,indices:R,primitiveType:a.PrimitiveType.LINES,boundingSphere:L,offsetAttribute:i._offsetAttribute})},function(t,e){return r.defined(e)&&(t=b.unpack(t,e)),b.createGeometry(t)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./Matrix2-73789715","./defaultValue-97284df2","./EllipseGeometry-8cfc99b0","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./Transforms-d4da1631","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./EllipseGeometryLibrary-9c7a22fb","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryInstance-4bfcfe78","./GeometryOffsetAttribute-59b14f45","./GeometryPipeline-350055a2","./AttributeCompression-5744d52e","./EncodedCartesian3-a9a8a281","./IndexDatatype-65271ba3","./IntersectionTests-a7d8bdc4","./Plane-e916220d","./VertexFormat-9886cb81"],(function(e,t,r,a,n,o,i,s,c,l,d,f,m,b,p,u,y,G,E,C,_){"use strict";return function(a,n){return t.defined(n)&&(a=r.EllipseGeometry.unpack(a,n)),a._center=e.Cartesian3.clone(a._center),a._ellipsoid=e.Ellipsoid.clone(a._ellipsoid),r.EllipseGeometry.createGeometry(a)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./Matrix2-73789715","./defaultValue-97284df2","./EllipseOutlineGeometry-6376df9c","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./Transforms-d4da1631","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./EllipseGeometryLibrary-9c7a22fb","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3"],(function(e,t,r,i,n,a,o,l,s,f,u,c,d,m){"use strict";return function(i,n){return t.defined(n)&&(i=r.EllipseOutlineGeometry.unpack(i,n)),i._center=e.Cartesian3.clone(i._center),i._ellipsoid=e.Ellipsoid.clone(i._ellipsoid),r.EllipseOutlineGeometry.createGeometry(i)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./defaultValue-97284df2","./EllipsoidGeometry-e2286aab","./Transforms-d4da1631","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3","./VertexFormat-9886cb81"],(function(e,t,r,a,o,n,i,f,m,d,s,u,b,c){"use strict";return function(r,a){return e.defined(a)&&(r=t.EllipsoidGeometry.unpack(r,a)),t.EllipsoidGeometry.createGeometry(r)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./defaultValue-97284df2","./EllipsoidOutlineGeometry-fd03887d","./Transforms-d4da1631","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryOffsetAttribute-59b14f45","./IndexDatatype-65271ba3"],(function(e,t,r,n,a,i,o,f,u,d,m,s,l){"use strict";return function(r,n){return e.defined(r.buffer)&&(r=t.EllipsoidOutlineGeometry.unpack(r,n)),t.EllipsoidOutlineGeometry.createGeometry(r)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./defaultValue-97284df2","./FrustumGeometry-a6f9f16a","./Transforms-d4da1631","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./Plane-e916220d","./VertexFormat-9886cb81"],(function(e,t,r,a,n,o,u,m,f,s,d,i,c){"use strict";return function(r,a){return e.defined(a)&&(r=t.FrustumGeometry.unpack(r,a)),t.FrustumGeometry.createGeometry(r)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./defaultValue-97284df2","./Transforms-d4da1631","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./FrustumGeometry-a6f9f16a","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./Plane-e916220d","./VertexFormat-9886cb81"],(function(e,t,r,n,a,u,i,o,s,c,p,m,f){"use strict";const d=0,h=1;function l(n){const a=n.frustum,i=n.orientation,o=n.origin,s=e.defaultValue(n._drawNearPlane,!0);let c,p;a instanceof u.PerspectiveFrustum?(c=d,p=u.PerspectiveFrustum.packedLength):a instanceof u.OrthographicFrustum&&(c=h,p=u.OrthographicFrustum.packedLength),this._frustumType=c,this._frustum=a.clone(),this._origin=r.Cartesian3.clone(o),this._orientation=t.Quaternion.clone(i),this._drawNearPlane=s,this._workerName="createFrustumOutlineGeometry",this.packedLength=2+p+r.Cartesian3.packedLength+t.Quaternion.packedLength}l.pack=function(n,a,i){i=e.defaultValue(i,0);const o=n._frustumType,s=n._frustum;return a[i++]=o,o===d?(u.PerspectiveFrustum.pack(s,a,i),i+=u.PerspectiveFrustum.packedLength):(u.OrthographicFrustum.pack(s,a,i),i+=u.OrthographicFrustum.packedLength),r.Cartesian3.pack(n._origin,a,i),i+=r.Cartesian3.packedLength,t.Quaternion.pack(n._orientation,a,i),a[i+=t.Quaternion.packedLength]=n._drawNearPlane?1:0,a};const g=new u.PerspectiveFrustum,_=new u.OrthographicFrustum,k=new t.Quaternion,y=new r.Cartesian3;return l.unpack=function(n,a,i){a=e.defaultValue(a,0);const o=n[a++];let s;o===d?(s=u.PerspectiveFrustum.unpack(n,a,g),a+=u.PerspectiveFrustum.packedLength):(s=u.OrthographicFrustum.unpack(n,a,_),a+=u.OrthographicFrustum.packedLength);const c=r.Cartesian3.unpack(n,a,y);a+=r.Cartesian3.packedLength;const p=t.Quaternion.unpack(n,a,k),m=1===n[a+=t.Quaternion.packedLength];if(!e.defined(i))return new l({frustum:s,origin:c,orientation:p,_drawNearPlane:m});const f=o===i._frustumType?i._frustum:void 0;return i._frustum=s.clone(f),i._frustumType=o,i._origin=r.Cartesian3.clone(c,i._origin),i._orientation=t.Quaternion.clone(p,i._orientation),i._drawNearPlane=m,i},l.createGeometry=function(e){const r=e._frustumType,n=e._frustum,s=e._origin,c=e._orientation,p=e._drawNearPlane,m=new Float64Array(24);u.FrustumGeometry._computeNearFarPlanes(s,c,r,n,m);const f=new o.GeometryAttributes({position:new i.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:m})});let d,h;const l=p?2:1,g=new Uint16Array(8*(l+1));let _=p?0:1;for(;_<2;++_)d=p?8*_:0,h=4*_,g[d]=h,g[d+1]=h+1,g[d+2]=h+1,g[d+3]=h+2,g[d+4]=h+2,g[d+5]=h+3,g[d+6]=h+3,g[d+7]=h;for(_=0;_<2;++_)d=8*(l+_),h=4*_,g[d]=h,g[d+1]=h+4,g[d+2]=h+1,g[d+3]=h+5,g[d+4]=h+2,g[d+5]=h+6,g[d+6]=h+3,g[d+7]=h+7;return new i.Geometry({attributes:f,indices:g,primitiveType:i.PrimitiveType.LINES,boundingSphere:t.BoundingSphere.fromVertices(m)})},function(t,r){return e.defined(r)&&(t=l.unpack(t,r)),l.createGeometry(t)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./defaultValue-97284df2","./PrimitivePipeline-5711c037","./createTaskProcessorWorker","./Transforms-d4da1631","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./WebGLConstants-6da700a2","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryPipeline-350055a2","./AttributeCompression-5744d52e","./EncodedCartesian3-a9a8a281","./IndexDatatype-65271ba3","./IntersectionTests-a7d8bdc4","./Plane-e916220d","./WebMercatorProjection-04ef6bc3"],(function(e,t,r,n,o,a,i,s,c,f,u,d,m,l,b,p,y,P,k){"use strict";const C={};function G(t){let r=C[t];return e.defined(r)||("object"==typeof exports?C[r]=r=require(`Workers/${t}`):require([`Workers/${t}`],(function(e){r=e,C[r]=e}))),r}return r((function(r,n){const o=r.subTasks,a=o.length,i=new Array(a);for(let t=0;t<a;t++){const r=o[t],n=r.geometry,a=r.moduleName;if(e.defined(a)){const e=G(a);i[t]=e(n,r.offset)}else i[t]=n}return Promise.all(i).then((function(e){return t.PrimitivePipeline.packCreateGeometryResults(e,n)}))}))}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./Transforms-d4da1631","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./defaultValue-97284df2","./ComponentDatatype-e7fbe225","./ArcType-de5d8777","./arrayRemoveDuplicates-6f91355d","./EllipsoidGeodesic-ed8a0e40","./EllipsoidRhumbLine-60f14314","./EncodedCartesian3-a9a8a281","./GeometryAttribute-8163e7fe","./IntersectionTests-a7d8bdc4","./Plane-e916220d","./WebMercatorProjection-04ef6bc3","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2"],(function(e,t,a,n,i,r,s,o,l,c,u,C,d,p,h,g,f){"use strict";function m(a){a=n.defaultValue(a,n.defaultValue.EMPTY_OBJECT),this._ellipsoid=n.defaultValue(a.ellipsoid,t.Ellipsoid.WGS84),this._rectangle=n.defaultValue(a.rectangle,t.Rectangle.MAX_VALUE),this._projection=new e.GeographicProjection(this._ellipsoid),this._numberOfLevelZeroTilesX=n.defaultValue(a.numberOfLevelZeroTilesX,2),this._numberOfLevelZeroTilesY=n.defaultValue(a.numberOfLevelZeroTilesY,1)}Object.defineProperties(m.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},rectangle:{get:function(){return this._rectangle}},projection:{get:function(){return this._projection}}}),m.prototype.getNumberOfXTilesAtLevel=function(e){return this._numberOfLevelZeroTilesX<<e},m.prototype.getNumberOfYTilesAtLevel=function(e){return this._numberOfLevelZeroTilesY<<e},m.prototype.rectangleToNativeRectangle=function(e,a){const r=i.CesiumMath.toDegrees(e.west),s=i.CesiumMath.toDegrees(e.south),o=i.CesiumMath.toDegrees(e.east),l=i.CesiumMath.toDegrees(e.north);return n.defined(a)?(a.west=r,a.south=s,a.east=o,a.north=l,a):new t.Rectangle(r,s,o,l)},m.prototype.tileXYToNativeRectangle=function(e,t,a,n){const r=this.tileXYToRectangle(e,t,a,n);return r.west=i.CesiumMath.toDegrees(r.west),r.south=i.CesiumMath.toDegrees(r.south),r.east=i.CesiumMath.toDegrees(r.east),r.north=i.CesiumMath.toDegrees(r.north),r},m.prototype.tileXYToRectangle=function(e,a,i,r){const s=this._rectangle,o=this.getNumberOfXTilesAtLevel(i),l=this.getNumberOfYTilesAtLevel(i),c=s.width/o,u=e*c+s.west,C=(e+1)*c+s.west,d=s.height/l,p=s.north-a*d,h=s.north-(a+1)*d;return n.defined(r)||(r=new t.Rectangle(u,h,C,p)),r.west=u,r.south=h,r.east=C,r.north=p,r},m.prototype.positionToTileXY=function(e,a,r){const s=this._rectangle;if(!t.Rectangle.contains(s,e))return;const o=this.getNumberOfXTilesAtLevel(a),l=this.getNumberOfYTilesAtLevel(a),c=s.width/o,u=s.height/l;let C=e.longitude;s.east<s.west&&(C+=i.CesiumMath.TWO_PI);let d=(C-s.west)/c|0;d>=o&&(d=o-1);let p=(s.north-e.latitude)/u|0;return p>=l&&(p=l-1),n.defined(r)?(r.x=d,r.y=p,r):new t.Cartesian2(d,p)};const w=new t.Cartesian3,y=new t.Cartesian3,M=new t.Cartographic,T=new t.Cartesian3,E=new t.Cartesian3,_=new e.BoundingSphere,O=new m,P=[new t.Cartographic,new t.Cartographic,new t.Cartographic,new t.Cartographic],b=new t.Cartesian2,A={};function k(e){t.Cartographic.fromRadians(e.east,e.north,0,P[0]),t.Cartographic.fromRadians(e.west,e.north,0,P[1]),t.Cartographic.fromRadians(e.east,e.south,0,P[2]),t.Cartographic.fromRadians(e.west,e.south,0,P[3]);let a=0,n=0,i=0,r=0;const s=A._terrainHeightsMaxLevel;let o;for(o=0;o<=s;++o){let e=!1;for(let t=0;t<4;++t){const a=P[t];if(O.positionToTileXY(a,o,b),0===t)i=b.x,r=b.y;else if(i!==b.x||r!==b.y){e=!0;break}}if(e)break;a=i,n=r}if(0!==o)return{x:a,y:n,level:o>s?s:o-1}}A.initialize=function(){let t=A._initPromise;return n.defined(t)||(t=e.Resource.fetchJson(e.buildModuleUrl("Assets/approximateTerrainHeights.json")).then((function(e){A._terrainHeights=e})),A._initPromise=t),t},A.getMinimumMaximumHeights=function(e,a){a=n.defaultValue(a,t.Ellipsoid.WGS84);const i=k(e);let r=A._defaultMinTerrainHeight,s=A._defaultMaxTerrainHeight;if(n.defined(i)){const o=`${i.level}-${i.x}-${i.y}`,l=A._terrainHeights[o];n.defined(l)&&(r=l[0],s=l[1]),a.cartographicToCartesian(t.Rectangle.northeast(e,M),w),a.cartographicToCartesian(t.Rectangle.southwest(e,M),y),t.Cartesian3.midpoint(y,w,T);const c=a.scaleToGeodeticSurface(T,E);if(n.defined(c)){const e=t.Cartesian3.distance(T,c);r=Math.min(r,-e)}else r=A._defaultMinTerrainHeight}return r=Math.max(A._defaultMinTerrainHeight,r),{minimumTerrainHeight:r,maximumTerrainHeight:s}},A.getBoundingSphere=function(a,i){i=n.defaultValue(i,t.Ellipsoid.WGS84);const r=k(a);let s=A._defaultMaxTerrainHeight;if(n.defined(r)){const e=`${r.level}-${r.x}-${r.y}`,t=A._terrainHeights[e];n.defined(t)&&(s=t[1])}const o=e.BoundingSphere.fromRectangle3D(a,i,0);return e.BoundingSphere.fromRectangle3D(a,i,s,_),e.BoundingSphere.union(o,_,o)},A._terrainHeightsMaxLevel=6,A._defaultMaxTerrainHeight=9e3,A._defaultMinTerrainHeight=-1e5,A._terrainHeights=void 0,A._initPromise=void 0,Object.defineProperties(A,{initialized:{get:function(){return n.defined(A._terrainHeights)}}});const L=[e.GeographicProjection,p.WebMercatorProjection],S=L.length,x=Math.cos(i.CesiumMath.toRadians(30)),I=Math.cos(i.CesiumMath.toRadians(150)),N=0,R=1e3;function D(e){const a=(e=n.defaultValue(e,n.defaultValue.EMPTY_OBJECT)).positions;this.width=n.defaultValue(e.width,1),this._positions=a,this.granularity=n.defaultValue(e.granularity,9999),this.loop=n.defaultValue(e.loop,!1),this.arcType=n.defaultValue(e.arcType,r.ArcType.GEODESIC),this._ellipsoid=t.Ellipsoid.WGS84,this._projectionIndex=0,this._workerName="createGroundPolylineGeometry",this._scene3DOnly=!1}Object.defineProperties(D.prototype,{packedLength:{get:function(){return 1+3*this._positions.length+1+1+1+t.Ellipsoid.packedLength+1+1}}}),D.setProjectionAndEllipsoid=function(e,t){let a=0;for(let e=0;e<S;e++)if(t instanceof L[e]){a=e;break}e._projectionIndex=a,e._ellipsoid=t.ellipsoid};const v=new t.Cartesian3,z=new t.Cartesian3,H=new t.Cartesian3;function j(e,a,n,i,r){const s=X(i,e,0,v),o=X(i,e,n,z),l=X(i,a,0,H),c=W(o,s,z),u=W(l,s,H);return t.Cartesian3.cross(u,c,r),t.Cartesian3.normalize(r,r)}const B=new t.Cartographic,V=new t.Cartesian3,G=new t.Cartesian3,Y=new t.Cartesian3;function F(e,a,n,i,s,c,u,C,d,p,h){if(0===s)return;let g;c===r.ArcType.GEODESIC?g=new o.EllipsoidGeodesic(e,a,u):c===r.ArcType.RHUMB&&(g=new l.EllipsoidRhumbLine(e,a,u));const f=g.surfaceDistance;if(f<s)return;const m=j(e,a,i,u,Y),w=Math.ceil(f/s),y=f/w;let M=y;const T=w-1;let E=C.length;for(let e=0;e<T;e++){const e=g.interpolateUsingSurfaceDistance(M,B),a=X(u,e,n,V),r=X(u,e,i,G);t.Cartesian3.pack(m,C,E),t.Cartesian3.pack(a,d,E),t.Cartesian3.pack(r,p,E),h.push(e.latitude),h.push(e.longitude),E+=3,M+=y}}const q=new t.Cartographic;function X(e,a,n,i){return t.Cartographic.clone(a,q),q.height=n,t.Cartographic.toCartesian(q,e,i)}function W(e,a,n){return t.Cartesian3.subtract(e,a,n),t.Cartesian3.normalize(n,n),n}function U(e,a,n,i){return i=W(e,a,i),i=t.Cartesian3.cross(i,n,i),i=t.Cartesian3.normalize(i,i),i=t.Cartesian3.cross(n,i,i)}D.pack=function(e,a,i){let r=n.defaultValue(i,0);const s=e._positions,o=s.length;a[r++]=o;for(let e=0;e<o;++e){const n=s[e];t.Cartesian3.pack(n,a,r),r+=3}return a[r++]=e.granularity,a[r++]=e.loop?1:0,a[r++]=e.arcType,t.Ellipsoid.pack(e._ellipsoid,a,r),r+=t.Ellipsoid.packedLength,a[r++]=e._projectionIndex,a[r++]=e._scene3DOnly?1:0,a},D.unpack=function(e,a,i){let r=n.defaultValue(a,0);const s=e[r++],o=new Array(s);for(let a=0;a<s;a++)o[a]=t.Cartesian3.unpack(e,r),r+=3;const l=e[r++],c=1===e[r++],u=e[r++],C=t.Ellipsoid.unpack(e,r);r+=t.Ellipsoid.packedLength;const d=e[r++],p=1===e[r++];return n.defined(i)||(i=new D({positions:o})),i._positions=o,i.granularity=l,i.loop=c,i.arcType=u,i._ellipsoid=C,i._projectionIndex=d,i._scene3DOnly=p,i};const Z=new t.Cartesian3,$=new t.Cartesian3,J=new t.Cartesian3,Q=new t.Cartesian3,K=0,ee=-1;function te(e,a,n,r,s){const o=W(n,a,Q),l=U(e,a,o,Z),c=U(r,a,o,$);if(i.CesiumMath.equalsEpsilon(t.Cartesian3.dot(l,c),ee,i.CesiumMath.EPSILON5))return s=t.Cartesian3.cross(o,l,s),s=t.Cartesian3.normalize(s,s);s=t.Cartesian3.add(c,l,s),s=t.Cartesian3.normalize(s,s);const u=t.Cartesian3.cross(o,s,J);return t.Cartesian3.dot(c,u)<K&&(s=t.Cartesian3.negate(s,s)),s}const ae=d.Plane.fromPointNormal(t.Cartesian3.ZERO,t.Cartesian3.UNIT_Y),ne=new t.Cartesian3,ie=new t.Cartesian3,re=new t.Cartesian3,se=new t.Cartesian3,oe=new t.Cartesian3,le=new t.Cartesian3,ce=new t.Cartographic,ue=new t.Cartographic,Ce=new t.Cartographic;D.createGeometry=function(a){const o=!a._scene3DOnly;let d=a.loop;const p=a._ellipsoid,h=a.granularity,g=a.arcType,f=new L[a._projectionIndex](p),m=N,w=R;let y,M;const T=a._positions,E=T.length;let _,O,P,b;2===E&&(d=!1);const k=new l.EllipsoidRhumbLine(void 0,void 0,p);let S,I,D;const v=[T[0]];for(M=0;M<E-1;M++)_=T[M],O=T[M+1],S=C.IntersectionTests.lineSegmentPlane(_,O,ae,le),!n.defined(S)||t.Cartesian3.equalsEpsilon(S,_,i.CesiumMath.EPSILON7)||t.Cartesian3.equalsEpsilon(S,O,i.CesiumMath.EPSILON7)||(a.arcType===r.ArcType.GEODESIC?v.push(t.Cartesian3.clone(S)):a.arcType===r.ArcType.RHUMB&&(D=p.cartesianToCartographic(S,ce).longitude,P=p.cartesianToCartographic(_,ce),b=p.cartesianToCartographic(O,ue),k.setEndPoints(P,b),I=k.findIntersectionWithLongitude(D,Ce),S=p.cartographicToCartesian(I,le),!n.defined(S)||t.Cartesian3.equalsEpsilon(S,_,i.CesiumMath.EPSILON7)||t.Cartesian3.equalsEpsilon(S,O,i.CesiumMath.EPSILON7)||v.push(t.Cartesian3.clone(S)))),v.push(O);d&&(_=T[E-1],O=T[0],S=C.IntersectionTests.lineSegmentPlane(_,O,ae,le),!n.defined(S)||t.Cartesian3.equalsEpsilon(S,_,i.CesiumMath.EPSILON7)||t.Cartesian3.equalsEpsilon(S,O,i.CesiumMath.EPSILON7)||(a.arcType===r.ArcType.GEODESIC?v.push(t.Cartesian3.clone(S)):a.arcType===r.ArcType.RHUMB&&(D=p.cartesianToCartographic(S,ce).longitude,P=p.cartesianToCartographic(_,ce),b=p.cartesianToCartographic(O,ue),k.setEndPoints(P,b),I=k.findIntersectionWithLongitude(D,Ce),S=p.cartographicToCartesian(I,le),!n.defined(S)||t.Cartesian3.equalsEpsilon(S,_,i.CesiumMath.EPSILON7)||t.Cartesian3.equalsEpsilon(S,O,i.CesiumMath.EPSILON7)||v.push(t.Cartesian3.clone(S)))));let z=v.length,H=new Array(z);for(M=0;M<z;M++){const e=t.Cartographic.fromCartesian(v[M],p);e.height=0,H[M]=e}if(H=s.arrayRemoveDuplicates(H,t.Cartographic.equalsEpsilon),z=H.length,z<2)return;const B=[],V=[],G=[],Y=[];let q=ne,U=ie,Z=re,$=se,J=oe;const Q=H[0],K=H[1];for(q=X(p,H[z-1],m,q),$=X(p,K,m,$),U=X(p,Q,m,U),Z=X(p,Q,w,Z),J=d?te(q,U,Z,$,J):j(Q,K,w,p,J),t.Cartesian3.pack(J,V,0),t.Cartesian3.pack(U,G,0),t.Cartesian3.pack(Z,Y,0),B.push(Q.latitude),B.push(Q.longitude),F(Q,K,m,w,h,g,p,V,G,Y,B),M=1;M<z-1;++M){q=t.Cartesian3.clone(U,q),U=t.Cartesian3.clone($,U);const e=H[M];X(p,e,w,Z),X(p,H[M+1],m,$),te(q,U,Z,$,J),y=V.length,t.Cartesian3.pack(J,V,y),t.Cartesian3.pack(U,G,y),t.Cartesian3.pack(Z,Y,y),B.push(e.latitude),B.push(e.longitude),F(H[M],H[M+1],m,w,h,g,p,V,G,Y,B)}const ee=H[z-1],de=H[z-2];if(U=X(p,ee,m,U),Z=X(p,ee,w,Z),d){const e=H[0];q=X(p,de,m,q),$=X(p,e,m,$),J=te(q,U,Z,$,J)}else J=j(de,ee,w,p,J);if(y=V.length,t.Cartesian3.pack(J,V,y),t.Cartesian3.pack(U,G,y),t.Cartesian3.pack(Z,Y,y),B.push(ee.latitude),B.push(ee.longitude),d){for(F(ee,Q,m,w,h,g,p,V,G,Y,B),y=V.length,M=0;M<3;++M)V[y+M]=V[M],G[y+M]=G[M],Y[y+M]=Y[M];B.push(Q.latitude),B.push(Q.longitude)}return function(a,n,r,s,o,l,C){let d,p;const h=n._ellipsoid,g=r.length/3-1,f=8*g,m=4*f,w=36*g,y=f>65535?new Uint32Array(w):new Uint16Array(w),M=new Float64Array(3*f),T=new Float32Array(m),E=new Float32Array(m),_=new Float32Array(m),O=new Float32Array(m),P=new Float32Array(m);let b,k,L,S;C&&(b=new Float32Array(m),k=new Float32Array(m),L=new Float32Array(m),S=new Float32Array(2*f));const I=l.length/2;let N=0;const R=be;R.height=0;const D=Ae;D.height=0;let v=ke,z=Le;if(C)for(p=0,d=1;d<I;d++)R.latitude=l[p],R.longitude=l[p+1],D.latitude=l[p+2],D.longitude=l[p+3],v=n.project(R,v),z=n.project(D,z),N+=t.Cartesian3.distance(v,z),p+=2;const H=s.length/3;z=t.Cartesian3.unpack(s,0,z);let j,B=0;for(p=3,d=1;d<H;d++)v=t.Cartesian3.clone(z,v),z=t.Cartesian3.unpack(s,p,z),B+=t.Cartesian3.distance(v,z),p+=3;p=3;let V=0,G=0,Y=0,F=0,q=!1,X=t.Cartesian3.unpack(r,0,xe),U=t.Cartesian3.unpack(s,0,Le),Z=t.Cartesian3.unpack(o,0,Ne);if(a){ge(Z,t.Cartesian3.unpack(r,r.length-6,Se),X,U)&&(Z=t.Cartesian3.negate(Z,Z))}let $=0,J=0,Q=0;for(d=0;d<g;d++){const e=t.Cartesian3.clone(X,Se),a=t.Cartesian3.clone(U,ke);let u,d,g,f,m=t.Cartesian3.clone(Z,Ie);if(q&&(m=t.Cartesian3.negate(m,m)),X=t.Cartesian3.unpack(r,p,xe),U=t.Cartesian3.unpack(s,p,Le),Z=t.Cartesian3.unpack(o,p,Ne),q=ge(Z,e,X,U),R.latitude=l[V],R.longitude=l[V+1],D.latitude=l[V+2],D.longitude=l[V+3],C){const e=Pe(R,D);u=n.project(R,Be),d=n.project(D,Ve);const a=W(d,u,Qe);a.y=Math.abs(a.y),g=Ge,f=Ye,0===e||t.Cartesian3.dot(a,t.Cartesian3.UNIT_Y)>x?(g=ye(n,R,m,u,Ge),f=ye(n,D,Z,d,Ye)):1===e?(f=ye(n,D,Z,d,Ye),g.x=0,g.y=i.CesiumMath.sign(R.longitude-Math.abs(D.longitude)),g.z=0):(g=ye(n,R,m,u,Ge),f.x=0,f.y=i.CesiumMath.sign(R.longitude-D.longitude),f.z=0)}const w=t.Cartesian3.distance(a,U),y=c.EncodedCartesian3.fromCartesian(e,$e),I=t.Cartesian3.subtract(X,e,Fe),v=t.Cartesian3.normalize(I,We);let z=t.Cartesian3.subtract(a,e,qe);z=t.Cartesian3.normalize(z,z);let H=t.Cartesian3.cross(v,z,We);H=t.Cartesian3.normalize(H,H);let K=t.Cartesian3.cross(z,m,Ue);K=t.Cartesian3.normalize(K,K);let ee=t.Cartesian3.subtract(U,X,Xe);ee=t.Cartesian3.normalize(ee,ee);let te=t.Cartesian3.cross(Z,ee,Ze);te=t.Cartesian3.normalize(te,te);const ae=w/B,ne=$/B;let ie,re,se,oe=0,le=0,ce=0;if(C){oe=t.Cartesian3.distance(u,d),ie=c.EncodedCartesian3.fromCartesian(u,Je),re=t.Cartesian3.subtract(d,u,Qe),se=t.Cartesian3.normalize(re,Ke);const e=se.x;se.x=se.y,se.y=-e,le=oe/N,ce=J/N}for(j=0;j<8;j++){const e=F+4*j,a=G+2*j,n=e+3,i=j<4?1:-1,r=2===j||3===j||6===j||7===j?1:-1;t.Cartesian3.pack(y.high,T,e),T[n]=I.x,t.Cartesian3.pack(y.low,E,e),E[n]=I.y,t.Cartesian3.pack(K,_,e),_[n]=I.z,t.Cartesian3.pack(te,O,e),O[n]=ae*i,t.Cartesian3.pack(H,P,e);let s=ne*r;0===s&&r<0&&(s=9),P[n]=s,C&&(b[e]=ie.high.x,b[e+1]=ie.high.y,b[e+2]=ie.low.x,b[e+3]=ie.low.y,L[e]=-g.y,L[e+1]=g.x,L[e+2]=f.y,L[e+3]=-f.x,k[e]=re.x,k[e+1]=re.y,k[e+2]=se.x,k[e+3]=se.y,S[a]=le*i,s=ce*r,0===s&&r<0&&(s=9),S[a+1]=s)}const ue=He,Ce=je,de=ve,pe=ze,he=t.Rectangle.fromCartographicArray(Re,De),fe=A.getMinimumMaximumHeights(he,h),me=fe.minimumTerrainHeight,we=fe.maximumTerrainHeight;Q+=me,Q+=we,Ee(e,a,me,we,ue,de),Ee(X,U,me,we,Ce,pe);let Me=t.Cartesian3.multiplyByScalar(H,i.CesiumMath.EPSILON5,et);t.Cartesian3.add(ue,Me,ue),t.Cartesian3.add(Ce,Me,Ce),t.Cartesian3.add(de,Me,de),t.Cartesian3.add(pe,Me,pe),Oe(ue,Ce),Oe(de,pe),t.Cartesian3.pack(ue,M,Y),t.Cartesian3.pack(Ce,M,Y+3),t.Cartesian3.pack(pe,M,Y+6),t.Cartesian3.pack(de,M,Y+9),Me=t.Cartesian3.multiplyByScalar(H,-2*i.CesiumMath.EPSILON5,et),t.Cartesian3.add(ue,Me,ue),t.Cartesian3.add(Ce,Me,Ce),t.Cartesian3.add(de,Me,de),t.Cartesian3.add(pe,Me,pe),Oe(ue,Ce),Oe(de,pe),t.Cartesian3.pack(ue,M,Y+12),t.Cartesian3.pack(Ce,M,Y+15),t.Cartesian3.pack(pe,M,Y+18),t.Cartesian3.pack(de,M,Y+21),V+=2,p+=3,G+=16,Y+=24,F+=32,$+=w,J+=oe}p=0;let K=0;for(d=0;d<g;d++){for(j=0;j<nt;j++)y[p+j]=at[j]+K;K+=8,p+=nt}const ee=tt;e.BoundingSphere.fromVertices(r,t.Cartesian3.ZERO,3,ee[0]),e.BoundingSphere.fromVertices(s,t.Cartesian3.ZERO,3,ee[1]);const te=e.BoundingSphere.fromBoundingSpheres(ee);te.radius+=Q/(2*g);const ae={position:new u.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,normalize:!1,values:M}),startHiAndForwardOffsetX:it(T),startLoAndForwardOffsetY:it(E),startNormalAndForwardOffsetZ:it(_),endNormalAndTextureCoordinateNormalizationX:it(O),rightNormalAndTextureCoordinateNormalizationY:it(P)};C&&(ae.startHiLo2D=it(b),ae.offsetAndRight2D=it(k),ae.startEndNormals2D=it(L),ae.texcoordNormalization2D=new u.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:2,normalize:!1,values:S}));return new u.Geometry({attributes:ae,indices:y,boundingSphere:te})}(d,f,G,Y,V,B,o)};const de=new t.Cartesian3,pe=new t.Matrix3,he=new e.Quaternion;function ge(a,n,r,s){const o=W(r,n,de),l=t.Cartesian3.dot(o,a);if(l>x||l<I){const n=W(s,r,Q),o=l<I?i.CesiumMath.PI_OVER_TWO:-i.CesiumMath.PI_OVER_TWO,c=e.Quaternion.fromAxisAngle(n,o,he),u=t.Matrix3.fromQuaternion(c,pe);return t.Matrix3.multiplyByVector(u,a,a),!0}return!1}const fe=new t.Cartographic,me=new t.Cartesian3,we=new t.Cartesian3;function ye(e,a,n,r,s){const o=t.Cartographic.toCartesian(a,e._ellipsoid,me);let l=t.Cartesian3.add(o,n,we),c=!1;const u=e._ellipsoid;let C=u.cartesianToCartographic(l,fe);Math.abs(a.longitude-C.longitude)>i.CesiumMath.PI_OVER_TWO&&(c=!0,l=t.Cartesian3.subtract(o,n,we),C=u.cartesianToCartographic(l,fe)),C.height=0;const d=e.project(C,s);return(s=t.Cartesian3.subtract(d,r,s)).z=0,s=t.Cartesian3.normalize(s,s),c&&t.Cartesian3.negate(s,s),s}const Me=new t.Cartesian3,Te=new t.Cartesian3;function Ee(e,a,n,i,r,s){const o=t.Cartesian3.subtract(a,e,Me);t.Cartesian3.normalize(o,o);const l=n-N;let c=t.Cartesian3.multiplyByScalar(o,l,Te);t.Cartesian3.add(e,c,r);const u=i-R;c=t.Cartesian3.multiplyByScalar(o,u,Te),t.Cartesian3.add(a,c,s)}const _e=new t.Cartesian3;function Oe(e,a){const n=d.Plane.getPointDistance(ae,e),r=d.Plane.getPointDistance(ae,a);let s=_e;i.CesiumMath.equalsEpsilon(n,0,i.CesiumMath.EPSILON2)?(s=W(a,e,s),t.Cartesian3.multiplyByScalar(s,i.CesiumMath.EPSILON2,s),t.Cartesian3.add(e,s,e)):i.CesiumMath.equalsEpsilon(r,0,i.CesiumMath.EPSILON2)&&(s=W(e,a,s),t.Cartesian3.multiplyByScalar(s,i.CesiumMath.EPSILON2,s),t.Cartesian3.add(a,s,a))}function Pe(e,t){const a=Math.abs(e.longitude),n=Math.abs(t.longitude);if(i.CesiumMath.equalsEpsilon(a,i.CesiumMath.PI,i.CesiumMath.EPSILON11)){const n=i.CesiumMath.sign(t.longitude);return e.longitude=n*(a-i.CesiumMath.EPSILON11),1}if(i.CesiumMath.equalsEpsilon(n,i.CesiumMath.PI,i.CesiumMath.EPSILON11)){const a=i.CesiumMath.sign(e.longitude);return t.longitude=a*(n-i.CesiumMath.EPSILON11),2}return 0}const be=new t.Cartographic,Ae=new t.Cartographic,ke=new t.Cartesian3,Le=new t.Cartesian3,Se=new t.Cartesian3,xe=new t.Cartesian3,Ie=new t.Cartesian3,Ne=new t.Cartesian3,Re=[be,Ae],De=new t.Rectangle,ve=new t.Cartesian3,ze=new t.Cartesian3,He=new t.Cartesian3,je=new t.Cartesian3,Be=new t.Cartesian3,Ve=new t.Cartesian3,Ge=new t.Cartesian3,Ye=new t.Cartesian3,Fe=new t.Cartesian3,qe=new t.Cartesian3,Xe=new t.Cartesian3,We=new t.Cartesian3,Ue=new t.Cartesian3,Ze=new t.Cartesian3,$e=new c.EncodedCartesian3,Je=new c.EncodedCartesian3,Qe=new t.Cartesian3,Ke=new t.Cartesian3,et=new t.Cartesian3,tt=[new e.BoundingSphere,new e.BoundingSphere],at=[0,2,1,0,3,2,0,7,3,0,4,7,0,5,4,0,1,5,5,7,4,5,6,7,5,2,6,5,1,2,3,6,2,3,7,6],nt=at.length;function it(e){return new u.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:4,normalize:!1,values:e})}return D._projectNormal=ye,function(e,t){return A.initialize().then((function(){return n.defined(t)&&(e=D.unpack(e,t)),D.createGeometry(e)}))}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./defaultValue-97284df2","./Transforms-d4da1631","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./VertexFormat-9886cb81","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2"],(function(e,t,n,r,a,o,i,m,u,c,p){"use strict";function s(t){t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT);const n=e.defaultValue(t.vertexFormat,m.VertexFormat.DEFAULT);this._vertexFormat=n,this._workerName="createPlaneGeometry"}s.packedLength=m.VertexFormat.packedLength,s.pack=function(t,n,r){return r=e.defaultValue(r,0),m.VertexFormat.pack(t._vertexFormat,n,r),n};const y=new m.VertexFormat,l={vertexFormat:y};s.unpack=function(t,n,r){n=e.defaultValue(n,0);const a=m.VertexFormat.unpack(t,n,y);return e.defined(r)?(r._vertexFormat=m.VertexFormat.clone(a,r._vertexFormat),r):new s(l)};const f=new n.Cartesian3(-.5,-.5,0),A=new n.Cartesian3(.5,.5,0);return s.createGeometry=function(e){const r=e._vertexFormat,m=new i.GeometryAttributes;let u,c;if(r.position){if(c=new Float64Array(12),c[0]=f.x,c[1]=f.y,c[2]=0,c[3]=A.x,c[4]=f.y,c[5]=0,c[6]=A.x,c[7]=A.y,c[8]=0,c[9]=f.x,c[10]=A.y,c[11]=0,m.position=new o.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c}),r.normal){const e=new Float32Array(12);e[0]=0,e[1]=0,e[2]=1,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=1,e[9]=0,e[10]=0,e[11]=1,m.normal=new o.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})}if(r.st){const e=new Float32Array(8);e[0]=0,e[1]=0,e[2]=1,e[3]=0,e[4]=1,e[5]=1,e[6]=0,e[7]=1,m.st=new o.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:e})}if(r.tangent){const e=new Float32Array(12);e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e[6]=1,e[7]=0,e[8]=0,e[9]=1,e[10]=0,e[11]=0,m.tangent=new o.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})}if(r.bitangent){const e=new Float32Array(12);e[0]=0,e[1]=1,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=1,e[8]=0,e[9]=0,e[10]=1,e[11]=0,m.bitangent=new o.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:e})}u=new Uint16Array(6),u[0]=0,u[1]=1,u[2]=2,u[3]=0,u[4]=2,u[5]=3}return new o.Geometry({attributes:m,indices:u,primitiveType:o.PrimitiveType.TRIANGLES,boundingSphere:new t.BoundingSphere(n.Cartesian3.ZERO,Math.sqrt(2))})},function(t,n){return e.defined(n)&&(t=s.unpack(t,n)),s.createGeometry(t)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./defaultValue-97284df2","./Transforms-d4da1631","./Matrix2-73789715","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2"],(function(e,t,n,r,a,i,o,u,c,s){"use strict";function m(){this._workerName="createPlaneOutlineGeometry"}m.packedLength=0,m.pack=function(e,t){return t},m.unpack=function(t,n,r){return e.defined(r)?r:new m};const y=new n.Cartesian3(-.5,-.5,0),p=new n.Cartesian3(.5,.5,0);return m.createGeometry=function(){const e=new o.GeometryAttributes,r=new Uint16Array(8),u=new Float64Array(12);return u[0]=y.x,u[1]=y.y,u[2]=y.z,u[3]=p.x,u[4]=y.y,u[5]=y.z,u[6]=p.x,u[7]=p.y,u[8]=y.z,u[9]=y.x,u[10]=p.y,u[11]=y.z,e.position=new i.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u}),r[0]=0,r[1]=1,r[2]=1,r[3]=2,r[4]=2,r[5]=3,r[6]=3,r[7]=0,new i.Geometry({attributes:e,indices:r,primitiveType:i.PrimitiveType.LINES,boundingSphere:new t.BoundingSphere(n.Cartesian3.ZERO,Math.sqrt(2))})},function(t,n){return e.defined(n)&&(t=m.unpack(t,n)),m.createGeometry(t)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./defaultValue-97284df2","./Matrix2-73789715","./ArcType-de5d8777","./BoundingRectangle-5691ae9d","./Transforms-d4da1631","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./EllipsoidGeodesic-ed8a0e40","./EllipsoidTangentPlane-9813dd6d","./GeometryAttribute-8163e7fe","./GeometryInstance-4bfcfe78","./GeometryOffsetAttribute-59b14f45","./GeometryPipeline-350055a2","./IndexDatatype-65271ba3","./PolygonGeometryLibrary-1e3a5b27","./PolygonPipeline-5a1c3ce9","./VertexFormat-9886cb81","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./AxisAlignedBoundingBox-546c299b","./IntersectionTests-a7d8bdc4","./Plane-e916220d","./AttributeCompression-5744d52e","./EncodedCartesian3-a9a8a281","./arrayRemoveDuplicates-6f91355d","./EllipsoidRhumbLine-60f14314","./GeometryAttributes-734a3446"],(function(e,t,o,r,i,n,a,s,l,u,c,d,p,y,m,g,h,f,b,_,P,C,x,w,T,I,A,v){"use strict";const E=new t.Cartographic,G=new t.Cartographic;function O(e,t,o,r){const i=r.cartesianToCartographic(e,E).height,n=r.cartesianToCartographic(t,G);n.height=i,r.cartographicToCartesian(n,t);const a=r.cartesianToCartographic(o,G);a.height=i-100,r.cartographicToCartesian(a,o)}const L=new r.BoundingRectangle,V=new t.Cartesian3,H=new t.Cartesian3,D=new t.Cartesian3,N=new t.Cartesian3,F=new t.Cartesian3,R=new t.Cartesian3;let M=new t.Cartesian3,S=new t.Cartesian3,B=new t.Cartesian3;const k=new t.Cartesian2,z=new t.Cartesian2,W=new t.Cartesian3,Y=new i.Quaternion,U=new t.Matrix3,j=new t.Matrix3;function Q(o){const r=o.vertexFormat,n=o.geometry,s=o.shadowVolume,l=n.attributes.position.values,c=e.defined(n.attributes.st)?n.attributes.st.values:void 0;let p=l.length;const y=o.wall,m=o.top||y,g=o.bottom||y;if(r.st||r.normal||r.tangent||r.bitangent||s){const d=o.boundingRectangle,h=o.tangentPlane,f=o.ellipsoid,b=o.stRotation,_=o.perPositionHeight,P=k;P.x=d.x,P.y=d.y;const C=r.st?new Float32Array(p/3*2):void 0;let x;r.normal&&(x=_&&m&&!y?n.attributes.normal.values:new Float32Array(p));const w=r.tangent?new Float32Array(p):void 0,T=r.bitangent?new Float32Array(p):void 0,I=s?new Float32Array(p):void 0;let A=0,v=0,E=H,G=D,L=N,Q=!0,q=U,K=j;if(0!==b){let e=i.Quaternion.fromAxisAngle(h._plane.normal,b,Y);q=t.Matrix3.fromQuaternion(e,q),e=i.Quaternion.fromAxisAngle(h._plane.normal,-b,Y),K=t.Matrix3.fromQuaternion(e,K)}else q=t.Matrix3.clone(t.Matrix3.IDENTITY,q),K=t.Matrix3.clone(t.Matrix3.IDENTITY,K);let Z=0,J=0;m&&g&&(Z=p/2,J=p/3,p/=2);for(let i=0;i<p;i+=3){const n=t.Cartesian3.fromArray(l,i,W);if(r.st&&!e.defined(c)){let e=t.Matrix3.multiplyByVector(q,n,V);e=f.scaleToGeodeticSurface(e,e);const o=h.projectPointOntoPlane(e,z);t.Cartesian2.subtract(o,P,o);const r=a.CesiumMath.clamp(o.x/d.width,0,1),i=a.CesiumMath.clamp(o.y/d.height,0,1);g&&(C[A+J]=r,C[A+1+J]=i),m&&(C[A]=r,C[A+1]=i),A+=2}if(r.normal||r.tangent||r.bitangent||s){const e=v+1,u=v+2;if(y){if(i+3<p){const e=t.Cartesian3.fromArray(l,i+3,F);if(Q){const o=t.Cartesian3.fromArray(l,i+p,R);_&&O(n,e,o,f),t.Cartesian3.subtract(e,n,e),t.Cartesian3.subtract(o,n,o),E=t.Cartesian3.normalize(t.Cartesian3.cross(o,e,E),E),Q=!1}t.Cartesian3.equalsEpsilon(e,n,a.CesiumMath.EPSILON10)&&(Q=!0)}(r.tangent||r.bitangent)&&(L=f.geodeticSurfaceNormal(n,L),r.tangent&&(G=t.Cartesian3.normalize(t.Cartesian3.cross(L,E,G),G)))}else E=f.geodeticSurfaceNormal(n,E),(r.tangent||r.bitangent)&&(_&&(M=t.Cartesian3.fromArray(x,v,M),S=t.Cartesian3.cross(t.Cartesian3.UNIT_Z,M,S),S=t.Cartesian3.normalize(t.Matrix3.multiplyByVector(K,S,S),S),r.bitangent&&(B=t.Cartesian3.normalize(t.Cartesian3.cross(M,S,B),B))),G=t.Cartesian3.cross(t.Cartesian3.UNIT_Z,E,G),G=t.Cartesian3.normalize(t.Matrix3.multiplyByVector(K,G,G),G),r.bitangent&&(L=t.Cartesian3.normalize(t.Cartesian3.cross(E,G,L),L)));r.normal&&(o.wall?(x[v+Z]=E.x,x[e+Z]=E.y,x[u+Z]=E.z):g&&(x[v+Z]=-E.x,x[e+Z]=-E.y,x[u+Z]=-E.z),(m&&!_||y)&&(x[v]=E.x,x[e]=E.y,x[u]=E.z)),s&&(y&&(E=f.geodeticSurfaceNormal(n,E)),I[v+Z]=-E.x,I[e+Z]=-E.y,I[u+Z]=-E.z),r.tangent&&(o.wall?(w[v+Z]=G.x,w[e+Z]=G.y,w[u+Z]=G.z):g&&(w[v+Z]=-G.x,w[e+Z]=-G.y,w[u+Z]=-G.z),m&&(_?(w[v]=S.x,w[e]=S.y,w[u]=S.z):(w[v]=G.x,w[e]=G.y,w[u]=G.z))),r.bitangent&&(g&&(T[v+Z]=L.x,T[e+Z]=L.y,T[u+Z]=L.z),m&&(_?(T[v]=B.x,T[e]=B.y,T[u]=B.z):(T[v]=L.x,T[e]=L.y,T[u]=L.z))),v+=3}}r.st&&!e.defined(c)&&(n.attributes.st=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:C})),r.normal&&(n.attributes.normal=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:x})),r.tangent&&(n.attributes.tangent=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),r.bitangent&&(n.attributes.bitangent=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:T})),s&&(n.attributes.extrudeDirection=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:I}))}if(o.extrude&&e.defined(o.offsetAttribute)){const e=l.length/3;let t=new Uint8Array(e);if(o.offsetAttribute===d.GeometryOffsetAttribute.TOP)m&&g||y?t=t.fill(1,0,e/2):m&&(t=t.fill(1));else{const e=o.offsetAttribute===d.GeometryOffsetAttribute.NONE?0:1;t=t.fill(e)}n.attributes.applyOffset=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:t})}return n}const q=new t.Cartographic,K=new t.Cartographic,Z={westOverIDL:0,eastOverIDL:0};let J=new s.EllipsoidGeodesic;function X(r,i,n,l,u){if(u=e.defaultValue(u,new t.Rectangle),!e.defined(r)||r.length<3)return u.west=0,u.north=0,u.south=0,u.east=0,u;if(n===o.ArcType.RHUMB)return t.Rectangle.fromCartesianArray(r,i,u);J.ellipsoid.equals(i)||(J=new s.EllipsoidGeodesic(void 0,void 0,i)),u.west=Number.POSITIVE_INFINITY,u.east=Number.NEGATIVE_INFINITY,u.south=Number.POSITIVE_INFINITY,u.north=Number.NEGATIVE_INFINITY,Z.westOverIDL=Number.POSITIVE_INFINITY,Z.eastOverIDL=Number.NEGATIVE_INFINITY;const c=1/a.CesiumMath.chordLength(l,i.maximumRadius),d=r.length;let p,y=i.cartesianToCartographic(r[0],K),m=q;for(let e=1;e<d;e++)p=m,m=y,y=i.cartesianToCartographic(r[e],p),J.setEndPoints(m,y),ee(J,c,u,Z);return p=m,m=y,y=i.cartesianToCartographic(r[0],p),J.setEndPoints(m,y),ee(J,c,u,Z),u.east-u.west>Z.eastOverIDL-Z.westOverIDL&&(u.west=Z.westOverIDL,u.east=Z.eastOverIDL,u.east>a.CesiumMath.PI&&(u.east=u.east-a.CesiumMath.TWO_PI),u.west>a.CesiumMath.PI&&(u.west=u.west-a.CesiumMath.TWO_PI)),u}const $=new t.Cartographic;function ee(e,t,o,r){const i=e.surfaceDistance,n=Math.ceil(i*t),s=n>0?i/(n-1):Number.POSITIVE_INFINITY;let l=0;for(let t=0;t<n;t++){const t=e.interpolateUsingSurfaceDistance(l,$);l+=s;const i=t.longitude,n=t.latitude;o.west=Math.min(o.west,i),o.east=Math.max(o.east,i),o.south=Math.min(o.south,n),o.north=Math.max(o.north,n);const u=i>=0?i:i+a.CesiumMath.TWO_PI;r.westOverIDL=Math.min(r.westOverIDL,u),r.eastOverIDL=Math.max(r.eastOverIDL,u)}}const te=[];function oe(t,o,r,i,n,a,s,u,d,p){const h={walls:[]};let f;if(s||u){const n=m.PolygonGeometryLibrary.createGeometryFromPositions(t,o,r,i,a,d,p),l=n.attributes.position.values,g=n.indices;let b,_;if(s&&u){const t=l.concat(l);b=t.length/3,_=y.IndexDatatype.createTypedArray(b,2*g.length),_.set(g);const o=g.length,i=b/2;for(f=0;f<o;f+=3){const e=_[f]+i,t=_[f+1]+i,r=_[f+2]+i;_[f+o]=r,_[f+1+o]=t,_[f+2+o]=e}if(n.attributes.position.values=t,a&&d.normal){const e=n.attributes.normal.values;n.attributes.normal.values=new Float32Array(t.length),n.attributes.normal.values.set(e)}if(d.st&&e.defined(r)){const e=n.attributes.st.values;n.attributes.st.values=new Float32Array(2*b),n.attributes.st.values=e.concat(e)}n.indices=_}else if(u){for(b=l.length/3,_=y.IndexDatatype.createTypedArray(b,g.length),f=0;f<g.length;f+=3)_[f]=g[f+2],_[f+1]=g[f+1],_[f+2]=g[f];n.indices=_}h.topAndBottom=new c.GeometryInstance({geometry:n})}let b=n.outerRing,_=l.EllipsoidTangentPlane.fromPoints(b,t),P=_.projectPointsOntoPlane(b,te),C=g.PolygonPipeline.computeWindingOrder2D(P);C===g.WindingOrder.CLOCKWISE&&(b=b.slice().reverse());let x=m.PolygonGeometryLibrary.computeWallGeometry(b,r,t,i,a,p);h.walls.push(new c.GeometryInstance({geometry:x}));const w=n.holes;for(f=0;f<w.length;f++){let e=w[f];_=l.EllipsoidTangentPlane.fromPoints(e,t),P=_.projectPointsOntoPlane(e,te),C=g.PolygonPipeline.computeWindingOrder2D(P),C===g.WindingOrder.COUNTER_CLOCKWISE&&(e=e.slice().reverse()),x=m.PolygonGeometryLibrary.computeWallGeometry(e,r,t,i,a,p),h.walls.push(new c.GeometryInstance({geometry:x}))}return h}function re(r){const i=r.polygonHierarchy,n=e.defaultValue(r.vertexFormat,h.VertexFormat.DEFAULT),s=e.defaultValue(r.ellipsoid,t.Ellipsoid.WGS84),l=e.defaultValue(r.granularity,a.CesiumMath.RADIANS_PER_DEGREE),u=e.defaultValue(r.stRotation,0),c=r.textureCoordinates,d=e.defaultValue(r.perPositionHeight,!1),p=d&&e.defined(r.extrudedHeight);let y=e.defaultValue(r.height,0),g=e.defaultValue(r.extrudedHeight,y);if(!p){const e=Math.max(y,g);g=Math.min(y,g),y=e}this._vertexFormat=h.VertexFormat.clone(n),this._ellipsoid=t.Ellipsoid.clone(s),this._granularity=l,this._stRotation=u,this._height=y,this._extrudedHeight=g,this._closeTop=e.defaultValue(r.closeTop,!0),this._closeBottom=e.defaultValue(r.closeBottom,!0),this._polygonHierarchy=i,this._perPositionHeight=d,this._perPositionHeightExtrude=p,this._shadowVolume=e.defaultValue(r.shadowVolume,!1),this._workerName="createPolygonGeometry",this._offsetAttribute=r.offsetAttribute,this._arcType=e.defaultValue(r.arcType,o.ArcType.GEODESIC),this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0,this._textureCoordinates=c,this.packedLength=m.PolygonGeometryLibrary.computeHierarchyPackedLength(i,t.Cartesian3)+t.Ellipsoid.packedLength+h.VertexFormat.packedLength+(c?m.PolygonGeometryLibrary.computeHierarchyPackedLength(c,t.Cartesian2):1)+12}re.fromPositions=function(t){return new re({polygonHierarchy:{positions:(t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT)).positions},height:t.height,extrudedHeight:t.extrudedHeight,vertexFormat:t.vertexFormat,stRotation:t.stRotation,ellipsoid:t.ellipsoid,granularity:t.granularity,perPositionHeight:t.perPositionHeight,closeTop:t.closeTop,closeBottom:t.closeBottom,offsetAttribute:t.offsetAttribute,arcType:t.arcType,textureCoordinates:t.textureCoordinates})},re.pack=function(o,r,i){return i=e.defaultValue(i,0),i=m.PolygonGeometryLibrary.packPolygonHierarchy(o._polygonHierarchy,r,i,t.Cartesian3),t.Ellipsoid.pack(o._ellipsoid,r,i),i+=t.Ellipsoid.packedLength,h.VertexFormat.pack(o._vertexFormat,r,i),i+=h.VertexFormat.packedLength,r[i++]=o._height,r[i++]=o._extrudedHeight,r[i++]=o._granularity,r[i++]=o._stRotation,r[i++]=o._perPositionHeightExtrude?1:0,r[i++]=o._perPositionHeight?1:0,r[i++]=o._closeTop?1:0,r[i++]=o._closeBottom?1:0,r[i++]=o._shadowVolume?1:0,r[i++]=e.defaultValue(o._offsetAttribute,-1),r[i++]=o._arcType,e.defined(o._textureCoordinates)?i=m.PolygonGeometryLibrary.packPolygonHierarchy(o._textureCoordinates,r,i,t.Cartesian2):r[i++]=-1,r[i++]=o.packedLength,r};const ie=t.Ellipsoid.clone(t.Ellipsoid.UNIT_SPHERE),ne=new h.VertexFormat,ae={polygonHierarchy:{}};return re.unpack=function(o,r,i){r=e.defaultValue(r,0);const n=m.PolygonGeometryLibrary.unpackPolygonHierarchy(o,r,t.Cartesian3);r=n.startingIndex,delete n.startingIndex;const a=t.Ellipsoid.unpack(o,r,ie);r+=t.Ellipsoid.packedLength;const s=h.VertexFormat.unpack(o,r,ne);r+=h.VertexFormat.packedLength;const l=o[r++],u=o[r++],c=o[r++],d=o[r++],p=1===o[r++],y=1===o[r++],g=1===o[r++],f=1===o[r++],b=1===o[r++],_=o[r++],P=o[r++],C=-1===o[r]?void 0:m.PolygonGeometryLibrary.unpackPolygonHierarchy(o,r,t.Cartesian2);e.defined(C)?(r=C.startingIndex,delete C.startingIndex):r++;const x=o[r++];return e.defined(i)||(i=new re(ae)),i._polygonHierarchy=n,i._ellipsoid=t.Ellipsoid.clone(a,i._ellipsoid),i._vertexFormat=h.VertexFormat.clone(s,i._vertexFormat),i._height=l,i._extrudedHeight=u,i._granularity=c,i._stRotation=d,i._perPositionHeightExtrude=p,i._perPositionHeight=y,i._closeTop=g,i._closeBottom=f,i._shadowVolume=b,i._offsetAttribute=-1===_?void 0:_,i._arcType=P,i._textureCoordinates=C,i.packedLength=x,i},re.computeRectangle=function(r,i){const n=e.defaultValue(r.granularity,a.CesiumMath.RADIANS_PER_DEGREE),s=e.defaultValue(r.arcType,o.ArcType.GEODESIC),l=r.polygonHierarchy,u=e.defaultValue(r.ellipsoid,t.Ellipsoid.WGS84);return X(l.positions,u,s,n,i)},re.createGeometry=function(t){const o=t._vertexFormat,r=t._ellipsoid,n=t._granularity,s=t._stRotation,h=t._polygonHierarchy,f=t._perPositionHeight,b=t._closeTop,_=t._closeBottom,P=t._arcType,C=t._textureCoordinates,x=e.defined(C);let w=h.positions;if(w.length<3)return;const T=l.EllipsoidTangentPlane.fromPoints(w,r),I=m.PolygonGeometryLibrary.polygonsFromHierarchy(h,x,T.projectPointsOntoPlane.bind(T),!f,r),A=I.hierarchy,v=I.polygons,E=x?m.PolygonGeometryLibrary.polygonsFromHierarchy(C,!0,(function(e){return e}),!1).polygons:void 0;if(0===A.length)return;w=A[0].outerRing;const G=m.PolygonGeometryLibrary.computeBoundingRectangle(T.plane.normal,T.projectPointOntoPlane.bind(T),w,s,L),O=[],V=t._height,H=t._extrudedHeight,D={perPositionHeight:f,vertexFormat:o,geometry:void 0,tangentPlane:T,boundingRectangle:G,ellipsoid:r,stRotation:s,textureCoordinates:void 0,bottom:!1,top:!0,wall:!1,extrude:!1,arcType:P};let N;if(t._perPositionHeightExtrude||!a.CesiumMath.equalsEpsilon(V,H,0,a.CesiumMath.EPSILON2))for(D.extrude=!0,D.top=b,D.bottom=_,D.shadowVolume=t._shadowVolume,D.offsetAttribute=t._offsetAttribute,N=0;N<v.length;N++){const e=oe(r,v[N],x?E[N]:void 0,n,A[N],f,b,_,o,P);let t;b&&_?(t=e.topAndBottom,D.geometry=m.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(t.geometry,V,H,r,f)):b?(t=e.topAndBottom,t.geometry.attributes.position.values=g.PolygonPipeline.scaleToGeodeticHeight(t.geometry.attributes.position.values,V,r,!f),D.geometry=t.geometry):_&&(t=e.topAndBottom,t.geometry.attributes.position.values=g.PolygonPipeline.scaleToGeodeticHeight(t.geometry.attributes.position.values,H,r,!0),D.geometry=t.geometry),(b||_)&&(D.wall=!1,t.geometry=Q(D),O.push(t));const i=e.walls;D.wall=!0;for(let e=0;e<i.length;e++){const t=i[e];D.geometry=m.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(t.geometry,V,H,r,f),t.geometry=Q(D),O.push(t)}}else for(N=0;N<v.length;N++){const i=new c.GeometryInstance({geometry:m.PolygonGeometryLibrary.createGeometryFromPositions(r,v[N],x?E[N]:void 0,n,f,o,P)});if(i.geometry.attributes.position.values=g.PolygonPipeline.scaleToGeodeticHeight(i.geometry.attributes.position.values,V,r,!f),D.geometry=i.geometry,i.geometry=Q(D),e.defined(t._offsetAttribute)){const e=i.geometry.attributes.position.values.length,o=t._offsetAttribute===d.GeometryOffsetAttribute.NONE?0:1,r=new Uint8Array(e/3).fill(o);i.geometry.attributes.applyOffset=new u.GeometryAttribute({componentDatatype:a.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})}O.push(i)}const F=p.GeometryPipeline.combineInstances(O)[0];F.attributes.position.values=new Float64Array(F.attributes.position.values),F.indices=y.IndexDatatype.createTypedArray(F.attributes.position.values.length/3,F.indices);const R=F.attributes,M=i.BoundingSphere.fromVertices(R.position.values);return o.position||delete R.position,new u.Geometry({attributes:R,indices:F.indices,primitiveType:F.primitiveType,boundingSphere:M,offsetAttribute:t._offsetAttribute})},re.createShadowVolume=function(e,t,o){const r=e._granularity,i=e._ellipsoid,n=t(r,i),a=o(r,i);return new re({polygonHierarchy:e._polygonHierarchy,ellipsoid:i,stRotation:e._stRotation,granularity:r,perPositionHeight:!1,extrudedHeight:n,height:a,vertexFormat:h.VertexFormat.POSITION_ONLY,shadowVolume:!0,arcType:e._arcType})},Object.defineProperties(re.prototype,{rectangle:{get:function(){if(!e.defined(this._rectangle)){const e=this._polygonHierarchy.positions;this._rectangle=X(e,this._ellipsoid,this._arcType,this._granularity)}return this._rectangle}},textureCoordinateRotationPoints:{get:function(){return e.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(e){const t=-e._stRotation;if(0===t)return[0,0,0,1,1,0];const o=e._ellipsoid,r=e._polygonHierarchy.positions,i=e.rectangle;return u.Geometry._textureCoordinateRotationPoints(r,t,o,i)}(this)),this._textureCoordinateRotationPoints}}}),function(o,r){return e.defined(r)&&(o=re.unpack(o,r)),o._ellipsoid=t.Ellipsoid.clone(o._ellipsoid),re.createGeometry(o)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./defaultValue-97284df2","./Matrix2-73789715","./ArcType-de5d8777","./Transforms-d4da1631","./RuntimeError-4f8ec8a2","./ComponentDatatype-e7fbe225","./EllipsoidTangentPlane-9813dd6d","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryInstance-4bfcfe78","./GeometryOffsetAttribute-59b14f45","./GeometryPipeline-350055a2","./IndexDatatype-65271ba3","./PolygonGeometryLibrary-1e3a5b27","./PolygonPipeline-5a1c3ce9","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./AxisAlignedBoundingBox-546c299b","./IntersectionTests-a7d8bdc4","./Plane-e916220d","./AttributeCompression-5744d52e","./EncodedCartesian3-a9a8a281","./arrayRemoveDuplicates-6f91355d","./EllipsoidRhumbLine-60f14314"],(function(e,t,i,o,r,n,a,s,l,y,u,p,d,c,f,g,m,h,b,P,E,A,_,G,L){"use strict";const H=[],T=[];function v(e,t,o,r,u){const p=a.EllipsoidTangentPlane.fromPoints(t,e).projectPointsOntoPlane(t,H);let g,m;f.PolygonPipeline.computeWindingOrder2D(p)===f.WindingOrder.CLOCKWISE&&(p.reverse(),t=t.slice().reverse());let h=t.length,b=0;if(r)for(g=new Float64Array(2*h*3),m=0;m<h;m++){const e=t[m],i=t[(m+1)%h];g[b++]=e.x,g[b++]=e.y,g[b++]=e.z,g[b++]=i.x,g[b++]=i.y,g[b++]=i.z}else{let r=0;if(u===i.ArcType.GEODESIC)for(m=0;m<h;m++)r+=c.PolygonGeometryLibrary.subdivideLineCount(t[m],t[(m+1)%h],o);else if(u===i.ArcType.RHUMB)for(m=0;m<h;m++)r+=c.PolygonGeometryLibrary.subdivideRhumbLineCount(e,t[m],t[(m+1)%h],o);for(g=new Float64Array(3*r),m=0;m<h;m++){let r;u===i.ArcType.GEODESIC?r=c.PolygonGeometryLibrary.subdivideLine(t[m],t[(m+1)%h],o,T):u===i.ArcType.RHUMB&&(r=c.PolygonGeometryLibrary.subdivideRhumbLine(e,t[m],t[(m+1)%h],o,T));const n=r.length;for(let e=0;e<n;++e)g[b++]=r[e]}}h=g.length/3;const P=2*h,E=d.IndexDatatype.createTypedArray(h,P);for(b=0,m=0;m<h-1;m++)E[b++]=m,E[b++]=m+1;return E[b++]=h-1,E[b++]=0,new y.GeometryInstance({geometry:new s.Geometry({attributes:new l.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:g})}),indices:E,primitiveType:s.PrimitiveType.LINES})})}function C(e,t,o,r,u){const p=a.EllipsoidTangentPlane.fromPoints(t,e).projectPointsOntoPlane(t,H);let g,m;f.PolygonPipeline.computeWindingOrder2D(p)===f.WindingOrder.CLOCKWISE&&(p.reverse(),t=t.slice().reverse());let h=t.length;const b=new Array(h);let P=0;if(r)for(g=new Float64Array(2*h*3*2),m=0;m<h;++m){b[m]=P/3;const e=t[m],i=t[(m+1)%h];g[P++]=e.x,g[P++]=e.y,g[P++]=e.z,g[P++]=i.x,g[P++]=i.y,g[P++]=i.z}else{let r=0;if(u===i.ArcType.GEODESIC)for(m=0;m<h;m++)r+=c.PolygonGeometryLibrary.subdivideLineCount(t[m],t[(m+1)%h],o);else if(u===i.ArcType.RHUMB)for(m=0;m<h;m++)r+=c.PolygonGeometryLibrary.subdivideRhumbLineCount(e,t[m],t[(m+1)%h],o);for(g=new Float64Array(3*r*2),m=0;m<h;++m){let r;b[m]=P/3,u===i.ArcType.GEODESIC?r=c.PolygonGeometryLibrary.subdivideLine(t[m],t[(m+1)%h],o,T):u===i.ArcType.RHUMB&&(r=c.PolygonGeometryLibrary.subdivideRhumbLine(e,t[m],t[(m+1)%h],o,T));const n=r.length;for(let e=0;e<n;++e)g[P++]=r[e]}}h=g.length/6;const E=b.length,A=2*(2*h+E),_=d.IndexDatatype.createTypedArray(h+E,A);for(P=0,m=0;m<h;++m)_[P++]=m,_[P++]=(m+1)%h,_[P++]=m+h,_[P++]=(m+1)%h+h;for(m=0;m<E;m++){const e=b[m];_[P++]=e,_[P++]=e+h}return new y.GeometryInstance({geometry:new s.Geometry({attributes:new l.GeometryAttributes({position:new s.GeometryAttribute({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:g})}),indices:_,primitiveType:s.PrimitiveType.LINES})})}function O(o){const r=o.polygonHierarchy,a=e.defaultValue(o.ellipsoid,t.Ellipsoid.WGS84),s=e.defaultValue(o.granularity,n.CesiumMath.RADIANS_PER_DEGREE),l=e.defaultValue(o.perPositionHeight,!1),y=l&&e.defined(o.extrudedHeight),u=e.defaultValue(o.arcType,i.ArcType.GEODESIC);let p=e.defaultValue(o.height,0),d=e.defaultValue(o.extrudedHeight,p);if(!y){const e=Math.max(p,d);d=Math.min(p,d),p=e}this._ellipsoid=t.Ellipsoid.clone(a),this._granularity=s,this._height=p,this._extrudedHeight=d,this._arcType=u,this._polygonHierarchy=r,this._perPositionHeight=l,this._perPositionHeightExtrude=y,this._offsetAttribute=o.offsetAttribute,this._workerName="createPolygonOutlineGeometry",this.packedLength=c.PolygonGeometryLibrary.computeHierarchyPackedLength(r,t.Cartesian3)+t.Ellipsoid.packedLength+8}O.pack=function(i,o,r){return r=e.defaultValue(r,0),r=c.PolygonGeometryLibrary.packPolygonHierarchy(i._polygonHierarchy,o,r,t.Cartesian3),t.Ellipsoid.pack(i._ellipsoid,o,r),r+=t.Ellipsoid.packedLength,o[r++]=i._height,o[r++]=i._extrudedHeight,o[r++]=i._granularity,o[r++]=i._perPositionHeightExtrude?1:0,o[r++]=i._perPositionHeight?1:0,o[r++]=i._arcType,o[r++]=e.defaultValue(i._offsetAttribute,-1),o[r]=i.packedLength,o};const x=t.Ellipsoid.clone(t.Ellipsoid.UNIT_SPHERE),D={polygonHierarchy:{}};return O.unpack=function(i,o,r){o=e.defaultValue(o,0);const n=c.PolygonGeometryLibrary.unpackPolygonHierarchy(i,o,t.Cartesian3);o=n.startingIndex,delete n.startingIndex;const a=t.Ellipsoid.unpack(i,o,x);o+=t.Ellipsoid.packedLength;const s=i[o++],l=i[o++],y=i[o++],u=1===i[o++],p=1===i[o++],d=i[o++],f=i[o++],g=i[o];return e.defined(r)||(r=new O(D)),r._polygonHierarchy=n,r._ellipsoid=t.Ellipsoid.clone(a,r._ellipsoid),r._height=s,r._extrudedHeight=l,r._granularity=y,r._perPositionHeight=p,r._perPositionHeightExtrude=u,r._arcType=d,r._offsetAttribute=-1===f?void 0:f,r.packedLength=g,r},O.fromPositions=function(t){return new O({polygonHierarchy:{positions:(t=e.defaultValue(t,e.defaultValue.EMPTY_OBJECT)).positions},height:t.height,extrudedHeight:t.extrudedHeight,ellipsoid:t.ellipsoid,granularity:t.granularity,perPositionHeight:t.perPositionHeight,arcType:t.arcType,offsetAttribute:t.offsetAttribute})},O.createGeometry=function(t){const i=t._ellipsoid,r=t._granularity,a=t._polygonHierarchy,l=t._perPositionHeight,y=t._arcType,d=c.PolygonGeometryLibrary.polygonOutlinesFromHierarchy(a,!l,i);if(0===d.length)return;let g;const m=[],h=n.CesiumMath.chordLength(r,i.maximumRadius),b=t._height,P=t._extrudedHeight;let E,A;if(t._perPositionHeightExtrude||!n.CesiumMath.equalsEpsilon(b,P,0,n.CesiumMath.EPSILON2))for(A=0;A<d.length;A++){if(g=C(i,d[A],h,l,y),g.geometry=c.PolygonGeometryLibrary.scaleToGeodeticHeightExtruded(g.geometry,b,P,i,l),e.defined(t._offsetAttribute)){const e=g.geometry.attributes.position.values.length/3;let i=new Uint8Array(e);t._offsetAttribute===u.GeometryOffsetAttribute.TOP?i=i.fill(1,0,e/2):(E=t._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1,i=i.fill(E)),g.geometry.attributes.applyOffset=new s.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}m.push(g)}else for(A=0;A<d.length;A++){if(g=v(i,d[A],h,l,y),g.geometry.attributes.position.values=f.PolygonPipeline.scaleToGeodeticHeight(g.geometry.attributes.position.values,b,i,!l),e.defined(t._offsetAttribute)){const e=g.geometry.attributes.position.values.length;E=t._offsetAttribute===u.GeometryOffsetAttribute.NONE?0:1;const i=new Uint8Array(e/3).fill(E);g.geometry.attributes.applyOffset=new s.GeometryAttribute({componentDatatype:n.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i})}m.push(g)}const _=p.GeometryPipeline.combineInstances(m)[0],G=o.BoundingSphere.fromVertices(_.attributes.position.values);return new s.Geometry({attributes:_.attributes,indices:_.indices,primitiveType:_.primitiveType,boundingSphere:G,offsetAttribute:t._offsetAttribute})},function(i,o){return e.defined(o)&&(i=O.unpack(i,o)),i._ellipsoid=t.Ellipsoid.clone(i._ellipsoid),O.createGeometry(i)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./defaultValue-97284df2","./Matrix2-73789715","./ArcType-de5d8777","./arrayRemoveDuplicates-6f91355d","./Transforms-d4da1631","./Color-62754929","./ComponentDatatype-e7fbe225","./RuntimeError-4f8ec8a2","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./IndexDatatype-65271ba3","./PolylinePipeline-ab9c4512","./VertexFormat-9886cb81","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./EllipsoidGeodesic-ed8a0e40","./EllipsoidRhumbLine-60f14314","./IntersectionTests-a7d8bdc4","./Plane-e916220d"],(function(e,t,o,n,r,a,i,l,s,c,p,d,u,y,m,f,h,C,g,_){"use strict";const A=[];function E(e,t,o,n,r){const i=A;let l;i.length=r;const s=o.red,c=o.green,p=o.blue,d=o.alpha,u=n.red,y=n.green,m=n.blue,f=n.alpha;if(a.Color.equals(o,n)){for(l=0;l<r;l++)i[l]=a.Color.clone(o);return i}const h=(u-s)/r,C=(y-c)/r,g=(m-p)/r,_=(f-d)/r;for(l=0;l<r;l++)i[l]=new a.Color(s+l*h,c+l*C,p+l*g,d+l*_);return i}function P(n){const r=(n=e.defaultValue(n,e.defaultValue.EMPTY_OBJECT)).positions,l=n.colors,s=e.defaultValue(n.width,1),c=e.defaultValue(n.colorsPerVertex,!1);this._positions=r,this._colors=l,this._width=s,this._colorsPerVertex=c,this._vertexFormat=u.VertexFormat.clone(e.defaultValue(n.vertexFormat,u.VertexFormat.DEFAULT)),this._arcType=e.defaultValue(n.arcType,o.ArcType.GEODESIC),this._granularity=e.defaultValue(n.granularity,i.CesiumMath.RADIANS_PER_DEGREE),this._ellipsoid=t.Ellipsoid.clone(e.defaultValue(n.ellipsoid,t.Ellipsoid.WGS84)),this._workerName="createPolylineGeometry";let p=1+r.length*t.Cartesian3.packedLength;p+=e.defined(l)?1+l.length*a.Color.packedLength:1,this.packedLength=p+t.Ellipsoid.packedLength+u.VertexFormat.packedLength+4}P.pack=function(o,n,r){let i;r=e.defaultValue(r,0);const l=o._positions;let s=l.length;for(n[r++]=s,i=0;i<s;++i,r+=t.Cartesian3.packedLength)t.Cartesian3.pack(l[i],n,r);const c=o._colors;for(s=e.defined(c)?c.length:0,n[r++]=s,i=0;i<s;++i,r+=a.Color.packedLength)a.Color.pack(c[i],n,r);return t.Ellipsoid.pack(o._ellipsoid,n,r),r+=t.Ellipsoid.packedLength,u.VertexFormat.pack(o._vertexFormat,n,r),r+=u.VertexFormat.packedLength,n[r++]=o._width,n[r++]=o._colorsPerVertex?1:0,n[r++]=o._arcType,n[r]=o._granularity,n};const b=t.Ellipsoid.clone(t.Ellipsoid.UNIT_SPHERE),w=new u.VertexFormat,x={positions:void 0,colors:void 0,ellipsoid:b,vertexFormat:w,width:void 0,colorsPerVertex:void 0,arcType:void 0,granularity:void 0};P.unpack=function(o,n,r){let i;n=e.defaultValue(n,0);let l=o[n++];const s=new Array(l);for(i=0;i<l;++i,n+=t.Cartesian3.packedLength)s[i]=t.Cartesian3.unpack(o,n);l=o[n++];const c=l>0?new Array(l):void 0;for(i=0;i<l;++i,n+=a.Color.packedLength)c[i]=a.Color.unpack(o,n);const p=t.Ellipsoid.unpack(o,n,b);n+=t.Ellipsoid.packedLength;const d=u.VertexFormat.unpack(o,n,w);n+=u.VertexFormat.packedLength;const y=o[n++],m=1===o[n++],f=o[n++],h=o[n];return e.defined(r)?(r._positions=s,r._colors=c,r._ellipsoid=t.Ellipsoid.clone(p,r._ellipsoid),r._vertexFormat=u.VertexFormat.clone(d,r._vertexFormat),r._width=y,r._colorsPerVertex=m,r._arcType=f,r._granularity=h,r):(x.positions=s,x.colors=c,x.width=y,x.colorsPerVertex=m,x.arcType=f,x.granularity=h,new P(x))};const T=new t.Cartesian3,D=new t.Cartesian3,k=new t.Cartesian3,V=new t.Cartesian3;return P.createGeometry=function(l){const u=l._width,y=l._vertexFormat;let m=l._colors;const f=l._colorsPerVertex,h=l._arcType,C=l._granularity,g=l._ellipsoid;let _,P,b;const w=[];let x=n.arrayRemoveDuplicates(l._positions,t.Cartesian3.equalsEpsilon,!1,w);if(e.defined(m)&&w.length>0){let e=0,t=w[0];m=m.filter((function(o,n){let r=!1;return r=f?n===t||0===n&&1===t:n+1===t,!r||(e++,t=w[e],!1)}))}let v=x.length;if(v<2||u<=0)return;if(h===o.ArcType.GEODESIC||h===o.ArcType.RHUMB){let t,n;h===o.ArcType.GEODESIC?(t=i.CesiumMath.chordLength(C,g.maximumRadius),n=d.PolylinePipeline.numberOfPoints):(t=C,n=d.PolylinePipeline.numberOfPointsRhumbLine);const r=d.PolylinePipeline.extractHeights(x,g);if(e.defined(m)){let e=1;for(_=0;_<v-1;++_)e+=n(x[_],x[_+1],t);const o=new Array(e);let r=0;for(_=0;_<v-1;++_){const i=x[_],l=x[_+1],s=m[_],c=n(i,l,t);if(f&&_<e){const e=E(0,0,s,m[_+1],c),t=e.length;for(P=0;P<t;++P)o[r++]=e[P]}else for(P=0;P<c;++P)o[r++]=a.Color.clone(s)}o[r]=a.Color.clone(m[m.length-1]),m=o,A.length=0}x=h===o.ArcType.GEODESIC?d.PolylinePipeline.generateCartesianArc({positions:x,minDistance:t,ellipsoid:g,height:r}):d.PolylinePipeline.generateCartesianRhumbArc({positions:x,granularity:t,ellipsoid:g,height:r})}v=x.length;const L=4*v-4,F=new Float64Array(3*L),G=new Float64Array(3*L),O=new Float64Array(3*L),R=new Float32Array(2*L),I=y.st?new Float32Array(2*L):void 0,S=e.defined(m)?new Uint8Array(4*L):void 0;let B,U=0,N=0,M=0,H=0;for(P=0;P<v;++P){let o,n;0===P?(B=T,t.Cartesian3.subtract(x[0],x[1],B),t.Cartesian3.add(x[0],B,B)):B=x[P-1],t.Cartesian3.clone(B,k),t.Cartesian3.clone(x[P],D),P===v-1?(B=T,t.Cartesian3.subtract(x[v-1],x[v-2],B),t.Cartesian3.add(x[v-1],B,B)):B=x[P+1],t.Cartesian3.clone(B,V),e.defined(S)&&(o=0===P||f?m[P]:m[P-1],P!==v-1&&(n=m[P]));const r=P===v-1?2:4;for(b=0===P?2:0;b<r;++b){t.Cartesian3.pack(D,F,U),t.Cartesian3.pack(k,G,U),t.Cartesian3.pack(V,O,U),U+=3;const r=b-2<0?-1:1;if(R[N++]=b%2*2-1,R[N++]=r*u,y.st&&(I[M++]=P/(v-1),I[M++]=Math.max(R[N-2],0)),e.defined(S)){const e=b<2?o:n;S[H++]=a.Color.floatToByte(e.red),S[H++]=a.Color.floatToByte(e.green),S[H++]=a.Color.floatToByte(e.blue),S[H++]=a.Color.floatToByte(e.alpha)}}}const W=new c.GeometryAttributes;W.position=new s.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:F}),W.prevPosition=new s.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:G}),W.nextPosition=new s.GeometryAttribute({componentDatatype:i.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:O}),W.expandAndWidth=new s.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:R}),y.st&&(W.st=new s.GeometryAttribute({componentDatatype:i.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:I})),e.defined(S)&&(W.color=new s.GeometryAttribute({componentDatatype:i.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:S,normalize:!0}));const Y=p.IndexDatatype.createTypedArray(L,6*v-6);let q=0,j=0;const z=v-1;for(P=0;P<z;++P)Y[j++]=q,Y[j++]=q+2,Y[j++]=q+1,Y[j++]=q+1,Y[j++]=q+2,Y[j++]=q+3,q+=4;return new s.Geometry({attributes:W,indices:Y,primitiveType:s.PrimitiveType.TRIANGLES,boundingSphere:r.BoundingSphere.fromPoints(x),geometryType:s.GeometryType.POLYLINES})},function(o,n){return e.defined(n)&&(o=P.unpack(o,n)),o._ellipsoid=t.Ellipsoid.clone(o._ellipsoid),P.createGeometry(o)}}));
|
@@ -0,0 +1,25 @@
|
|
1
|
+
/**
|
2
|
+
* @license
|
3
|
+
* Cesium - https://github.com/CesiumGS/cesium
|
4
|
+
* Version 1.95
|
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
|
+
define(["./defaultValue-97284df2","./Matrix2-73789715","./arrayRemoveDuplicates-6f91355d","./BoundingRectangle-5691ae9d","./Transforms-d4da1631","./ComponentDatatype-e7fbe225","./PolylineVolumeGeometryLibrary-a3701381","./RuntimeError-4f8ec8a2","./GeometryAttribute-8163e7fe","./GeometryAttributes-734a3446","./GeometryPipeline-350055a2","./IndexDatatype-65271ba3","./PolygonPipeline-5a1c3ce9","./VertexFormat-9886cb81","./_commonjsHelpers-3aae1032-65601a27","./combine-d11b1f00","./WebGLConstants-6da700a2","./EllipsoidTangentPlane-9813dd6d","./AxisAlignedBoundingBox-546c299b","./IntersectionTests-a7d8bdc4","./Plane-e916220d","./PolylinePipeline-ab9c4512","./EllipsoidGeodesic-ed8a0e40","./EllipsoidRhumbLine-60f14314","./AttributeCompression-5744d52e","./EncodedCartesian3-a9a8a281"],(function(e,t,n,o,i,a,r,l,s,p,c,d,u,m,y,g,h,f,b,P,_,E,k,v,V,L){"use strict";function x(n){const o=(n=e.defaultValue(n,e.defaultValue.EMPTY_OBJECT)).polylinePositions,i=n.shapePositions;this._positions=o,this._shape=i,this._ellipsoid=t.Ellipsoid.clone(e.defaultValue(n.ellipsoid,t.Ellipsoid.WGS84)),this._cornerType=e.defaultValue(n.cornerType,r.CornerType.ROUNDED),this._vertexFormat=m.VertexFormat.clone(e.defaultValue(n.vertexFormat,m.VertexFormat.DEFAULT)),this._granularity=e.defaultValue(n.granularity,a.CesiumMath.RADIANS_PER_DEGREE),this._workerName="createPolylineVolumeGeometry";let l=1+o.length*t.Cartesian3.packedLength;l+=1+i.length*t.Cartesian2.packedLength,this.packedLength=l+t.Ellipsoid.packedLength+m.VertexFormat.packedLength+2}x.pack=function(n,o,i){let a;i=e.defaultValue(i,0);const r=n._positions;let l=r.length;for(o[i++]=l,a=0;a<l;++a,i+=t.Cartesian3.packedLength)t.Cartesian3.pack(r[a],o,i);const s=n._shape;for(l=s.length,o[i++]=l,a=0;a<l;++a,i+=t.Cartesian2.packedLength)t.Cartesian2.pack(s[a],o,i);return t.Ellipsoid.pack(n._ellipsoid,o,i),i+=t.Ellipsoid.packedLength,m.VertexFormat.pack(n._vertexFormat,o,i),i+=m.VertexFormat.packedLength,o[i++]=n._cornerType,o[i]=n._granularity,o};const C=t.Ellipsoid.clone(t.Ellipsoid.UNIT_SPHERE),F=new m.VertexFormat,A={polylinePositions:void 0,shapePositions:void 0,ellipsoid:C,vertexFormat:F,cornerType:void 0,granularity:void 0};x.unpack=function(n,o,i){let a;o=e.defaultValue(o,0);let r=n[o++];const l=new Array(r);for(a=0;a<r;++a,o+=t.Cartesian3.packedLength)l[a]=t.Cartesian3.unpack(n,o);r=n[o++];const s=new Array(r);for(a=0;a<r;++a,o+=t.Cartesian2.packedLength)s[a]=t.Cartesian2.unpack(n,o);const p=t.Ellipsoid.unpack(n,o,C);o+=t.Ellipsoid.packedLength;const c=m.VertexFormat.unpack(n,o,F);o+=m.VertexFormat.packedLength;const d=n[o++],u=n[o];return e.defined(i)?(i._positions=l,i._shape=s,i._ellipsoid=t.Ellipsoid.clone(p,i._ellipsoid),i._vertexFormat=m.VertexFormat.clone(c,i._vertexFormat),i._cornerType=d,i._granularity=u,i):(A.polylinePositions=l,A.shapePositions=s,A.cornerType=d,A.granularity=u,new x(A))};const T=new o.BoundingRectangle;return x.createGeometry=function(e){const l=e._positions,m=n.arrayRemoveDuplicates(l,t.Cartesian3.equalsEpsilon);let y=e._shape;if(y=r.PolylineVolumeGeometryLibrary.removeDuplicatesFromShape(y),m.length<2||y.length<3)return;u.PolygonPipeline.computeWindingOrder2D(y)===u.WindingOrder.CLOCKWISE&&y.reverse();const g=o.BoundingRectangle.fromPoints(y,T);return function(e,t,n,o){const l=new p.GeometryAttributes;o.position&&(l.position=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:e}));const m=t.length,y=e.length/3,g=(y-2*m)/(2*m),h=u.PolygonPipeline.triangulate(t),f=(g-1)*m*6+2*h.length,b=d.IndexDatatype.createTypedArray(y,f);let P,_,E,k,v,V;const L=2*m;let x=0;for(P=0;P<g-1;P++){for(_=0;_<m-1;_++)E=2*_+P*m*2,V=E+L,k=E+1,v=k+L,b[x++]=k,b[x++]=E,b[x++]=v,b[x++]=v,b[x++]=E,b[x++]=V;E=2*m-2+P*m*2,k=E+1,v=k+L,V=E+L,b[x++]=k,b[x++]=E,b[x++]=v,b[x++]=v,b[x++]=E,b[x++]=V}if(o.st||o.tangent||o.bitangent){const e=new Float32Array(2*y),o=1/(g-1),i=1/n.height,r=n.height/2;let p,c,d=0;for(P=0;P<g;P++){for(p=P*o,c=i*(t[0].y+r),e[d++]=p,e[d++]=c,_=1;_<m;_++)c=i*(t[_].y+r),e[d++]=p,e[d++]=c,e[d++]=p,e[d++]=c;c=i*(t[0].y+r),e[d++]=p,e[d++]=c}for(_=0;_<m;_++)p=0,c=i*(t[_].y+r),e[d++]=p,e[d++]=c;for(_=0;_<m;_++)p=(g-1)*o,c=i*(t[_].y+r),e[d++]=p,e[d++]=c;l.st=new s.GeometryAttribute({componentDatatype:a.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:new Float32Array(e)})}const C=y-2*m;for(P=0;P<h.length;P+=3){const e=h[P]+C,t=h[P+1]+C,n=h[P+2]+C;b[x++]=e,b[x++]=t,b[x++]=n,b[x++]=n+m,b[x++]=t+m,b[x++]=e+m}let F=new s.Geometry({attributes:l,indices:b,boundingSphere:i.BoundingSphere.fromVertices(e),primitiveType:s.PrimitiveType.TRIANGLES});if(o.normal&&(F=c.GeometryPipeline.computeNormal(F)),o.tangent||o.bitangent){try{F=c.GeometryPipeline.computeTangentAndBitangent(F)}catch(e){r.oneTimeWarning("polyline-volume-tangent-bitangent","Unable to compute tangents and bitangents for polyline volume geometry")}o.tangent||(F.attributes.tangent=void 0),o.bitangent||(F.attributes.bitangent=void 0),o.st||(F.attributes.st=void 0)}return F}(r.PolylineVolumeGeometryLibrary.computePositions(m,y,g,e,!0),y,g,e._vertexFormat)},function(n,o){return e.defined(o)&&(n=x.unpack(n,o)),n._ellipsoid=t.Ellipsoid.clone(n._ellipsoid),x.createGeometry(n)}}));
|