@mapgis/cesium 17.0.4 → 17.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Documentation/AlgorithmLib.html +29 -29
- package/Documentation/AngulationTool.html +5 -5
- package/Documentation/Animation.html +7 -7
- package/Documentation/AnimationTool.html +41 -41
- package/Documentation/AnimationViewModel.html +23 -23
- package/Documentation/Appearance.html +10 -10
- package/Documentation/ArcGISTiledElevationTerrainProvider.html +13 -13
- package/Documentation/ArcGisMapServerImageryProvider.html +68 -33
- package/Documentation/AssociativeArray.html +8 -8
- package/Documentation/AttributeSurfacePrimitive.html +7 -7
- package/Documentation/AxisAlignedBoundingBox.html +11 -11
- package/Documentation/BaiduImageryProvider.html +29 -29
- package/Documentation/BaiduMapImagerProvider.html +1 -1
- package/Documentation/BaiduProjection.html +7 -7
- package/Documentation/BaseLayerPicker.html +5 -5
- package/Documentation/BaseLayerPickerViewModel.html +10 -10
- package/Documentation/Billboard.html +31 -31
- package/Documentation/BillboardCollection.html +17 -17
- package/Documentation/BillboardGraphics.html +25 -25
- package/Documentation/BillboardVisualizer.html +4 -4
- package/Documentation/BingMapsGeocoderService.html +4 -4
- package/Documentation/BingMapsImageryProvider.html +35 -35
- package/Documentation/BlendingState.html +5 -5
- package/Documentation/BloomEffect.html +12 -12
- package/Documentation/BoundingRectangle.html +18 -18
- package/Documentation/BoundingSphere.html +34 -34
- package/Documentation/BoxEmitter.html +2 -2
- package/Documentation/BoxGeometry.html +7 -7
- package/Documentation/BoxGeometryUpdater.html +3 -3
- package/Documentation/BoxGraphics.html +15 -15
- package/Documentation/BoxOutlineGeometry.html +7 -7
- package/Documentation/CallbackProperty.html +7 -7
- package/Documentation/Camera.html +80 -80
- package/Documentation/CameraEventAggregator.html +13 -13
- package/Documentation/Cartesian2.html +44 -44
- package/Documentation/Cartesian3.html +54 -54
- package/Documentation/Cartesian4.html +46 -46
- package/Documentation/Cartographic.html +16 -16
- package/Documentation/CartographicGeocoderService.html +2 -2
- package/Documentation/CatmullRomSpline.html +9 -9
- package/Documentation/Cesium3DTile.html +12 -12
- package/Documentation/Cesium3DTileContent.html +14 -14
- package/Documentation/Cesium3DTileCustomContent.html +1 -1
- package/Documentation/Cesium3DTileFeature.html +10 -10
- package/Documentation/Cesium3DTilePointFeature.html +33 -33
- package/Documentation/Cesium3DTileStyle.html +31 -31
- package/Documentation/Cesium3DTilesInspector.html +5 -5
- package/Documentation/Cesium3DTilesInspectorViewModel.html +70 -70
- package/Documentation/Cesium3DTileset.html +91 -91
- package/Documentation/Cesium3DTilesetGraphics.html +8 -8
- package/Documentation/Cesium3DTilesetVisualizer.html +4 -4
- package/Documentation/CesiumHeatmap.html +3 -3
- package/Documentation/CesiumInspector.html +5 -5
- package/Documentation/CesiumInspectorViewModel.html +52 -52
- package/Documentation/CesiumNavigation.html +1 -1
- package/Documentation/CesiumTerrainProvider.html +17 -17
- package/Documentation/CesiumWidget.html +20 -20
- package/Documentation/CheckerboardMaterialProperty.html +9 -9
- package/Documentation/CircleEmitter.html +3 -3
- package/Documentation/CircleGeometry.html +5 -5
- package/Documentation/CircleOutlineGeometry.html +5 -5
- package/Documentation/CircleScanEffect.html +1 -1
- package/Documentation/CircleWaveMaterialProperty.html +1 -1
- package/Documentation/ClassificationPrimitive.html +21 -21
- package/Documentation/ClippingGeometry.html +4 -4
- package/Documentation/ClippingPlane.html +5 -5
- package/Documentation/ClippingPlaneCollection.html +17 -17
- package/Documentation/Clock.html +12 -12
- package/Documentation/ClockViewModel.html +14 -14
- package/Documentation/CollisionDetectionByRender.html +10 -10
- package/Documentation/Color.html +185 -185
- package/Documentation/ColorGeometryInstanceAttribute.html +8 -8
- package/Documentation/ColorMaterialProperty.html +7 -7
- package/Documentation/Command.html +4 -4
- package/Documentation/CompositeEntityCollection.html +21 -21
- package/Documentation/CompositeMaterialProperty.html +7 -7
- package/Documentation/CompositePositionProperty.html +8 -8
- package/Documentation/CompositeProperty.html +6 -6
- package/Documentation/CompressedTextureBuffer.html +8 -8
- package/Documentation/ConditionsExpression.html +4 -4
- package/Documentation/ConeEmitter.html +1 -1
- package/Documentation/ConstantPositionProperty.html +8 -8
- package/Documentation/ConstantProperty.html +8 -8
- package/Documentation/CoplanarPolygonGeometry.html +6 -6
- package/Documentation/CoplanarPolygonOutlineGeometry.html +6 -6
- package/Documentation/CorridorGeometry.html +6 -6
- package/Documentation/CorridorGeometryUpdater.html +3 -3
- package/Documentation/CorridorGraphics.html +23 -23
- package/Documentation/CorridorOutlineGeometry.html +5 -5
- package/Documentation/Credit.html +7 -7
- package/Documentation/CreditDisplay.html +11 -11
- package/Documentation/CubicRealPolynomial.html +3 -3
- package/Documentation/CullingVolume.html +4 -4
- package/Documentation/CustomDataSource.html +11 -11
- package/Documentation/CustomHeightmapTerrainProvider.html +15 -15
- package/Documentation/CustomProjection.html +5 -5
- package/Documentation/CustomShader.html +1 -1
- package/Documentation/CustomTilingScheme.html +16 -54
- package/Documentation/CutFillAnalysis.html +17 -17
- package/Documentation/CuttingTool.html +11 -11
- package/Documentation/CylinderGeometry.html +5 -5
- package/Documentation/CylinderGeometryUpdater.html +3 -3
- package/Documentation/CylinderGraphics.html +19 -19
- package/Documentation/CylinderOutlineGeometry.html +5 -5
- package/Documentation/CzmlDataSource.html +22 -22
- package/Documentation/DataSource.html +11 -11
- package/Documentation/DataSourceClock.html +12 -12
- package/Documentation/DataSourceCollection.html +18 -18
- package/Documentation/DataSourceDisplay.html +10 -10
- package/Documentation/DebugAppearance.html +12 -12
- package/Documentation/DebugCameraPrimitive.html +5 -5
- package/Documentation/DebugModelMatrixPrimitive.html +8 -8
- package/Documentation/DefaultProxy.html +2 -2
- package/Documentation/DeveloperError.html +4 -4
- package/Documentation/DirectionalLight.html +4 -4
- package/Documentation/DiscardEmptyTileImagePolicy.html +4 -4
- package/Documentation/DiscardMissingTileImagePolicy.html +3 -3
- package/Documentation/DistanceDisplayCondition.html +10 -10
- package/Documentation/DistanceDisplayConditionGeometryInstanceAttribute.html +7 -7
- package/Documentation/DrawElement.html +9 -9
- package/Documentation/DrawTool.html +4 -4
- package/Documentation/DynamicEntityVisualizer.html +1 -1
- package/Documentation/DynamicLightLineEffect.html +13 -13
- package/Documentation/EasingFunction.html +33 -33
- package/Documentation/EditTool.html +15 -15
- package/Documentation/EllipseGeometry.html +6 -6
- package/Documentation/EllipseGeometryUpdater.html +4 -4
- package/Documentation/EllipseGraphics.html +25 -25
- package/Documentation/EllipseOutlineGeometry.html +5 -5
- package/Documentation/Ellipsoid.html +34 -34
- package/Documentation/EllipsoidGeodesic.html +10 -10
- package/Documentation/EllipsoidGeometry.html +5 -5
- package/Documentation/EllipsoidGeometryUpdater.html +3 -3
- package/Documentation/EllipsoidGraphics.html +23 -23
- package/Documentation/EllipsoidOutlineGeometry.html +5 -5
- package/Documentation/EllipsoidRhumbLine.html +12 -12
- package/Documentation/EllipsoidSurfaceAppearance.html +15 -15
- package/Documentation/EllipsoidTangentPlane.html +14 -14
- package/Documentation/EllipsoidTerrainProvider.html +13 -13
- package/Documentation/Entity.html +40 -40
- package/Documentation/EntityCluster.html +11 -11
- package/Documentation/EntityCollection.html +17 -17
- package/Documentation/EntityView.html +7 -7
- package/Documentation/Event.html +6 -6
- package/Documentation/EventHelper.html +4 -4
- package/Documentation/Expression.html +4 -4
- package/Documentation/FeatureDetection.html +9 -9
- package/Documentation/FlattenTool.html +34 -6
- package/Documentation/FloodAnalysis.html +16 -16
- package/Documentation/FloodAnalysisReflection.html +9 -9
- package/Documentation/Fog.html +5 -5
- package/Documentation/FrameRateMonitor.html +16 -16
- package/Documentation/FrustumGeometry.html +5 -5
- package/Documentation/FrustumOutlineGeometry.html +5 -5
- package/Documentation/Fullscreen.html +9 -9
- package/Documentation/FullscreenButton.html +5 -5
- package/Documentation/FullscreenButtonViewModel.html +8 -8
- package/Documentation/GaodeImageryProvider.html +29 -29
- package/Documentation/GaodeProjection.html +7 -7
- package/Documentation/GeoJsonDataSource.html +27 -27
- package/Documentation/Geocoder.html +7 -7
- package/Documentation/GeocoderService.html +3 -3
- package/Documentation/GeocoderViewModel.html +14 -14
- package/Documentation/GeographicProjection.html +94 -4
- package/Documentation/GeographicTilingScheme.html +10 -10
- package/Documentation/Geometry.html +6 -6
- package/Documentation/GeometryAttribute.html +5 -5
- package/Documentation/GeometryAttributes.html +7 -7
- package/Documentation/GeometryFactory.html +2 -2
- package/Documentation/GeometryInstance.html +5 -5
- package/Documentation/GeometryInstanceAttribute.html +5 -5
- package/Documentation/GeometryPipeline.html +13 -13
- package/Documentation/GeometryUpdater.html +22 -22
- package/Documentation/GeometryVisualizer.html +4 -4
- package/Documentation/GetFeatureInfoFormat.html +1 -1
- package/Documentation/Globe.html +47 -47
- package/Documentation/GlobeEffect.html +8 -8
- package/Documentation/GlobeIndependentTranslucency.html +10 -10
- package/Documentation/GlobeTranslucency.html +7 -7
- package/Documentation/GoogleEarthEnterpriseImageryProvider.html +29 -29
- package/Documentation/GoogleEarthEnterpriseMapsProvider.html +34 -34
- package/Documentation/GoogleEarthEnterpriseMetadata.html +14 -14
- package/Documentation/GoogleEarthEnterpriseTerrainData.html +7 -7
- package/Documentation/GoogleEarthEnterpriseTerrainProvider.html +15 -15
- package/Documentation/GoogleMapImageryProvider.html +1 -1
- package/Documentation/Graphic.html +31 -31
- package/Documentation/GraphicTransformTool.html +7 -7
- package/Documentation/GraphicsLayer.html +27 -27
- package/Documentation/GregorianDate.html +9 -9
- package/Documentation/GridImageryProvider.html +30 -30
- package/Documentation/GridMaterialProperty.html +11 -11
- package/Documentation/GroundGeometryUpdater.html +3 -3
- package/Documentation/GroundPolylineGeometry.html +7 -7
- package/Documentation/GroundPolylinePrimitive.html +19 -19
- package/Documentation/GroundPrimitive.html +24 -24
- package/Documentation/GroundPrimitiveRectangleGenerater.html +3 -3
- package/Documentation/HashMap.html +12 -12
- package/Documentation/HeadingPitchRange.html +5 -5
- package/Documentation/HeadingPitchRoll.html +13 -13
- package/Documentation/HeightLimited.html +4 -4
- package/Documentation/HeightModelEffect.html +8 -8
- package/Documentation/HeightmapTerrainData.html +7 -7
- package/Documentation/HermitePolynomialApproximation.html +4 -4
- package/Documentation/HermiteSpline.html +12 -12
- package/Documentation/HilbertOrder.html +1 -1
- package/Documentation/HomeButton.html +5 -5
- package/Documentation/HomeButtonViewModel.html +5 -5
- package/Documentation/ImageMaterialProperty.html +10 -10
- package/Documentation/ImageryLayer.html +34 -34
- package/Documentation/ImageryLayerCollection.html +25 -25
- package/Documentation/ImageryLayerFeatureInfo.html +8 -8
- package/Documentation/ImageryProvider.html +88 -28
- package/Documentation/ImprovedNoise.html +1 -1
- package/Documentation/InfoBox.html +6 -6
- package/Documentation/InfoBoxViewModel.html +11 -11
- package/Documentation/IntersectionTests.html +11 -11
- package/Documentation/Intersections2D.html +4 -4
- package/Documentation/Interval.html +3 -3
- package/Documentation/Ion.html +3 -3
- package/Documentation/IonGeocoderService.html +2 -2
- package/Documentation/IonImageryProvider.html +28 -28
- package/Documentation/IonResource.html +39 -39
- package/Documentation/Iso8601.html +4 -4
- package/Documentation/JulianDate.html +31 -31
- package/Documentation/KeyboardCameraController.html +10 -10
- package/Documentation/KmlCamera.html +1 -1
- package/Documentation/KmlDataSource.html +20 -20
- package/Documentation/KmlFeatureData.html +9 -9
- package/Documentation/KmlLookAt.html +1 -1
- package/Documentation/KmlTour.html +12 -12
- package/Documentation/KmlTourFlyTo.html +5 -5
- package/Documentation/KmlTourWait.html +4 -4
- package/Documentation/Label.html +30 -30
- package/Documentation/LabelCollection.html +15 -15
- package/Documentation/LabelGraphics.html +26 -26
- package/Documentation/LabelVisualizer.html +4 -4
- package/Documentation/LagrangePolynomialApproximation.html +3 -3
- package/Documentation/Layers.html +56 -56
- package/Documentation/LeapSecond.html +3 -3
- package/Documentation/Light.html +3 -3
- package/Documentation/LineScanEffect.html +6 -6
- package/Documentation/LinearApproximation.html +3 -3
- package/Documentation/LinearSpline.html +7 -7
- package/Documentation/LonlatProjection.html +4 -4
- package/Documentation/M3DTree.html +11 -11
- package/Documentation/MapGIS3DTile.html +12 -12
- package/Documentation/MapGIS3DTileFeature.html +10 -10
- package/Documentation/MapGIS3DTileset.html +86 -86
- package/Documentation/MapGISCustomImageryProvider.html +29 -29
- package/Documentation/MapGISFeatureGeojsonProvider.html +9 -9
- package/Documentation/MapGISFeatureLayer.html +52 -52
- package/Documentation/MapGISFeatureProvider.html +9 -9
- package/Documentation/MapGISFeatureTilePrimitiveCollection.html +16 -16
- package/Documentation/MapGISGeojsonLayer.html +38 -38
- package/Documentation/MapGISGeojsonProvider.html +8 -8
- package/Documentation/MapGISGeojsonTilePrimitiveCollection.html +16 -16
- package/Documentation/MapGISLabelLayer.html +18 -18
- package/Documentation/MapGISM3D.html +13 -13
- package/Documentation/MapGISM3DSet.html +319 -311
- package/Documentation/MapGISM3DTileContent.html +3 -3
- package/Documentation/MapGISMapServerImageryProvider.html +4 -4
- package/Documentation/MapGISTerrainProvider.html +297 -297
- package/Documentation/MapGISTileAvailability.html +1098 -0
- package/Documentation/MapGISTileServerImageProvider.html +5 -5
- package/Documentation/MapGISVectorGeojsonProvider.html +9 -9
- package/Documentation/MapGISVectorLayer.html +50 -50
- package/Documentation/MapGISVectorProvider.html +9 -9
- package/Documentation/MapGISVectorTilePrimitiveCollection.html +16 -16
- package/Documentation/MapProjection.html +4 -4
- package/Documentation/MapboxImageryProvider.html +29 -29
- package/Documentation/MapboxStyleImageryProvider.html +29 -29
- package/Documentation/Material.html +44 -44
- package/Documentation/MaterialAppearance.MaterialSupport.html +4 -4
- package/Documentation/MaterialAppearance.html +15 -15
- package/Documentation/MaterialProperty.html +6 -6
- package/Documentation/Math.html +76 -76
- package/Documentation/Matrix2.html +41 -41
- package/Documentation/Matrix3.html +56 -56
- package/Documentation/Matrix4.html +76 -76
- package/Documentation/MeasureAreaTool.html +1 -1
- package/Documentation/MeasureLengthTool.html +7 -7
- package/Documentation/MeasureSlopeTool.html +5 -5
- package/Documentation/Model.html +51 -51
- package/Documentation/ModelAnimation.html +12 -12
- package/Documentation/ModelAnimationCollection.html +10 -10
- package/Documentation/ModelEditor.html +1 -1
- package/Documentation/ModelExplosion.html +15 -15
- package/Documentation/ModelFilterTool.html +5 -5
- package/Documentation/ModelGraphics.html +26 -26
- package/Documentation/ModelMaterial.html +5 -5
- package/Documentation/ModelMesh.html +4 -4
- package/Documentation/ModelNode.html +6 -6
- package/Documentation/ModelTransformTool.html +244 -17
- package/Documentation/ModelVisualizer.html +4 -4
- package/Documentation/Moon.html +7 -7
- package/Documentation/NavigationControl.html +1 -1
- package/Documentation/NavigationHelpButton.html +5 -5
- package/Documentation/NavigationHelpButtonViewModel.html +6 -6
- package/Documentation/NavigationTool.html +2 -2
- package/Documentation/NearFarScalar.html +12 -12
- package/Documentation/NeverTileDiscardPolicy.html +3 -3
- package/Documentation/NodeTransformationProperty.html +8 -8
- package/Documentation/Occluder.html +10 -10
- package/Documentation/OpenCageGeocoderService.html +4 -4
- package/Documentation/OpenStreetMapImageryProvider.html +98 -33
- package/Documentation/OpenWeatherImageryProvider.html +2 -2
- package/Documentation/OrientedBoundingBox.html +20 -20
- package/Documentation/OrthographicFrustum.html +14 -14
- package/Documentation/OrthographicOffCenterFrustum.html +13 -13
- package/Documentation/PackableForInterpolation.html +4 -4
- package/Documentation/Particle.html +13 -13
- package/Documentation/ParticleBurst.html +5 -5
- package/Documentation/ParticleEmitter.html +1 -1
- package/Documentation/ParticleSystem.html +29 -29
- package/Documentation/PathGraphics.html +12 -12
- package/Documentation/PathVisualizer.html +4 -4
- package/Documentation/PeliasGeocoderService.html +3 -3
- package/Documentation/PerInstanceColorAppearance.html +15 -15
- package/Documentation/PerformanceWatchdog.html +5 -5
- package/Documentation/PerformanceWatchdogViewModel.html +6 -6
- package/Documentation/PerspectiveFrustum.html +18 -18
- package/Documentation/PerspectiveOffCenterFrustum.html +14 -14
- package/Documentation/PinBuilder.html +5 -5
- package/Documentation/Plane.html +13 -13
- package/Documentation/PlaneGeometry.html +5 -5
- package/Documentation/PlaneGeometryUpdater.html +3 -3
- package/Documentation/PlaneGraphics.html +15 -15
- package/Documentation/PlaneOutlineGeometry.html +5 -5
- package/Documentation/PointCloudShading.html +11 -11
- package/Documentation/PointGraphics.html +15 -15
- package/Documentation/PointPrimitive.html +14 -14
- package/Documentation/PointPrimitiveCollection.html +15 -15
- package/Documentation/PointVisualizer.html +4 -4
- package/Documentation/PolygonGeometry.html +8 -8
- package/Documentation/PolygonGeometryUpdater.html +3 -3
- package/Documentation/PolygonGraphics.html +26 -26
- package/Documentation/PolygonHierarchy.html +3 -3
- package/Documentation/PolygonOutlineGeometry.html +6 -6
- package/Documentation/Polyline.html +8 -8
- package/Documentation/PolylineArrowMaterialProperty.html +7 -7
- package/Documentation/PolylineCollection.html +15 -15
- package/Documentation/PolylineColorAppearance.html +12 -12
- package/Documentation/PolylineDashMaterialProperty.html +10 -10
- package/Documentation/PolylineGeometry.html +5 -5
- package/Documentation/PolylineGeometryUpdater.html +25 -25
- package/Documentation/PolylineGlowMaterialProperty.html +9 -9
- package/Documentation/PolylineGraphics.html +17 -17
- package/Documentation/PolylineMaterialAppearance.html +12 -12
- package/Documentation/PolylineOutlineMaterialProperty.html +9 -9
- package/Documentation/PolylineTrailLinkMaterialProperty.html +1 -1
- package/Documentation/PolylineVisualizer.html +4 -4
- package/Documentation/PolylineVolumeAnimationGeometry.html +14 -14
- package/Documentation/PolylineVolumeGeometry.html +5 -5
- package/Documentation/PolylineVolumeGeometryUpdater.html +3 -3
- package/Documentation/PolylineVolumeGraphics.html +17 -17
- package/Documentation/PolylineVolumeOutlineGeometry.html +5 -5
- package/Documentation/PositionProperty.html +7 -7
- package/Documentation/PositionPropertyArray.html +8 -8
- package/Documentation/PostProcessStage.html +16 -16
- package/Documentation/PostProcessStageCollection.html +13 -13
- package/Documentation/PostProcessStageComposite.html +11 -11
- package/Documentation/PostProcessStageLibrary.html +15 -15
- package/Documentation/Primitive.html +120 -21
- package/Documentation/PrimitiveCollection.html +15 -15
- package/Documentation/ProjectionPicker.html +5 -5
- package/Documentation/ProjectionPickerViewModel.html +13 -13
- package/Documentation/Property.html +5 -5
- package/Documentation/PropertyArray.html +6 -6
- package/Documentation/PropertyBag.html +10 -10
- package/Documentation/ProviderViewModel.html +7 -7
- package/Documentation/Proxy.html +2 -2
- package/Documentation/QuadraticRealPolynomial.html +3 -3
- package/Documentation/QuantizedMeshTerrainData.html +7 -7
- package/Documentation/QuarticRealPolynomial.html +3 -3
- package/Documentation/Quaternion.html +45 -45
- package/Documentation/QuaternionSpline.html +7 -7
- package/Documentation/Queue.html +9 -9
- package/Documentation/RadarMaterialProperty.html +1 -1
- package/Documentation/RadarScanEffect.html +3 -3
- package/Documentation/Ray.html +5 -5
- package/Documentation/ReImg.html +2 -2
- package/Documentation/Rectangle.html +35 -35
- package/Documentation/RectangleGeometry.html +6 -6
- package/Documentation/RectangleGeometryUpdater.html +3 -3
- package/Documentation/RectangleGraphics.html +23 -23
- package/Documentation/RectangleOutlineGeometry.html +5 -5
- package/Documentation/ReferenceProperty.html +13 -13
- package/Documentation/Request.html +14 -14
- package/Documentation/RequestErrorEvent.html +5 -5
- package/Documentation/RequestScheduler.html +5 -5
- package/Documentation/ResetViewNavigationControl.html +7 -7
- package/Documentation/Resource.html +54 -54
- package/Documentation/RoamParticle.html +25 -25
- package/Documentation/RuntimeError.html +4 -4
- package/Documentation/SampleElevationTool.html +2 -2
- package/Documentation/SampledPositionProperty.html +20 -20
- package/Documentation/SampledProperty.html +19 -19
- package/Documentation/Scene.html +119 -119
- package/Documentation/SceneLayer.html +31 -31
- package/Documentation/SceneModePicker.html +5 -5
- package/Documentation/SceneModePickerViewModel.html +15 -15
- package/Documentation/SceneProjector.html +30 -30
- package/Documentation/SceneProjectorEx.html +19 -19
- package/Documentation/SceneTransforms.html +3 -3
- package/Documentation/ScreenSpaceCameraController.html +25 -25
- package/Documentation/ScreenSpaceEventHandler.html +8 -8
- package/Documentation/SearchlightEffect.html +4 -4
- package/Documentation/SelectTool.html +4 -4
- package/Documentation/SelectionIndicator.html +5 -5
- package/Documentation/SelectionIndicatorViewModel.html +12 -12
- package/Documentation/ShadowAnalysis.html +12 -12
- package/Documentation/ShadowMap.html +8 -8
- package/Documentation/ShadowRateAnalysis.html +14 -14
- package/Documentation/ShowGeometryInstanceAttribute.html +6 -6
- package/Documentation/Simon1994PlanetaryPositions.html +3 -3
- package/Documentation/SimplePolylineGeometry.html +5 -5
- package/Documentation/SingleTileImageryProvider.html +29 -29
- package/Documentation/SkyAtmosphere.html +9 -9
- package/Documentation/SkyBox.html +6 -6
- package/Documentation/SkyLineAnalysis.html +3 -3
- package/Documentation/SphereEmitter.html +2 -2
- package/Documentation/SphereGeometry.html +5 -5
- package/Documentation/SphereOutlineGeometry.html +5 -5
- package/Documentation/Spherical.html +13 -13
- package/Documentation/Spline.html +7 -7
- package/Documentation/StableParticle.html +28 -28
- package/Documentation/StripeMaterialProperty.html +11 -11
- package/Documentation/Style.html +26 -26
- package/Documentation/StyleExpression.html +3 -3
- package/Documentation/Sun.html +5 -5
- package/Documentation/SunLight.html +3 -3
- package/Documentation/SvgPathBindingHandler.html +2 -2
- package/Documentation/TaskProcessor.html +5 -5
- package/Documentation/TerrainAnalyse.html +14 -14
- package/Documentation/TerrainData.html +7 -7
- package/Documentation/TerrainProfile.html +4 -4
- package/Documentation/TerrainProvider.html +16 -16
- package/Documentation/Texture3D.html +1 -1
- package/Documentation/ThemeManager.html +14 -14
- package/Documentation/TiandituImageryProvider.html +4 -4
- package/Documentation/TileAvailability.html +6 -6
- package/Documentation/TileCoordinatesImageryProvider.html +28 -28
- package/Documentation/TileDiscardPolicy.html +3 -3
- package/Documentation/TileMapServiceImageryProvider.html +98 -33
- package/Documentation/TileProviderError.html +12 -12
- package/Documentation/TilingScheme.html +10 -10
- package/Documentation/TimeDynamicImagery.html +6 -6
- package/Documentation/TimeDynamicPointCloud.html +16 -16
- package/Documentation/TimeInterval.html +21 -21
- package/Documentation/TimeIntervalCollection.html +23 -23
- package/Documentation/TimeIntervalCollectionPositionProperty.html +8 -8
- package/Documentation/TimeIntervalCollectionProperty.html +6 -6
- package/Documentation/Timeline.html +6 -6
- package/Documentation/ToggleButtonViewModel.html +4 -4
- package/Documentation/Tooltip.html +5 -5
- package/Documentation/TransactionImplement.html +5 -5
- package/Documentation/Transforms.html +16 -16
- package/Documentation/TranslationRotationScale.html +5 -5
- package/Documentation/TriangulationTool.html +8 -8
- package/Documentation/TridiagonalSystemSolver.html +2 -2
- package/Documentation/TrustedServers.html +5 -5
- package/Documentation/UrlTemplateImageryProvider.html +130 -33
- package/Documentation/UserInterfaceControl.html +10 -10
- package/Documentation/VRButton.html +5 -5
- package/Documentation/VRButtonViewModel.html +8 -8
- package/Documentation/VRTheWorldTerrainProvider.html +13 -13
- package/Documentation/VelocityOrientationProperty.html +7 -7
- package/Documentation/VelocityVectorProperty.html +7 -7
- package/Documentation/VertexFormat.html +18 -18
- package/Documentation/VideoSynchronizer.html +7 -7
- package/Documentation/Viewer.html +56 -56
- package/Documentation/ViewportQuad.html +7 -7
- package/Documentation/ViewshedAnalysis.html +190 -10
- package/Documentation/VisiblityAnalysis.html +13 -13
- package/Documentation/VisualAnalysisManager.html +179 -7
- package/Documentation/Visualizer.html +4 -4
- package/Documentation/VoxelPrimitive.html +9 -9
- package/Documentation/WallGeometry.html +6 -6
- package/Documentation/WallGeometryUpdater.html +3 -3
- package/Documentation/WallGraphics.html +17 -17
- package/Documentation/WallOutlineGeometry.html +6 -6
- package/Documentation/WaterReflection.html +9 -9
- package/Documentation/WeatherEffect.html +8 -8
- package/Documentation/WebMapServiceImageryProvider.html +36 -36
- package/Documentation/WebMapTileServiceImageryProvider.html +33 -33
- package/Documentation/WebMercatorProjection.html +97 -7
- package/Documentation/WebMercatorTilingScheme.html +10 -10
- package/Documentation/WeightSpline.html +7 -7
- package/Documentation/WfsProvider.html +9 -9
- package/Documentation/Wind3D.html +13 -13
- package/Documentation/WindowLightEffect.html +4 -4
- package/Documentation/ZoomNavigationControl.html +5 -5
- package/Documentation/global.html +141 -141
- package/Documentation/global.html#ArcType +4 -4
- package/Documentation/global.html#Axis +11 -11
- package/Documentation/global.html#BaiduProject +19 -19
- package/Documentation/global.html#BingMapsStyle +11 -11
- package/Documentation/global.html#BlendEquation +6 -6
- package/Documentation/global.html#BlendFunction +16 -16
- package/Documentation/global.html#BlendOption +4 -4
- package/Documentation/global.html#CameraEventType +6 -6
- package/Documentation/global.html#Cesium3DTileColorBlendMode +4 -4
- package/Documentation/global.html#ClassificationType +4 -4
- package/Documentation/global.html#ClippingGeometryType +8 -8
- package/Documentation/global.html#ClockRange +4 -4
- package/Documentation/global.html#ClockStep +4 -4
- package/Documentation/global.html#ColorBlendMode +4 -4
- package/Documentation/global.html#ComponentDatatype +15 -15
- package/Documentation/global.html#CoordnateTransform +6 -6
- package/Documentation/global.html#CornerType +4 -4
- package/Documentation/global.html#CullFace +4 -4
- package/Documentation/global.html#DepthFunction +9 -9
- package/Documentation/global.html#ExtrapolationType +4 -4
- package/Documentation/global.html#GeocodeType +3 -3
- package/Documentation/global.html#HeightReference +4 -4
- package/Documentation/global.html#HeightmapEncoding +3 -3
- package/Documentation/global.html#HorizontalOrigin +4 -4
- package/Documentation/global.html#ImagerySplitDirection +4 -4
- package/Documentation/global.html#IndexDatatype +9 -9
- package/Documentation/global.html#InterceptorsUtil +1 -1
- package/Documentation/global.html#Intersect +4 -4
- package/Documentation/global.html#IonWorldImageryStyle +4 -4
- package/Documentation/global.html#KeyboardEventModifier +4 -4
- package/Documentation/global.html#LabelStyle +4 -4
- package/Documentation/global.html#LightingMode +3 -3
- package/Documentation/global.html#MapGISCustomTilingScheme +16 -16
- package/Documentation/global.html#MapMode2D +3 -3
- package/Documentation/global.html#ModelAnimationLoop +4 -4
- package/Documentation/global.html#ModelExplosionType +5 -5
- package/Documentation/global.html#OutlineRenderMode +4 -4
- package/Documentation/global.html#Pass +17 -17
- package/Documentation/global.html#PixelDatatype +10 -10
- package/Documentation/global.html#PixelFormat +21 -21
- package/Documentation/global.html#PointLight +1 -1
- package/Documentation/global.html#PostProcessStageSampleMode +3 -3
- package/Documentation/global.html#PrimitiveType +8 -8
- package/Documentation/global.html#ReferenceFrame +3 -3
- package/Documentation/global.html#RequestState +7 -7
- package/Documentation/global.html#RequestType +5 -5
- package/Documentation/global.html#SceneMode +6 -6
- package/Documentation/global.html#ScreenSpaceEventType +16 -16
- package/Documentation/global.html#SectionRender +1 -1
- package/Documentation/global.html#ShadowMode +5 -5
- package/Documentation/global.html#ShadowRateDrawCommand +3 -3
- package/Documentation/global.html#SpotLight +1 -1
- package/Documentation/global.html#Spyglass +1 -1
- package/Documentation/global.html#StencilFunction +9 -9
- package/Documentation/global.html#StencilOperation +9 -9
- package/Documentation/global.html#StripeOrientation +3 -3
- package/Documentation/global.html#SwipeModeType +7 -7
- package/Documentation/global.html#SwiperController +1 -1
- package/Documentation/global.html#TextureMagnificationFilter +3 -3
- package/Documentation/global.html#TextureMinificationFilter +7 -7
- package/Documentation/global.html#TimeStandard +3 -3
- package/Documentation/global.html#TopoJSONUtil +1 -1
- package/Documentation/global.html#UrlUtil +1 -1
- package/Documentation/global.html#VerticalOrigin +5 -5
- package/Documentation/global.html#Visibility +4 -4
- package/Documentation/global.html#WebGLConstants +583 -583
- package/Documentation/global.html#WindingOrder +3 -3
- package/Documentation/global.html#XmlUtil +137 -2
- package/Documentation/global.html#angle +1 -1
- package/Documentation/global.html#barycentricCoordinates +1 -1
- package/Documentation/global.html#binarySearch +1 -1
- package/Documentation/global.html#binarySearchComparator +1 -1
- package/Documentation/global.html#buildModuleUrl +3 -3
- package/Documentation/global.html#cancelAnimationFrame +1 -1
- package/Documentation/global.html#clippingFillImage +1 -1
- package/Documentation/global.html#clone +1 -1
- package/Documentation/global.html#color +3 -3
- package/Documentation/global.html#combine +1 -1
- package/Documentation/global.html#createCommand +1 -1
- package/Documentation/global.html#createCommonTileInfo +3 -1
- package/Documentation/global.html#createElevationBandMaterial +1 -1
- package/Documentation/global.html#createElevationBandMaterialBand +1 -1
- package/Documentation/global.html#createElevationBandMaterialEntry +1 -1
- package/Documentation/global.html#createGuid +1 -1
- package/Documentation/global.html#createOsmBuildings +1 -1
- package/Documentation/global.html#createTangentSpaceDebugPrimitive +1 -1
- package/Documentation/global.html#createWorldImagery +1 -1
- package/Documentation/global.html#createWorldTerrain +1 -1
- package/Documentation/global.html#decay +2 -2
- package/Documentation/global.html#defaultValue +2 -2
- package/Documentation/global.html#defined +1 -1
- package/Documentation/global.html#destroyObject +1 -1
- package/Documentation/global.html#direction +2 -2
- package/Documentation/global.html#distance +2 -2
- package/Documentation/global.html#enableExplosion +1 -1
- package/Documentation/global.html#exportKml +1 -1
- package/Documentation/global.html#exportKmlModelCallback +1 -1
- package/Documentation/global.html#exportKmlResultKml +1 -1
- package/Documentation/global.html#exportKmlResultKmz +1 -1
- package/Documentation/global.html#formatError +1 -1
- package/Documentation/global.html#getAbsoluteUri +1 -1
- package/Documentation/global.html#getBaseUri +1 -1
- package/Documentation/global.html#getExtensionFromUri +1 -1
- package/Documentation/global.html#getFilenameFromUri +1 -1
- package/Documentation/global.html#getImagePixels +1 -1
- package/Documentation/global.html#getLayerToUse +150 -0
- package/Documentation/global.html#getTimestamp +1 -1
- package/Documentation/global.html#getViewModel +1 -1
- package/Documentation/global.html#hasText +1 -1
- package/Documentation/global.html#id +3 -3
- package/Documentation/global.html#intensity +3 -3
- package/Documentation/global.html#isGeographic +1 -1
- package/Documentation/global.html#isLeapYear +1 -1
- package/Documentation/global.html#mergeSort +1 -1
- package/Documentation/global.html#mergeSortComparator +1 -1
- package/Documentation/global.html#objectToQuery +1 -1
- package/Documentation/global.html#penumbra +1 -1
- package/Documentation/global.html#pointInsideTriangle +1 -1
- package/Documentation/global.html#position +2 -2
- package/Documentation/global.html#queryToObject +1 -1
- package/Documentation/global.html#requestAnimationFrame +1 -1
- package/Documentation/global.html#requestAnimationFrameCallback +1 -1
- package/Documentation/global.html#sampleTerrain +1 -1
- package/Documentation/global.html#sampleTerrainMostDetailed +1 -1
- package/Documentation/global.html#show +1 -1
- package/Documentation/global.html#startTime +1 -1
- package/Documentation/global.html#subdivideArray +1 -1
- package/Documentation/global.html#terrainProvider +1 -1
- package/Documentation/global.html#viewerCesium3DTilesInspectorMixin +1 -1
- package/Documentation/global.html#viewerCesiumInspectorMixin +1 -1
- package/Documentation/global.html#viewerDragDropMixin +8 -8
- package/Documentation/global.html#viewerPerformanceWatchdogMixin +1 -1
- package/Documentation/global.html#writeTextToCanvas +1 -1
- package/Documentation/types.txt +1 -1
- package/README.md +91 -25
- package/dist/Cesium.d.ts +719 -84
- package/dist/Cesium.js +298 -19
- package/dist/Workers/Color-ff1fdef4.js +1 -0
- package/dist/Workers/PrimitivePipeline-a7cf99d1.js +1 -0
- package/dist/Workers/combineGeometry.js +1 -1
- package/dist/Workers/createBoxGeometry.js +1 -1
- package/dist/Workers/createBoxOutlineGeometry.js +1 -1
- package/dist/Workers/createCircleGeometry.js +1 -1
- package/dist/Workers/createCircleOutlineGeometry.js +1 -1
- package/dist/Workers/createCoplanarPolygonGeometry.js +1 -1
- package/dist/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/dist/Workers/createCorridorGeometry.js +1 -1
- package/dist/Workers/createCorridorOutlineGeometry.js +1 -1
- package/dist/Workers/createCylinderGeometry.js +1 -1
- package/dist/Workers/createCylinderOutlineGeometry.js +1 -1
- package/dist/Workers/createEllipseGeometry.js +1 -1
- package/dist/Workers/createEllipseOutlineGeometry.js +1 -1
- package/dist/Workers/createEllipsoidGeometry.js +1 -1
- package/dist/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/dist/Workers/createFrustumGeometry.js +1 -1
- package/dist/Workers/createFrustumOutlineGeometry.js +1 -1
- package/dist/Workers/createGeometry.js +1 -1
- package/dist/Workers/createGroundPolylineGeometry.js +1 -1
- package/dist/Workers/createPlaneGeometry.js +1 -1
- package/dist/Workers/createPlaneOutlineGeometry.js +1 -1
- package/dist/Workers/createPolygonGeometry.js +1 -1
- package/dist/Workers/createPolygonOutlineGeometry.js +1 -1
- package/dist/Workers/createPolylineGeometry.js +1 -1
- package/dist/Workers/createPolylineVolumeGeometry.js +1 -1
- package/dist/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
- package/dist/Workers/createRectangleGeometry.js +1 -1
- package/dist/Workers/createRectangleOutlineGeometry.js +1 -1
- package/dist/Workers/createSimplePolylineGeometry.js +1 -1
- package/dist/Workers/createSphereGeometry.js +1 -1
- package/dist/Workers/createSphereOutlineGeometry.js +1 -1
- package/dist/Workers/createVectorTileGeometries.js +1 -1
- package/dist/Workers/createVectorTilePolygons.js +1 -1
- package/dist/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
- package/dist/Workers/createVerticesFromHeightmap.js +1 -1
- package/dist/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
- package/dist/Workers/createWallGeometry.js +1 -1
- package/dist/Workers/createWallOutlineGeometry.js +1 -1
- package/dist/Workers/uncompressZip.js +1 -1
- package/dist/Workers/upsampleQuantizedTerrainMesh.js +1 -1
- package/package.json +1 -1
- package/Documentation/M3DTile.html +0 -854
- package/Documentation/M3DTileFeature.html +0 -1113
- package/Documentation/M3DTileset.html +0 -4589
- package/Documentation/global.html#inherits +0 -150
- package/dist/ThirdParty/unzip.min.js +0 -1
- package/dist/Workers/AttributeCompression-7a920947.js +0 -1
- package/dist/Workers/AttributeCompression-b9605c73.js +0 -1
- package/dist/Workers/AttributeCompression-ceaf1f7d.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-3005be1a.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-6524b214.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-73a9d462.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-cf02d6c7.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-d2a93b66.js +0 -1
- package/dist/Workers/AxisAlignedBoundingBox-fe8fad3e.js +0 -1
- package/dist/Workers/BoundingRectangle-2bb5d73d.js +0 -1
- package/dist/Workers/BoundingRectangle-487613f3.js +0 -1
- package/dist/Workers/BoundingRectangle-7f4e0022.js +0 -1
- package/dist/Workers/BoundingRectangle-8d042be0.js +0 -1
- package/dist/Workers/BoundingRectangle-b3ae8525.js +0 -1
- package/dist/Workers/BoundingRectangle-ce593811.js +0 -1
- package/dist/Workers/BoxGeometry-2d60329e.js +0 -1
- package/dist/Workers/BoxGeometry-3726be8b.js +0 -1
- package/dist/Workers/BoxGeometry-76f70c3f.js +0 -1
- package/dist/Workers/BoxGeometry-91ce90fe.js +0 -1
- package/dist/Workers/BoxGeometry-d1b4ef4f.js +0 -1
- package/dist/Workers/BoxGeometry-f55ff093.js +0 -1
- package/dist/Workers/Cartesian2-078e6458.js +0 -1
- package/dist/Workers/Cartesian2-c1eb9da0.js +0 -1
- package/dist/Workers/Check-f996273c.js +0 -1
- package/dist/Workers/Color-3aa21182.js +0 -1
- package/dist/Workers/Color-527894a9.js +0 -1
- package/dist/Workers/Color-68105b00.js +0 -1
- package/dist/Workers/Color-d7f86623.js +0 -1
- package/dist/Workers/Color-e9b0b56b.js +0 -1
- package/dist/Workers/Color-fb7b0391.js +0 -1
- package/dist/Workers/ComponentDatatype-e44126e4.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-4529853e.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-bd04145a.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-c9ea5c4a.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-cd63dc83.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-df225097.js +0 -1
- package/dist/Workers/CoplanarPolygonGeometryLibrary-ed9489b1.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-259dc831.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-353eec0a.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-4c3150e8.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-6546be88.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-83c470f2.js +0 -1
- package/dist/Workers/CorridorGeometryLibrary-90fffecc.js +0 -1
- package/dist/Workers/CylinderGeometry-325283f2.js +0 -1
- package/dist/Workers/CylinderGeometry-5f25fc13.js +0 -1
- package/dist/Workers/CylinderGeometry-6c32efdc.js +0 -1
- package/dist/Workers/CylinderGeometry-7cfc0752.js +0 -1
- package/dist/Workers/CylinderGeometry-a8375e63.js +0 -1
- package/dist/Workers/CylinderGeometry-c16b0480.js +0 -1
- package/dist/Workers/CylinderGeometryLibrary-88cb80d2.js +0 -1
- package/dist/Workers/EllipseGeometry-4dc2f3cd.js +0 -1
- package/dist/Workers/EllipseGeometry-5bc7efb7.js +0 -1
- package/dist/Workers/EllipseGeometry-7ba3aa6f.js +0 -1
- package/dist/Workers/EllipseGeometry-9a5145f6.js +0 -1
- package/dist/Workers/EllipseGeometry-a00d9fde.js +0 -1
- package/dist/Workers/EllipseGeometry-d5153296.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-46efe941.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-4c7e22bb.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-716ccbc1.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-8b1f8e47.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-9dd8ed16.js +0 -1
- package/dist/Workers/EllipseGeometryLibrary-cde71e7f.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-18088f7f.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-5b7ad7d6.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-72c1fd73.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-97648130.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-c0b0a9a4.js +0 -1
- package/dist/Workers/EllipseOutlineGeometry-e46b4af5.js +0 -1
- package/dist/Workers/EllipsoidGeodesic-2992081b.js +0 -1
- package/dist/Workers/EllipsoidGeodesic-a0581819.js +0 -1
- package/dist/Workers/EllipsoidGeodesic-e1197ec2.js +0 -1
- package/dist/Workers/EllipsoidGeometry-5af792d2.js +0 -1
- package/dist/Workers/EllipsoidGeometry-751dd3dc.js +0 -1
- package/dist/Workers/EllipsoidGeometry-9c399bf7.js +0 -1
- package/dist/Workers/EllipsoidGeometry-ad61339f.js +0 -1
- package/dist/Workers/EllipsoidGeometry-d0a3d570.js +0 -1
- package/dist/Workers/EllipsoidGeometry-d28fa7b5.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-14372733.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-34940155.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-8ca051b2.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-aa49f341.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-bf6fec74.js +0 -1
- package/dist/Workers/EllipsoidOutlineGeometry-f557c9da.js +0 -1
- package/dist/Workers/EllipsoidRhumbLine-2fd480f5.js +0 -1
- package/dist/Workers/EllipsoidRhumbLine-809f5074.js +0 -1
- package/dist/Workers/EllipsoidRhumbLine-d9133c69.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-2b15994f.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-67eb8fd7.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-7e7cce04.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-badcc339.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-d5fd24ed.js +0 -1
- package/dist/Workers/EllipsoidTangentPlane-eed317db.js +0 -1
- package/dist/Workers/EncodedCartesian3-6f721b97.js +0 -1
- package/dist/Workers/EncodedCartesian3-9b5052a5.js +0 -1
- package/dist/Workers/EncodedCartesian3-ac19e14b.js +0 -1
- package/dist/Workers/FrustumGeometry-38234739.js +0 -1
- package/dist/Workers/FrustumGeometry-697158a6.js +0 -1
- package/dist/Workers/FrustumGeometry-705dc598.js +0 -1
- package/dist/Workers/FrustumGeometry-7cc95152.js +0 -1
- package/dist/Workers/FrustumGeometry-a0988373.js +0 -1
- package/dist/Workers/FrustumGeometry-bf3f376b.js +0 -1
- package/dist/Workers/FullArray.js +0 -1
- package/dist/Workers/GeometryAttribute-51995e5a.js +0 -1
- package/dist/Workers/GeometryAttribute-8106b887.js +0 -1
- package/dist/Workers/GeometryAttribute-9cc31675.js +0 -1
- package/dist/Workers/GeometryAttribute-ccf4e0b6.js +0 -1
- package/dist/Workers/GeometryAttribute-e03451d8.js +0 -1
- package/dist/Workers/GeometryAttribute-e89ef932.js +0 -1
- package/dist/Workers/GeometryInstance-083d7584.js +0 -1
- package/dist/Workers/GeometryInstance-3287a41d.js +0 -1
- package/dist/Workers/GeometryInstance-5729d1a7.js +0 -1
- package/dist/Workers/GeometryInstance-75eda02f.js +0 -1
- package/dist/Workers/GeometryInstance-a24fc358.js +0 -1
- package/dist/Workers/GeometryInstance-a29ed6fd.js +0 -1
- package/dist/Workers/GeometryOffsetAttribute-b02d5bb9.js +0 -1
- package/dist/Workers/GeometryPipeline-160871a5.js +0 -1
- package/dist/Workers/GeometryPipeline-21c7c817.js +0 -1
- package/dist/Workers/GeometryPipeline-46833021.js +0 -1
- package/dist/Workers/GeometryPipeline-64734a0f.js +0 -1
- package/dist/Workers/GeometryPipeline-868a22d5.js +0 -1
- package/dist/Workers/GeometryPipeline-dd278883.js +0 -1
- package/dist/Workers/IndexDatatype-516320ea.js +0 -1
- package/dist/Workers/IntersectionTests-318fd637.js +0 -1
- package/dist/Workers/IntersectionTests-46ce3a3a.js +0 -1
- package/dist/Workers/IntersectionTests-5403be00.js +0 -1
- package/dist/Workers/IntersectionTests-7cdfef0c.js +0 -1
- package/dist/Workers/IntersectionTests-ca6d4041.js +0 -1
- package/dist/Workers/IntersectionTests-f3d5850d.js +0 -1
- package/dist/Workers/Math-5bbcea10.js +0 -1
- package/dist/Workers/Matrix2-10a61a55.js +0 -1
- package/dist/Workers/OrientedBoundingBox-2f174fe3.js +0 -1
- package/dist/Workers/OrientedBoundingBox-6c372bbc.js +0 -1
- package/dist/Workers/OrientedBoundingBox-6eb17dbb.js +0 -1
- package/dist/Workers/OrientedBoundingBox-6ff47a8a.js +0 -1
- package/dist/Workers/OrientedBoundingBox-a6a4c32b.js +0 -1
- package/dist/Workers/OrientedBoundingBox-d8d60f95.js +0 -1
- package/dist/Workers/Plane-0ec594f2.js +0 -1
- package/dist/Workers/Plane-0f30f65b.js +0 -1
- package/dist/Workers/Plane-d53c8e90.js +0 -1
- package/dist/Workers/Plane-f7823f4c.js +0 -1
- package/dist/Workers/Plane-fa12edbb.js +0 -1
- package/dist/Workers/Plane-fa98d6ca.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-1b173d8c.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-2394a24c.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-336d42f5.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-5bb2def1.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-c4287ef2.js +0 -1
- package/dist/Workers/PolygonGeometryLibrary-e7ef9273.js +0 -1
- package/dist/Workers/PolygonPipeline-01006d79.js +0 -1
- package/dist/Workers/PolygonPipeline-19b66f06.js +0 -1
- package/dist/Workers/PolygonPipeline-37a33a39.js +0 -1
- package/dist/Workers/PolygonPipeline-5983aa11.js +0 -1
- package/dist/Workers/PolygonPipeline-7c54e19e.js +0 -1
- package/dist/Workers/PolygonPipeline-d1b4c320.js +0 -1
- package/dist/Workers/PolylinePipeline-45329d56.js +0 -1
- package/dist/Workers/PolylinePipeline-6484d4ee.js +0 -1
- package/dist/Workers/PolylinePipeline-971ba240.js +0 -1
- package/dist/Workers/PolylinePipeline-d5024385.js +0 -1
- package/dist/Workers/PolylinePipeline-d59947c4.js +0 -1
- package/dist/Workers/PolylinePipeline-eeb6f648.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-2f82c4db.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-81481506.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-955f4335.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-d57282e3.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-e2e6c33b.js +0 -1
- package/dist/Workers/PolylineVolumeGeometryLibrary-e435332a.js +0 -1
- package/dist/Workers/PrimitivePipeline-100ea173.js +0 -1
- package/dist/Workers/PrimitivePipeline-757ec521.js +0 -1
- package/dist/Workers/PrimitivePipeline-928d43fe.js +0 -1
- package/dist/Workers/PrimitivePipeline-986742a6.js +0 -1
- package/dist/Workers/PrimitivePipeline-9deb0937.js +0 -1
- package/dist/Workers/PrimitivePipeline-b3cc986b.js +0 -1
- package/dist/Workers/PrimitivePipeline-ed7c0918.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-02221243.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-336b3589.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-3c449dce.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-44075333.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-9e402320.js +0 -1
- package/dist/Workers/RectangleGeometryLibrary-af611323.js +0 -1
- package/dist/Workers/RuntimeError-ac2797b4.js +0 -1
- package/dist/Workers/TerrainEncoding-03f4779b.js +0 -1
- package/dist/Workers/TerrainEncoding-652abf1d.js +0 -1
- package/dist/Workers/TerrainEncoding-6f894d6e.js +0 -1
- package/dist/Workers/TerrainEncoding-7ea7a6aa.js +0 -1
- package/dist/Workers/TerrainEncoding-a621a0f9.js +0 -1
- package/dist/Workers/TerrainEncoding-d2f48ea1.js +0 -1
- package/dist/Workers/Transforms-1fa85493.js +0 -1
- package/dist/Workers/Transforms-5aeb1d5e.js +0 -1
- package/dist/Workers/Transforms-70ded1e8.js +0 -1
- package/dist/Workers/Transforms-713e2e92.js +0 -1
- package/dist/Workers/Transforms-8c8e0c6f.js +0 -1
- package/dist/Workers/Transforms-984eb057.js +0 -1
- package/dist/Workers/VertexFormat-90d15264.js +0 -1
- package/dist/Workers/WallGeometryLibrary-40d299b6.js +0 -1
- package/dist/Workers/WallGeometryLibrary-5386b8d1.js +0 -1
- package/dist/Workers/WallGeometryLibrary-62af8286.js +0 -1
- package/dist/Workers/WallGeometryLibrary-8e2f0582.js +0 -1
- package/dist/Workers/WallGeometryLibrary-c815a7b8.js +0 -1
- package/dist/Workers/WallGeometryLibrary-fcee93b1.js +0 -1
- package/dist/Workers/WebMercatorProjection-941959a9.js +0 -1
- package/dist/Workers/WebMercatorProjection-9d47817f.js +0 -1
- package/dist/Workers/WebMercatorProjection-e6de5e67.js +0 -1
- package/dist/Workers/arrayRemoveDuplicates-bdf50aa0.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-713e2e92","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./CylinderGeometryLibrary-88cb80d2","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-e03451d8","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(t,P,k,M,z,E,N,e,I,U,S,B,m){"use strict";var Y=new M.Cartesian2,Z=new M.Cartesian3,J=new M.Cartesian3,W=new M.Cartesian3,j=new M.Cartesian3;function u(t){var e=(t=N.defaultValue(t,N.defaultValue.EMPTY_OBJECT)).length,a=t.topRadius,r=t.bottomRadius,n=N.defaultValue(t.vertexFormat,m.VertexFormat.DEFAULT),o=N.defaultValue(t.slices,128);this._length=e,this._topRadius=a,this._bottomRadius=r,this._vertexFormat=m.VertexFormat.clone(n),this._slices=o,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}u.packedLength=m.VertexFormat.packedLength+5,u.pack=function(t,e,a){return a=N.defaultValue(a,0),m.VertexFormat.pack(t._vertexFormat,e,a),a+=m.VertexFormat.packedLength,e[a++]=t._length,e[a++]=t._topRadius,e[a++]=t._bottomRadius,e[a++]=t._slices,e[a]=N.defaultValue(t._offsetAttribute,-1),e};var a,d=new m.VertexFormat,p={vertexFormat:d,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};u.unpack=function(t,e,a){e=N.defaultValue(e,0);var r=m.VertexFormat.unpack(t,e,d),n=(e+=m.VertexFormat.packedLength,t[e++]),o=t[e++],i=t[e++],s=t[e++],t=t[e];return N.defined(a)?(a._vertexFormat=m.VertexFormat.clone(r,a._vertexFormat),a._length=n,a._topRadius=o,a._bottomRadius=i,a._slices=s,a._offsetAttribute=-1===t?void 0:t,a):(p.length=n,p.topRadius=o,p.bottomRadius=i,p.slices=s,p.offsetAttribute=-1===t?void 0:t,new u(p))},u.createGeometry=function(t){var e=t._length,a=t._topRadius,r=t._bottomRadius,n=t._vertexFormat,o=t._slices;if(!(e<=0||a<0||r<0||0===a&&0===r)){var i=o+o,s=o+i,m=i+i,u=E.CylinderGeometryLibrary.computePositions(e,a,r,o,!0),d=n.st?new Float32Array(2*m):void 0,p=n.normal?new Float32Array(3*m):void 0,y=n.tangent?new Float32Array(3*m):void 0,l=n.bitangent?new Float32Array(3*m):void 0,f=n.normal||n.tangent||n.bitangent;if(f){for(var b=n.tangent||n.bitangent,c=0,A=0,v=0,g=Math.atan2(r-a,e),h=Z,x=(h.z=Math.sin(g),Math.cos(g)),_=W,C=J,F=0;F<o;F++){var w=F/o*B.CesiumMath.TWO_PI,G=x*Math.cos(w),w=x*Math.sin(w);f&&(h.x=G,h.y=w,b&&(_=M.Cartesian3.normalize(M.Cartesian3.cross(M.Cartesian3.UNIT_Z,h,_),_)),n.normal&&(p[c++]=h.x,p[c++]=h.y,p[c++]=h.z,p[c++]=h.x,p[c++]=h.y,p[c++]=h.z),n.tangent&&(y[A++]=_.x,y[A++]=_.y,y[A++]=_.z,y[A++]=_.x,y[A++]=_.y,y[A++]=_.z),n.bitangent)&&(C=M.Cartesian3.normalize(M.Cartesian3.cross(h,_,C),C),l[v++]=C.x,l[v++]=C.y,l[v++]=C.z,l[v++]=C.x,l[v++]=C.y,l[v++]=C.z)}for(F=0;F<o;F++)n.normal&&(p[c++]=0,p[c++]=0,p[c++]=-1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=-1,l[v++]=0);for(F=0;F<o;F++)n.normal&&(p[c++]=0,p[c++]=0,p[c++]=1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=1,l[v++]=0)}var D=S.IndexDatatype.createTypedArray(m,12*o-12),R=0,V=0;for(F=0;F<o-1;F++)D[R++]=V,D[R++]=V+2,D[R++]=V+3,D[R++]=V,D[R++]=V+3,D[R++]=V+1,V+=2;for(D[R++]=i-2,D[R++]=0,D[R++]=1,D[R++]=i-2,D[R++]=1,D[R++]=i-1,F=1;F<o-1;F++)D[R++]=i+F+1,D[R++]=i+F,D[R++]=i;for(F=1;F<o-1;F++)D[R++]=s,D[R++]=s+F,D[R++]=s+F+1;var T=0;if(n.st){var O=Math.max(a,r);for(F=0;F<m;F++){var L=M.Cartesian3.fromArray(u,3*F,j);d[T++]=(L.x+O)/(2*O),d[T++]=(L.y+O)/(2*O)}}g=new U.GeometryAttributes,r=(n.position&&(g.position=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u})),n.normal&&(g.normal=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:p})),n.tangent&&(g.tangent=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),n.bitangent&&(g.bitangent=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:l})),n.st&&(g.st=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:d})),Y.x=.5*e,Y.y=Math.max(r,a),new k.BoundingSphere(M.Cartesian3.ZERO,M.Cartesian2.magnitude(Y)));return N.defined(t._offsetAttribute)&&(e=u.length,a=new Uint8Array(e/3),e=t._offsetAttribute===P.GeometryOffsetAttribute.NONE?0:1,P.arrayFill(a,e),g.applyOffset=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),new I.Geometry({attributes:g,indices:D,primitiveType:I.PrimitiveType.TRIANGLES,boundingSphere:r,offsetAttribute:t._offsetAttribute})}},u.getUnitCylinder=function(){return a=N.defined(a)?a:u.createGeometry(new u({topRadius:1,bottomRadius:1,length:1,vertexFormat:m.VertexFormat.POSITION_ONLY}))},t.CylinderGeometry=u});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-5aeb1d5e","./Cartesian2-078e6458","./ComponentDatatype-e44126e4","./CylinderGeometryLibrary-88cb80d2","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-ccf4e0b6","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(t,P,k,M,z,E,N,e,I,U,S,B,m){"use strict";var Y=new M.Cartesian2,Z=new M.Cartesian3,J=new M.Cartesian3,W=new M.Cartesian3,j=new M.Cartesian3;function u(t){var e=(t=N.defaultValue(t,N.defaultValue.EMPTY_OBJECT)).length,a=t.topRadius,r=t.bottomRadius,n=N.defaultValue(t.vertexFormat,m.VertexFormat.DEFAULT),o=N.defaultValue(t.slices,128);this._length=e,this._topRadius=a,this._bottomRadius=r,this._vertexFormat=m.VertexFormat.clone(n),this._slices=o,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}u.packedLength=m.VertexFormat.packedLength+5,u.pack=function(t,e,a){return a=N.defaultValue(a,0),m.VertexFormat.pack(t._vertexFormat,e,a),a+=m.VertexFormat.packedLength,e[a++]=t._length,e[a++]=t._topRadius,e[a++]=t._bottomRadius,e[a++]=t._slices,e[a]=N.defaultValue(t._offsetAttribute,-1),e};var a,p=new m.VertexFormat,d={vertexFormat:p,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};u.unpack=function(t,e,a){e=N.defaultValue(e,0);var r=m.VertexFormat.unpack(t,e,p),n=(e+=m.VertexFormat.packedLength,t[e++]),o=t[e++],i=t[e++],s=t[e++],t=t[e];return N.defined(a)?(a._vertexFormat=m.VertexFormat.clone(r,a._vertexFormat),a._length=n,a._topRadius=o,a._bottomRadius=i,a._slices=s,a._offsetAttribute=-1===t?void 0:t,a):(d.length=n,d.topRadius=o,d.bottomRadius=i,d.slices=s,d.offsetAttribute=-1===t?void 0:t,new u(d))},u.createGeometry=function(t){var e=t._length,a=t._topRadius,r=t._bottomRadius,n=t._vertexFormat,o=t._slices;if(!(e<=0||a<0||r<0||0===a&&0===r)){var i=o+o,s=o+i,m=i+i,u=E.CylinderGeometryLibrary.computePositions(e,a,r,o,!0),p=n.st?new Float32Array(2*m):void 0,d=n.normal?new Float32Array(3*m):void 0,y=n.tangent?new Float32Array(3*m):void 0,l=n.bitangent?new Float32Array(3*m):void 0,f=n.normal||n.tangent||n.bitangent;if(f){for(var b=n.tangent||n.bitangent,c=0,A=0,v=0,g=Math.atan2(r-a,e),h=Z,x=(h.z=Math.sin(g),Math.cos(g)),_=W,C=J,F=0;F<o;F++){var w=F/o*B.CesiumMath.TWO_PI,G=x*Math.cos(w),w=x*Math.sin(w);f&&(h.x=G,h.y=w,b&&(_=M.Cartesian3.normalize(M.Cartesian3.cross(M.Cartesian3.UNIT_Z,h,_),_)),n.normal&&(d[c++]=h.x,d[c++]=h.y,d[c++]=h.z,d[c++]=h.x,d[c++]=h.y,d[c++]=h.z),n.tangent&&(y[A++]=_.x,y[A++]=_.y,y[A++]=_.z,y[A++]=_.x,y[A++]=_.y,y[A++]=_.z),n.bitangent)&&(C=M.Cartesian3.normalize(M.Cartesian3.cross(h,_,C),C),l[v++]=C.x,l[v++]=C.y,l[v++]=C.z,l[v++]=C.x,l[v++]=C.y,l[v++]=C.z)}for(F=0;F<o;F++)n.normal&&(d[c++]=0,d[c++]=0,d[c++]=-1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=-1,l[v++]=0);for(F=0;F<o;F++)n.normal&&(d[c++]=0,d[c++]=0,d[c++]=1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=1,l[v++]=0)}var D=S.IndexDatatype.createTypedArray(m,12*o-12),R=0,V=0;for(F=0;F<o-1;F++)D[R++]=V,D[R++]=V+2,D[R++]=V+3,D[R++]=V,D[R++]=V+3,D[R++]=V+1,V+=2;for(D[R++]=i-2,D[R++]=0,D[R++]=1,D[R++]=i-2,D[R++]=1,D[R++]=i-1,F=1;F<o-1;F++)D[R++]=i+F+1,D[R++]=i+F,D[R++]=i;for(F=1;F<o-1;F++)D[R++]=s,D[R++]=s+F,D[R++]=s+F+1;var T=0;if(n.st){var O=Math.max(a,r);for(F=0;F<m;F++){var L=M.Cartesian3.fromArray(u,3*F,j);p[T++]=(L.x+O)/(2*O),p[T++]=(L.y+O)/(2*O)}}g=new U.GeometryAttributes,r=(n.position&&(g.position=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u})),n.normal&&(g.normal=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),n.tangent&&(g.tangent=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),n.bitangent&&(g.bitangent=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:l})),n.st&&(g.st=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),Y.x=.5*e,Y.y=Math.max(r,a),new k.BoundingSphere(M.Cartesian3.ZERO,M.Cartesian2.magnitude(Y)));return N.defined(t._offsetAttribute)&&(e=u.length,a=new Uint8Array(e/3),e=t._offsetAttribute===P.GeometryOffsetAttribute.NONE?0:1,P.arrayFill(a,e),g.applyOffset=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),new I.Geometry({attributes:g,indices:D,primitiveType:I.PrimitiveType.TRIANGLES,boundingSphere:r,offsetAttribute:t._offsetAttribute})}},u.getUnitCylinder=function(){return a=N.defined(a)?a:u.createGeometry(new u({topRadius:1,bottomRadius:1,length:1,vertexFormat:m.VertexFormat.POSITION_ONLY}))},t.CylinderGeometry=u});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-8c8e0c6f","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./CylinderGeometryLibrary-88cb80d2","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-8106b887","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(t,P,k,M,z,E,N,e,I,U,S,B,m){"use strict";var Y=new M.Cartesian2,Z=new M.Cartesian3,J=new M.Cartesian3,W=new M.Cartesian3,j=new M.Cartesian3;function u(t){var e=(t=N.defaultValue(t,N.defaultValue.EMPTY_OBJECT)).length,a=t.topRadius,r=t.bottomRadius,n=N.defaultValue(t.vertexFormat,m.VertexFormat.DEFAULT),o=N.defaultValue(t.slices,128);this._length=e,this._topRadius=a,this._bottomRadius=r,this._vertexFormat=m.VertexFormat.clone(n),this._slices=o,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}u.packedLength=m.VertexFormat.packedLength+5,u.pack=function(t,e,a){return a=N.defaultValue(a,0),m.VertexFormat.pack(t._vertexFormat,e,a),a+=m.VertexFormat.packedLength,e[a++]=t._length,e[a++]=t._topRadius,e[a++]=t._bottomRadius,e[a++]=t._slices,e[a]=N.defaultValue(t._offsetAttribute,-1),e};var a,p=new m.VertexFormat,d={vertexFormat:p,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};u.unpack=function(t,e,a){e=N.defaultValue(e,0);var r=m.VertexFormat.unpack(t,e,p),n=(e+=m.VertexFormat.packedLength,t[e++]),o=t[e++],i=t[e++],s=t[e++],t=t[e];return N.defined(a)?(a._vertexFormat=m.VertexFormat.clone(r,a._vertexFormat),a._length=n,a._topRadius=o,a._bottomRadius=i,a._slices=s,a._offsetAttribute=-1===t?void 0:t,a):(d.length=n,d.topRadius=o,d.bottomRadius=i,d.slices=s,d.offsetAttribute=-1===t?void 0:t,new u(d))},u.createGeometry=function(t){var e=t._length,a=t._topRadius,r=t._bottomRadius,n=t._vertexFormat,o=t._slices;if(!(e<=0||a<0||r<0||0===a&&0===r)){var i=o+o,s=o+i,m=i+i,u=E.CylinderGeometryLibrary.computePositions(e,a,r,o,!0),p=n.st?new Float32Array(2*m):void 0,d=n.normal?new Float32Array(3*m):void 0,y=n.tangent?new Float32Array(3*m):void 0,l=n.bitangent?new Float32Array(3*m):void 0,f=n.normal||n.tangent||n.bitangent;if(f){for(var b=n.tangent||n.bitangent,c=0,A=0,v=0,g=Math.atan2(r-a,e),h=Z,x=(h.z=Math.sin(g),Math.cos(g)),_=W,C=J,F=0;F<o;F++){var w=F/o*B.CesiumMath.TWO_PI,G=x*Math.cos(w),w=x*Math.sin(w);f&&(h.x=G,h.y=w,b&&(_=M.Cartesian3.normalize(M.Cartesian3.cross(M.Cartesian3.UNIT_Z,h,_),_)),n.normal&&(d[c++]=h.x,d[c++]=h.y,d[c++]=h.z,d[c++]=h.x,d[c++]=h.y,d[c++]=h.z),n.tangent&&(y[A++]=_.x,y[A++]=_.y,y[A++]=_.z,y[A++]=_.x,y[A++]=_.y,y[A++]=_.z),n.bitangent)&&(C=M.Cartesian3.normalize(M.Cartesian3.cross(h,_,C),C),l[v++]=C.x,l[v++]=C.y,l[v++]=C.z,l[v++]=C.x,l[v++]=C.y,l[v++]=C.z)}for(F=0;F<o;F++)n.normal&&(d[c++]=0,d[c++]=0,d[c++]=-1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=-1,l[v++]=0);for(F=0;F<o;F++)n.normal&&(d[c++]=0,d[c++]=0,d[c++]=1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=1,l[v++]=0)}var D=S.IndexDatatype.createTypedArray(m,12*o-12),R=0,V=0;for(F=0;F<o-1;F++)D[R++]=V,D[R++]=V+2,D[R++]=V+3,D[R++]=V,D[R++]=V+3,D[R++]=V+1,V+=2;for(D[R++]=i-2,D[R++]=0,D[R++]=1,D[R++]=i-2,D[R++]=1,D[R++]=i-1,F=1;F<o-1;F++)D[R++]=i+F+1,D[R++]=i+F,D[R++]=i;for(F=1;F<o-1;F++)D[R++]=s,D[R++]=s+F,D[R++]=s+F+1;var T=0;if(n.st){var O=Math.max(a,r);for(F=0;F<m;F++){var L=M.Cartesian3.fromArray(u,3*F,j);p[T++]=(L.x+O)/(2*O),p[T++]=(L.y+O)/(2*O)}}g=new U.GeometryAttributes,r=(n.position&&(g.position=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u})),n.normal&&(g.normal=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),n.tangent&&(g.tangent=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),n.bitangent&&(g.bitangent=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:l})),n.st&&(g.st=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),Y.x=.5*e,Y.y=Math.max(r,a),new k.BoundingSphere(M.Cartesian3.ZERO,M.Cartesian2.magnitude(Y)));return N.defined(t._offsetAttribute)&&(e=u.length,a=new Uint8Array(e/3),e=t._offsetAttribute===P.GeometryOffsetAttribute.NONE?0:1,P.arrayFill(a,e),g.applyOffset=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),new I.Geometry({attributes:g,indices:D,primitiveType:I.PrimitiveType.TRIANGLES,boundingSphere:r,offsetAttribute:t._offsetAttribute})}},u.getUnitCylinder=function(){return a=N.defined(a)?a:u.createGeometry(new u({topRadius:1,bottomRadius:1,length:1,vertexFormat:m.VertexFormat.POSITION_ONLY}))},t.CylinderGeometry=u});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-1fa85493","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./CylinderGeometryLibrary-88cb80d2","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-9cc31675","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(t,P,k,M,z,E,N,e,I,U,S,B,m){"use strict";var Y=new M.Cartesian2,Z=new M.Cartesian3,J=new M.Cartesian3,W=new M.Cartesian3,j=new M.Cartesian3;function u(t){var e=(t=N.defaultValue(t,N.defaultValue.EMPTY_OBJECT)).length,a=t.topRadius,r=t.bottomRadius,n=N.defaultValue(t.vertexFormat,m.VertexFormat.DEFAULT),o=N.defaultValue(t.slices,128);this._length=e,this._topRadius=a,this._bottomRadius=r,this._vertexFormat=m.VertexFormat.clone(n),this._slices=o,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}u.packedLength=m.VertexFormat.packedLength+5,u.pack=function(t,e,a){return a=N.defaultValue(a,0),m.VertexFormat.pack(t._vertexFormat,e,a),a+=m.VertexFormat.packedLength,e[a++]=t._length,e[a++]=t._topRadius,e[a++]=t._bottomRadius,e[a++]=t._slices,e[a]=N.defaultValue(t._offsetAttribute,-1),e};var a,p=new m.VertexFormat,d={vertexFormat:p,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};u.unpack=function(t,e,a){e=N.defaultValue(e,0);var r=m.VertexFormat.unpack(t,e,p),n=(e+=m.VertexFormat.packedLength,t[e++]),o=t[e++],i=t[e++],s=t[e++],t=t[e];return N.defined(a)?(a._vertexFormat=m.VertexFormat.clone(r,a._vertexFormat),a._length=n,a._topRadius=o,a._bottomRadius=i,a._slices=s,a._offsetAttribute=-1===t?void 0:t,a):(d.length=n,d.topRadius=o,d.bottomRadius=i,d.slices=s,d.offsetAttribute=-1===t?void 0:t,new u(d))},u.createGeometry=function(t){var e=t._length,a=t._topRadius,r=t._bottomRadius,n=t._vertexFormat,o=t._slices;if(!(e<=0||a<0||r<0||0===a&&0===r)){var i=o+o,s=o+i,m=i+i,u=E.CylinderGeometryLibrary.computePositions(e,a,r,o,!0),p=n.st?new Float32Array(2*m):void 0,d=n.normal?new Float32Array(3*m):void 0,y=n.tangent?new Float32Array(3*m):void 0,l=n.bitangent?new Float32Array(3*m):void 0,f=n.normal||n.tangent||n.bitangent;if(f){for(var b=n.tangent||n.bitangent,c=0,A=0,v=0,g=Math.atan2(r-a,e),h=Z,x=(h.z=Math.sin(g),Math.cos(g)),_=W,C=J,F=0;F<o;F++){var w=F/o*B.CesiumMath.TWO_PI,G=x*Math.cos(w),w=x*Math.sin(w);f&&(h.x=G,h.y=w,b&&(_=M.Cartesian3.normalize(M.Cartesian3.cross(M.Cartesian3.UNIT_Z,h,_),_)),n.normal&&(d[c++]=h.x,d[c++]=h.y,d[c++]=h.z,d[c++]=h.x,d[c++]=h.y,d[c++]=h.z),n.tangent&&(y[A++]=_.x,y[A++]=_.y,y[A++]=_.z,y[A++]=_.x,y[A++]=_.y,y[A++]=_.z),n.bitangent)&&(C=M.Cartesian3.normalize(M.Cartesian3.cross(h,_,C),C),l[v++]=C.x,l[v++]=C.y,l[v++]=C.z,l[v++]=C.x,l[v++]=C.y,l[v++]=C.z)}for(F=0;F<o;F++)n.normal&&(d[c++]=0,d[c++]=0,d[c++]=-1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=-1,l[v++]=0);for(F=0;F<o;F++)n.normal&&(d[c++]=0,d[c++]=0,d[c++]=1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=1,l[v++]=0)}var D=S.IndexDatatype.createTypedArray(m,12*o-12),R=0,V=0;for(F=0;F<o-1;F++)D[R++]=V,D[R++]=V+2,D[R++]=V+3,D[R++]=V,D[R++]=V+3,D[R++]=V+1,V+=2;for(D[R++]=i-2,D[R++]=0,D[R++]=1,D[R++]=i-2,D[R++]=1,D[R++]=i-1,F=1;F<o-1;F++)D[R++]=i+F+1,D[R++]=i+F,D[R++]=i;for(F=1;F<o-1;F++)D[R++]=s,D[R++]=s+F,D[R++]=s+F+1;var T=0;if(n.st){var O=Math.max(a,r);for(F=0;F<m;F++){var L=M.Cartesian3.fromArray(u,3*F,j);p[T++]=(L.x+O)/(2*O),p[T++]=(L.y+O)/(2*O)}}g=new U.GeometryAttributes,r=(n.position&&(g.position=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u})),n.normal&&(g.normal=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),n.tangent&&(g.tangent=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),n.bitangent&&(g.bitangent=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:l})),n.st&&(g.st=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),Y.x=.5*e,Y.y=Math.max(r,a),new k.BoundingSphere(M.Cartesian3.ZERO,M.Cartesian2.magnitude(Y)));return N.defined(t._offsetAttribute)&&(e=u.length,a=new Uint8Array(e/3),e=t._offsetAttribute===P.GeometryOffsetAttribute.NONE?0:1,P.arrayFill(a,e),g.applyOffset=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),new I.Geometry({attributes:g,indices:D,primitiveType:I.PrimitiveType.TRIANGLES,boundingSphere:r,offsetAttribute:t._offsetAttribute})}},u.getUnitCylinder=function(){return a=N.defined(a)?a:u.createGeometry(new u({topRadius:1,bottomRadius:1,length:1,vertexFormat:m.VertexFormat.POSITION_ONLY}))},t.CylinderGeometry=u});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-70ded1e8","./Matrix2-10a61a55","./ComponentDatatype-b7b5db18","./CylinderGeometryLibrary-7afd8cad","./when-ae2e0b60","./RuntimeError-24b14c10","./GeometryAttribute-e89ef932","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d","./VertexFormat-1fc9746e"],function(t,P,E,M,k,z,N,e,I,U,S,m){"use strict";var B=new M.Cartesian2,Y=new M.Cartesian3,Z=new M.Cartesian3,J=new M.Cartesian3,W=new M.Cartesian3;function u(t){var e=(t=N.defaultValue(t,N.defaultValue.EMPTY_OBJECT)).length,a=t.topRadius,r=t.bottomRadius,n=N.defaultValue(t.vertexFormat,m.VertexFormat.DEFAULT),o=N.defaultValue(t.slices,128);this._length=e,this._topRadius=a,this._bottomRadius=r,this._vertexFormat=m.VertexFormat.clone(n),this._slices=o,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}u.packedLength=m.VertexFormat.packedLength+5,u.pack=function(t,e,a){return a=N.defaultValue(a,0),m.VertexFormat.pack(t._vertexFormat,e,a),a+=m.VertexFormat.packedLength,e[a++]=t._length,e[a++]=t._topRadius,e[a++]=t._bottomRadius,e[a++]=t._slices,e[a]=N.defaultValue(t._offsetAttribute,-1),e};var a,d=new m.VertexFormat,p={vertexFormat:d,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};u.unpack=function(t,e,a){e=N.defaultValue(e,0);var r=m.VertexFormat.unpack(t,e,d),n=(e+=m.VertexFormat.packedLength,t[e++]),o=t[e++],i=t[e++],s=t[e++],t=t[e];return N.defined(a)?(a._vertexFormat=m.VertexFormat.clone(r,a._vertexFormat),a._length=n,a._topRadius=o,a._bottomRadius=i,a._slices=s,a._offsetAttribute=-1===t?void 0:t,a):(p.length=n,p.topRadius=o,p.bottomRadius=i,p.slices=s,p.offsetAttribute=-1===t?void 0:t,new u(p))},u.createGeometry=function(t){var e=t._length,a=t._topRadius,r=t._bottomRadius,n=t._vertexFormat,o=t._slices;if(!(e<=0||a<0||r<0||0===a&&0===r)){var i=o+o,s=o+i,m=i+i,u=z.CylinderGeometryLibrary.computePositions(e,a,r,o,!0),d=n.st?new Float32Array(2*m):void 0,p=n.normal?new Float32Array(3*m):void 0,y=n.tangent?new Float32Array(3*m):void 0,l=n.bitangent?new Float32Array(3*m):void 0,f=n.normal||n.tangent||n.bitangent;if(f){for(var b=n.tangent||n.bitangent,c=0,A=0,v=0,x=Math.atan2(r-a,e),g=Y,_=(g.z=Math.sin(x),Math.cos(x)),h=J,F=Z,C=0;C<o;C++){var w=C/o*k.CesiumMath.TWO_PI,G=_*Math.cos(w),w=_*Math.sin(w);f&&(g.x=G,g.y=w,b&&(h=M.Cartesian3.normalize(M.Cartesian3.cross(M.Cartesian3.UNIT_Z,g,h),h)),n.normal&&(p[c++]=g.x,p[c++]=g.y,p[c++]=g.z,p[c++]=g.x,p[c++]=g.y,p[c++]=g.z),n.tangent&&(y[A++]=h.x,y[A++]=h.y,y[A++]=h.z,y[A++]=h.x,y[A++]=h.y,y[A++]=h.z),n.bitangent)&&(F=M.Cartesian3.normalize(M.Cartesian3.cross(g,h,F),F),l[v++]=F.x,l[v++]=F.y,l[v++]=F.z,l[v++]=F.x,l[v++]=F.y,l[v++]=F.z)}for(C=0;C<o;C++)n.normal&&(p[c++]=0,p[c++]=0,p[c++]=-1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=-1,l[v++]=0);for(C=0;C<o;C++)n.normal&&(p[c++]=0,p[c++]=0,p[c++]=1),n.tangent&&(y[A++]=1,y[A++]=0,y[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=1,l[v++]=0)}var R=S.IndexDatatype.createTypedArray(m,12*o-12),D=0,V=0;for(C=0;C<o-1;C++)R[D++]=V,R[D++]=V+2,R[D++]=V+3,R[D++]=V,R[D++]=V+3,R[D++]=V+1,V+=2;for(R[D++]=i-2,R[D++]=0,R[D++]=1,R[D++]=i-2,R[D++]=1,R[D++]=i-1,C=1;C<o-1;C++)R[D++]=i+C+1,R[D++]=i+C,R[D++]=i;for(C=1;C<o-1;C++)R[D++]=s,R[D++]=s+C,R[D++]=s+C+1;var T=0;if(n.st){var O=Math.max(a,r);for(C=0;C<m;C++){var L=M.Cartesian3.fromArray(u,3*C,W);d[T++]=(L.x+O)/(2*O),d[T++]=(L.y+O)/(2*O)}}x=new U.GeometryAttributes,r=(n.position&&(x.position=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u})),n.normal&&(x.normal=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:p})),n.tangent&&(x.tangent=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),n.bitangent&&(x.bitangent=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:l})),n.st&&(x.st=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:d})),B.x=.5*e,B.y=Math.max(r,a),new E.BoundingSphere(M.Cartesian3.ZERO,M.Cartesian2.magnitude(B)));return N.defined(t._offsetAttribute)&&(e=u.length,a=new Uint8Array(e/3),e=t._offsetAttribute===P.GeometryOffsetAttribute.NONE?0:1,P.arrayFill(a,e),x.applyOffset=new I.GeometryAttribute({componentDatatype:k.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),new I.Geometry({attributes:x,indices:R,primitiveType:I.PrimitiveType.TRIANGLES,boundingSphere:r,offsetAttribute:t._offsetAttribute})}},u.getUnitCylinder=function(){return a=N.defined(a)?a:u.createGeometry(new u({topRadius:1,bottomRadius:1,length:1,vertexFormat:m.VertexFormat.POSITION_ONLY}))},t.CylinderGeometry=u});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-984eb057","./Cartesian2-078e6458","./ComponentDatatype-e44126e4","./CylinderGeometryLibrary-88cb80d2","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-51995e5a","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(t,P,k,M,z,E,N,e,I,U,S,B,m){"use strict";var Y=new M.Cartesian2,Z=new M.Cartesian3,J=new M.Cartesian3,W=new M.Cartesian3,j=new M.Cartesian3;function u(t){var e=(t=N.defaultValue(t,N.defaultValue.EMPTY_OBJECT)).length,a=t.topRadius,r=t.bottomRadius,n=N.defaultValue(t.vertexFormat,m.VertexFormat.DEFAULT),o=N.defaultValue(t.slices,128);this._length=e,this._topRadius=a,this._bottomRadius=r,this._vertexFormat=m.VertexFormat.clone(n),this._slices=o,this._offsetAttribute=t.offsetAttribute,this._workerName="createCylinderGeometry"}u.packedLength=m.VertexFormat.packedLength+5,u.pack=function(t,e,a){return a=N.defaultValue(a,0),m.VertexFormat.pack(t._vertexFormat,e,a),a+=m.VertexFormat.packedLength,e[a++]=t._length,e[a++]=t._topRadius,e[a++]=t._bottomRadius,e[a++]=t._slices,e[a]=N.defaultValue(t._offsetAttribute,-1),e};var a,p=new m.VertexFormat,y={vertexFormat:p,length:void 0,topRadius:void 0,bottomRadius:void 0,slices:void 0,offsetAttribute:void 0};u.unpack=function(t,e,a){e=N.defaultValue(e,0);var r=m.VertexFormat.unpack(t,e,p),n=(e+=m.VertexFormat.packedLength,t[e++]),o=t[e++],i=t[e++],s=t[e++],t=t[e];return N.defined(a)?(a._vertexFormat=m.VertexFormat.clone(r,a._vertexFormat),a._length=n,a._topRadius=o,a._bottomRadius=i,a._slices=s,a._offsetAttribute=-1===t?void 0:t,a):(y.length=n,y.topRadius=o,y.bottomRadius=i,y.slices=s,y.offsetAttribute=-1===t?void 0:t,new u(y))},u.createGeometry=function(t){var e=t._length,a=t._topRadius,r=t._bottomRadius,n=t._vertexFormat,o=t._slices;if(!(e<=0||a<0||r<0||0===a&&0===r)){var i=o+o,s=o+i,m=i+i,u=E.CylinderGeometryLibrary.computePositions(e,a,r,o,!0),p=n.st?new Float32Array(2*m):void 0,y=n.normal?new Float32Array(3*m):void 0,d=n.tangent?new Float32Array(3*m):void 0,l=n.bitangent?new Float32Array(3*m):void 0,f=n.normal||n.tangent||n.bitangent;if(f){for(var b=n.tangent||n.bitangent,c=0,A=0,v=0,g=Math.atan2(r-a,e),h=Z,x=(h.z=Math.sin(g),Math.cos(g)),_=W,C=J,F=0;F<o;F++){var w=F/o*B.CesiumMath.TWO_PI,G=x*Math.cos(w),w=x*Math.sin(w);f&&(h.x=G,h.y=w,b&&(_=M.Cartesian3.normalize(M.Cartesian3.cross(M.Cartesian3.UNIT_Z,h,_),_)),n.normal&&(y[c++]=h.x,y[c++]=h.y,y[c++]=h.z,y[c++]=h.x,y[c++]=h.y,y[c++]=h.z),n.tangent&&(d[A++]=_.x,d[A++]=_.y,d[A++]=_.z,d[A++]=_.x,d[A++]=_.y,d[A++]=_.z),n.bitangent)&&(C=M.Cartesian3.normalize(M.Cartesian3.cross(h,_,C),C),l[v++]=C.x,l[v++]=C.y,l[v++]=C.z,l[v++]=C.x,l[v++]=C.y,l[v++]=C.z)}for(F=0;F<o;F++)n.normal&&(y[c++]=0,y[c++]=0,y[c++]=-1),n.tangent&&(d[A++]=1,d[A++]=0,d[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=-1,l[v++]=0);for(F=0;F<o;F++)n.normal&&(y[c++]=0,y[c++]=0,y[c++]=1),n.tangent&&(d[A++]=1,d[A++]=0,d[A++]=0),n.bitangent&&(l[v++]=0,l[v++]=1,l[v++]=0)}var D=S.IndexDatatype.createTypedArray(m,12*o-12),R=0,V=0;for(F=0;F<o-1;F++)D[R++]=V,D[R++]=V+2,D[R++]=V+3,D[R++]=V,D[R++]=V+3,D[R++]=V+1,V+=2;for(D[R++]=i-2,D[R++]=0,D[R++]=1,D[R++]=i-2,D[R++]=1,D[R++]=i-1,F=1;F<o-1;F++)D[R++]=i+F+1,D[R++]=i+F,D[R++]=i;for(F=1;F<o-1;F++)D[R++]=s,D[R++]=s+F,D[R++]=s+F+1;var T=0;if(n.st){var O=Math.max(a,r);for(F=0;F<m;F++){var L=M.Cartesian3.fromArray(u,3*F,j);p[T++]=(L.x+O)/(2*O),p[T++]=(L.y+O)/(2*O)}}g=new U.GeometryAttributes,r=(n.position&&(g.position=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u})),n.normal&&(g.normal=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),n.tangent&&(g.tangent=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),n.bitangent&&(g.bitangent=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:l})),n.st&&(g.st=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),Y.x=.5*e,Y.y=Math.max(r,a),new k.BoundingSphere(M.Cartesian3.ZERO,M.Cartesian2.magnitude(Y)));return N.defined(t._offsetAttribute)&&(e=u.length,a=new Uint8Array(e/3),e=t._offsetAttribute===P.GeometryOffsetAttribute.NONE?0:1,P.arrayFill(a,e),g.applyOffset=new I.GeometryAttribute({componentDatatype:z.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),new I.Geometry({attributes:g,indices:D,primitiveType:I.PrimitiveType.TRIANGLES,boundingSphere:r,offsetAttribute:t._offsetAttribute})}},u.getUnitCylinder=function(){return a=N.defined(a)?a:u.createGeometry(new u({topRadius:1,bottomRadius:1,length:1,vertexFormat:m.VertexFormat.POSITION_ONLY}))},t.CylinderGeometry=u});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Math-5bbcea10"],function(r,d){"use strict";var t={computePositions:function(r,t,e,a,i){for(var n=.5*r,o=-n,r=a+a,s=new Float64Array(3*(i?2*r:r)),c=0,u=0,f=i?3*r:0,h=i?3*(r+a):3*a,y=0;y<a;y++){var M=y/a*d.CesiumMath.TWO_PI,b=Math.cos(M),M=Math.sin(M),m=b*e,v=M*e,b=b*t,M=M*t;s[u+f]=m,s[u+f+1]=v,s[u+f+2]=o,s[u+h]=b,s[u+h+1]=M,s[u+h+2]=n,u+=3,i&&(s[c++]=m,s[c++]=v,s[c++]=o,s[c++]=b,s[c++]=M,s[c++]=n)}return s}};r.CylinderGeometryLibrary=t});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-1fa85493","./Cartesian2-c1eb9da0","./Check-f996273c","./ComponentDatatype-e44126e4","./when-ae2e0b60","./EllipseGeometryLibrary-cde71e7f","./GeometryAttribute-9cc31675","./GeometryAttributes-5ce4955a","./GeometryInstance-083d7584","./GeometryPipeline-64734a0f","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(e,S,L,R,t,j,k,z,B,Y,m,C,p,y,d){"use strict";var H=new R.Cartesian3,U=new R.Cartesian3,Q=new R.Cartesian3,W=new R.Cartesian3,J=new R.Cartesian2,q=new L.Matrix3,ie=new L.Matrix3,Z=new L.Quaternion,K=new R.Cartesian3,X=new R.Cartesian3,$=new R.Cartesian3,ee=new R.Cartographic,te=new R.Cartesian3,re=new R.Cartesian2,ae=new R.Cartesian2;function c(e,t,r){for(var a=t.vertexFormat,i=t.center,n=t.semiMajorAxis,o=t.semiMinorAxis,s=t.ellipsoid,l=t.stRotation,u=r?e.length/3*2:e.length/3,m=t.shadowVolume,p=a.st?new Float32Array(2*u):void 0,y=a.normal?new Float32Array(3*u):void 0,c=a.tangent?new Float32Array(3*u):void 0,d=a.bitangent?new Float32Array(3*u):void 0,A=m?new Float32Array(3*u):void 0,h=0,f=K,x=X,g=$,_=new L.GeographicProjection(s),b=_.project(s.cartesianToCartographic(i,ee),te),i=s.scaleToGeodeticSurface(i,H),C=(s.geodeticSurfaceNormal(i,i),q),v=ie,w=(v=0!==l?(O=L.Quaternion.fromAxisAngle(i,l,Z),C=L.Matrix3.fromQuaternion(O,C),O=L.Quaternion.fromAxisAngle(i,-l,Z),L.Matrix3.fromQuaternion(O,v)):(C=L.Matrix3.clone(L.Matrix3.IDENTITY,C),L.Matrix3.clone(L.Matrix3.IDENTITY,v)),R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re)),M=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),E=e.length,I=r?E:0,T=I/3*2,G=0;G<E;G+=3){var N,P=G+1,F=G+2,V=R.Cartesian3.fromArray(e,G,H);a.st&&(N=L.Matrix3.multiplyByVector(C,V,U),N=_.project(s.cartesianToCartographic(N,ee),Q),R.Cartesian3.subtract(N,b,N),J.x=(N.x+n)/(2*n),J.y=(N.y+o)/(2*o),w.x=Math.min(J.x,w.x),w.y=Math.min(J.y,w.y),M.x=Math.max(J.x,M.x),M.y=Math.max(J.y,M.y),r&&(p[h+T]=J.x,p[h+1+T]=J.y),p[h++]=J.x,p[h++]=J.y),(a.normal||a.tangent||a.bitangent||m)&&(f=s.geodeticSurfaceNormal(V,f),m&&(A[G+I]=-f.x,A[P+I]=-f.y,A[F+I]=-f.z),a.normal||a.tangent||a.bitangent)&&((a.tangent||a.bitangent)&&(x=R.Cartesian3.normalize(R.Cartesian3.cross(R.Cartesian3.UNIT_Z,f,x),x),L.Matrix3.multiplyByVector(v,x,x)),a.normal&&(y[G]=f.x,y[P]=f.y,y[F]=f.z,r)&&(y[G+I]=-f.x,y[P+I]=-f.y,y[F+I]=-f.z),a.tangent&&(c[G]=x.x,c[P]=x.y,c[F]=x.z,r)&&(c[G+I]=-x.x,c[P+I]=-x.y,c[F+I]=-x.z),a.bitangent)&&(g=R.Cartesian3.normalize(R.Cartesian3.cross(f,x,g),g),d[G]=g.x,d[P]=g.y,d[F]=g.z,r)&&(d[G+I]=g.x,d[P+I]=g.y,d[F+I]=g.z)}if(a.st)for(var E=p.length,D=0;D<E;D+=2)p[D]=(p[D]-w.x)/(M.x-w.x),p[D+1]=(p[D+1]-w.y)/(M.y-w.y);var O,i=new Y.GeometryAttributes;return a.position&&(l=z.EllipseGeometryLibrary.raisePositionsToHeight(e,t,r),i.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:l})),a.st&&(i.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),a.normal&&(i.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),a.tangent&&(i.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),a.bitangent&&(i.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),m&&(i.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),r&&k.defined(t.offsetAttribute)&&(O=new Uint8Array(u),O=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(O,1,0,u/2):(l=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(O,l)),i.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:O})),i}function A(e){for(var t,r,a=new Array(e*(e+1)*12-6),i=0,n=0,o=1,s=0;s<3;s++)a[i++]=o++,a[i++]=n,a[i++]=o;for(s=2;s<e+1;++s){for(o=s*(s+1)-1,n=(s-1)*s-1,a[i++]=o++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=o++,a[i++]=n,a[i++]=o}for(t=2*e,++o,++n,s=0;s<t-1;++s)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;for(a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n++,a[i++]=n,++n,s=e-1;1<s;--s){for(a[i++]=n++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=n++,a[i++]=n++,a[i++]=o++}for(s=0;s<3;s++)a[i++]=n++,a[i++]=n,a[i++]=o;return a}var o=new R.Cartesian3;var h=new L.BoundingSphere,f=new L.BoundingSphere;function l(e){for(var t=e.center,r=e.ellipsoid,a=e.semiMajorAxis,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,H),e.height,H),r=(h.center=R.Cartesian3.add(t,i,h.center),h.radius=a,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,i),e.extrudedHeight,i),f.center=R.Cartesian3.add(t,i,f.center),f.radius=a,z.EllipseGeometryLibrary.computeEllipsePositions(e,!0,!0)),t=r.positions,i=r.numPts,a=r.outerPositions,r=L.BoundingSphere.union(h,f),n=c(t,e,!0),o=(u=A(i)).length,s=(u.length=2*o,t.length/3),l=0;l<o;l+=3)u[l+o]=u[l+2]+s,u[l+1+o]=u[l+1]+s,u[l+2+o]=u[l]+s;var i=p.IndexDatatype.createTypedArray(2*s/3,u),t=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),n=function(e,t){for(var r=t.vertexFormat,a=t.center,i=t.semiMajorAxis,n=t.semiMinorAxis,o=t.ellipsoid,s=t.height,l=t.extrudedHeight,u=t.stRotation,m=e.length/3*2,p=new Float64Array(3*m),y=r.st?new Float32Array(2*m):void 0,c=r.normal?new Float32Array(3*m):void 0,d=r.tangent?new Float32Array(3*m):void 0,A=r.bitangent?new Float32Array(3*m):void 0,h=t.shadowVolume,f=h?new Float32Array(3*m):void 0,x=0,g=K,_=X,b=$,C=new L.GeographicProjection(o),v=C.project(o.cartesianToCartographic(a,ee),te),a=o.scaleToGeodeticSurface(a,H),a=(o.geodeticSurfaceNormal(a,a),L.Quaternion.fromAxisAngle(a,u,Z)),w=L.Matrix3.fromQuaternion(a,q),M=R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re),E=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),I=(D=e.length)/3*2,T=0;T<D;T+=3){var G=T+1,N=T+2,P=R.Cartesian3.fromArray(e,T,H),F=(r.st&&(V=L.Matrix3.multiplyByVector(w,P,U),V=C.project(o.cartesianToCartographic(V,ee),Q),R.Cartesian3.subtract(V,v,V),J.x=(V.x+i)/(2*i),J.y=(V.y+n)/(2*n),M.x=Math.min(J.x,M.x),M.y=Math.min(J.y,M.y),E.x=Math.max(J.x,E.x),E.y=Math.max(J.y,E.y),y[x+I]=J.x,y[x+1+I]=J.y,y[x++]=J.x,y[x++]=J.y),P=o.scaleToGeodeticSurface(P,P),V=R.Cartesian3.clone(P,U),g=o.geodeticSurfaceNormal(P,g),h&&(f[T+D]=-g.x,f[G+D]=-g.y,f[N+D]=-g.z),R.Cartesian3.multiplyByScalar(g,s,W)),P=R.Cartesian3.add(P,F,P),F=R.Cartesian3.multiplyByScalar(g,l,F),V=R.Cartesian3.add(V,F,V);r.position&&(p[T+D]=V.x,p[G+D]=V.y,p[N+D]=V.z,p[T]=P.x,p[G]=P.y,p[N]=P.z),(r.normal||r.tangent||r.bitangent)&&(b=R.Cartesian3.clone(g,b),F=R.Cartesian3.fromArray(e,(T+3)%D,W),R.Cartesian3.subtract(F,P,F),P=R.Cartesian3.subtract(V,P,Q),g=R.Cartesian3.normalize(R.Cartesian3.cross(P,F,g),g),r.normal&&(c[T]=g.x,c[G]=g.y,c[N]=g.z,c[T+D]=g.x,c[G+D]=g.y,c[N+D]=g.z),r.tangent&&(_=R.Cartesian3.normalize(R.Cartesian3.cross(b,g,_),_),d[T]=_.x,d[G]=_.y,d[N]=_.z,d[T+D]=_.x,d[T+1+D]=_.y,d[T+2+D]=_.z),r.bitangent)&&(A[T]=b.x,A[G]=b.y,A[N]=b.z,A[T+D]=b.x,A[G+D]=b.y,A[N+D]=b.z)}if(r.st)for(var D=y.length,O=0;O<D;O+=2)y[O]=(y[O]-M.x)/(E.x-M.x),y[O+1]=(y[O+1]-M.y)/(E.y-M.y);return u=new Y.GeometryAttributes,r.position&&(u.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p})),r.st&&(u.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:y})),r.normal&&(u.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),r.tangent&&(u.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),r.bitangent&&(u.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),h&&(u.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:f})),k.defined(t.offsetAttribute)&&(a=new Uint8Array(m),a=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(a,1,0,m/2):(m=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(a,m)),u.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),u}(a,e),u=function(e){for(var t=e.length/3,r=p.IndexDatatype.createTypedArray(t,6*t),a=0,i=0;i<t;i++){var n=i,o=i+t,s=(n+1)%t,l=s+t;r[a++]=n,r[a++]=o,r[a++]=s,r[a++]=s,r[a++]=o,r[a++]=l}return r}(a),i=p.IndexDatatype.createTypedArray(2*a.length/3,u),e=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),a=C.GeometryPipeline.combineInstances([new m.GeometryInstance({geometry:t}),new m.GeometryInstance({geometry:e})]);return{boundingSphere:r,attributes:a[0].attributes,indices:a[0].indices}}function s(e,t,r,a,i,n,o){for(var s=z.EllipseGeometryLibrary.computeEllipsePositions({center:e,semiMajorAxis:t,semiMinorAxis:r,rotation:a,granularity:i},!1,!0).outerPositions,l=s.length/3,u=new Array(l),m=0;m<l;++m)u[m]=R.Cartesian3.fromArray(s,3*m);e=R.Rectangle.fromCartesianArray(u,n,o);return e.width>y.CesiumMath.PI&&(e.north=0<e.north?y.CesiumMath.PI_OVER_TWO-y.CesiumMath.EPSILON7:e.north,e.south=e.south<0?y.CesiumMath.EPSILON7-y.CesiumMath.PI_OVER_TWO:e.south,e.east=y.CesiumMath.PI,e.west=-y.CesiumMath.PI),e}function x(e){var t=(e=k.defaultValue(e,k.defaultValue.EMPTY_OBJECT)).center,r=k.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),a=e.semiMajorAxis,i=e.semiMinorAxis,n=k.defaultValue(e.granularity,y.CesiumMath.RADIANS_PER_DEGREE),o=k.defaultValue(e.vertexFormat,d.VertexFormat.DEFAULT),s=k.defaultValue(e.height,0),l=k.defaultValue(e.extrudedHeight,s);this._center=R.Cartesian3.clone(t),this._semiMajorAxis=a,this._semiMinorAxis=i,this._ellipsoid=R.Ellipsoid.clone(r),this._rotation=k.defaultValue(e.rotation,0),this._stRotation=k.defaultValue(e.stRotation,0),this._height=Math.max(l,s),this._granularity=n,this._vertexFormat=d.VertexFormat.clone(o),this._extrudedHeight=Math.min(l,s),this._shadowVolume=k.defaultValue(e.shadowVolume,!1),this._workerName="createEllipseGeometry",this._offsetAttribute=e.offsetAttribute,this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0}x.packedLength=R.Cartesian3.packedLength+R.Ellipsoid.packedLength+d.VertexFormat.packedLength+9,x.pack=function(e,t,r){return r=k.defaultValue(r,0),R.Cartesian3.pack(e._center,t,r),r+=R.Cartesian3.packedLength,R.Ellipsoid.pack(e._ellipsoid,t,r),r+=R.Ellipsoid.packedLength,d.VertexFormat.pack(e._vertexFormat,t,r),r+=d.VertexFormat.packedLength,t[r++]=e._semiMajorAxis,t[r++]=e._semiMinorAxis,t[r++]=e._rotation,t[r++]=e._stRotation,t[r++]=e._height,t[r++]=e._granularity,t[r++]=e._extrudedHeight,t[r++]=e._shadowVolume?1:0,t[r]=k.defaultValue(e._offsetAttribute,-1),t};var g=new R.Cartesian3,_=new R.Ellipsoid,v=new d.VertexFormat,b={center:g,ellipsoid:_,vertexFormat:v,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,stRotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0};x.unpack=function(e,t,r){t=k.defaultValue(t,0);var a=R.Cartesian3.unpack(e,t,g),i=(t+=R.Cartesian3.packedLength,R.Ellipsoid.unpack(e,t,_)),n=(t+=R.Ellipsoid.packedLength,d.VertexFormat.unpack(e,t,v)),o=(t+=d.VertexFormat.packedLength,e[t++]),s=e[t++],l=e[t++],u=e[t++],m=e[t++],p=e[t++],y=e[t++],c=1===e[t++],e=e[t];return k.defined(r)?(r._center=R.Cartesian3.clone(a,r._center),r._ellipsoid=R.Ellipsoid.clone(i,r._ellipsoid),r._vertexFormat=d.VertexFormat.clone(n,r._vertexFormat),r._semiMajorAxis=o,r._semiMinorAxis=s,r._rotation=l,r._stRotation=u,r._height=m,r._granularity=p,r._extrudedHeight=y,r._shadowVolume=c,r._offsetAttribute=-1===e?void 0:e,r):(b.height=m,b.extrudedHeight=y,b.granularity=p,b.stRotation=u,b.rotation=l,b.semiMajorAxis=o,b.semiMinorAxis=s,b.shadowVolume=c,b.offsetAttribute=-1===e?void 0:e,new x(b))},x.computeRectangle=function(e,t){var r=(e=k.defaultValue(e,k.defaultValue.EMPTY_OBJECT)).center,a=k.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),i=e.semiMajorAxis,n=e.semiMinorAxis,o=k.defaultValue(e.granularity,y.CesiumMath.RADIANS_PER_DEGREE);return s(r,i,n,k.defaultValue(e.rotation,0),o,a,t)},x.createGeometry=function(e){var t,r,a,i,n;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return n=e._height,a=e._extrudedHeight,r=!y.CesiumMath.equalsEpsilon(n,a,0,y.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),n={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:n,granularity:e._granularity,vertexFormat:e._vertexFormat,stRotation:e._stRotation},r?(n.extrudedHeight=a,n.shadowVolume=e._shadowVolume,n.offsetAttribute=e._offsetAttribute,t=l(n)):(a=(r=n).center,o=R.Cartesian3.multiplyByScalar(r.ellipsoid.geodeticSurfaceNormal(a,o),r.height,o),o=R.Cartesian3.add(a,o,o),a=new L.BoundingSphere(o,r.semiMajorAxis),i=(n=z.EllipseGeometryLibrary.computeEllipsePositions(r,!0,!1)).positions,n=n.numPts,r=c(i,r,!1),n=A(n),t={boundingSphere:a,attributes:r,indices:p.IndexDatatype.createTypedArray(i.length/3,n)},k.defined(e._offsetAttribute)&&(a=t.attributes.position.values.length,r=new Uint8Array(a/3),i=e._offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(r,i),t.attributes.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r}))),new B.Geometry({attributes:t.attributes,indices:t.indices,primitiveType:B.PrimitiveType.TRIANGLES,boundingSphere:t.boundingSphere,offsetAttribute:e._offsetAttribute})},x.createShadowVolume=function(e,t,r){var a=e._granularity,i=e._ellipsoid,t=t(a,i),r=r(a,i);return new x({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:i,rotation:e._rotation,stRotation:e._stRotation,granularity:a,extrudedHeight:t,height:r,vertexFormat:d.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(x.prototype,{rectangle:{get:function(){return k.defined(this._rectangle)||(this._rectangle=s(this._center,this._semiMajorAxis,this._semiMinorAxis,this._rotation,this._granularity,this._ellipsoid)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){return k.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(e){var t=-e._stRotation;if(0==t)return[0,0,0,1,1,0];for(var r=z.EllipseGeometryLibrary.computeEllipsePositions({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,rotation:e._rotation,granularity:e._granularity},!1,!0).outerPositions,a=r.length/3,i=new Array(a),n=0;n<a;++n)i[n]=R.Cartesian3.fromArray(r,3*n);var o=e._ellipsoid,e=e.rectangle;return B.Geometry._textureCoordinateRotationPoints(i,t,o,e)}(this)),this._textureCoordinateRotationPoints}}}),e.EllipseGeometry=x});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-8c8e0c6f","./Cartesian2-c1eb9da0","./Check-f996273c","./ComponentDatatype-e44126e4","./when-ae2e0b60","./EllipseGeometryLibrary-8b1f8e47","./GeometryAttribute-8106b887","./GeometryAttributes-5ce4955a","./GeometryInstance-a24fc358","./GeometryPipeline-21c7c817","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(e,S,L,R,t,j,k,z,B,Y,m,C,p,y,d){"use strict";var H=new R.Cartesian3,U=new R.Cartesian3,Q=new R.Cartesian3,W=new R.Cartesian3,J=new R.Cartesian2,q=new L.Matrix3,ie=new L.Matrix3,Z=new L.Quaternion,K=new R.Cartesian3,X=new R.Cartesian3,$=new R.Cartesian3,ee=new R.Cartographic,te=new R.Cartesian3,re=new R.Cartesian2,ae=new R.Cartesian2;function c(e,t,r){for(var a=t.vertexFormat,i=t.center,n=t.semiMajorAxis,o=t.semiMinorAxis,s=t.ellipsoid,l=t.stRotation,u=r?e.length/3*2:e.length/3,m=t.shadowVolume,p=a.st?new Float32Array(2*u):void 0,y=a.normal?new Float32Array(3*u):void 0,c=a.tangent?new Float32Array(3*u):void 0,d=a.bitangent?new Float32Array(3*u):void 0,A=m?new Float32Array(3*u):void 0,h=0,f=K,x=X,g=$,_=new L.GeographicProjection(s),b=_.project(s.cartesianToCartographic(i,ee),te),i=s.scaleToGeodeticSurface(i,H),C=(s.geodeticSurfaceNormal(i,i),q),v=ie,w=(v=0!==l?(O=L.Quaternion.fromAxisAngle(i,l,Z),C=L.Matrix3.fromQuaternion(O,C),O=L.Quaternion.fromAxisAngle(i,-l,Z),L.Matrix3.fromQuaternion(O,v)):(C=L.Matrix3.clone(L.Matrix3.IDENTITY,C),L.Matrix3.clone(L.Matrix3.IDENTITY,v)),R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re)),M=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),E=e.length,I=r?E:0,T=I/3*2,G=0;G<E;G+=3){var N,P=G+1,F=G+2,V=R.Cartesian3.fromArray(e,G,H);a.st&&(N=L.Matrix3.multiplyByVector(C,V,U),N=_.project(s.cartesianToCartographic(N,ee),Q),R.Cartesian3.subtract(N,b,N),J.x=(N.x+n)/(2*n),J.y=(N.y+o)/(2*o),w.x=Math.min(J.x,w.x),w.y=Math.min(J.y,w.y),M.x=Math.max(J.x,M.x),M.y=Math.max(J.y,M.y),r&&(p[h+T]=J.x,p[h+1+T]=J.y),p[h++]=J.x,p[h++]=J.y),(a.normal||a.tangent||a.bitangent||m)&&(f=s.geodeticSurfaceNormal(V,f),m&&(A[G+I]=-f.x,A[P+I]=-f.y,A[F+I]=-f.z),a.normal||a.tangent||a.bitangent)&&((a.tangent||a.bitangent)&&(x=R.Cartesian3.normalize(R.Cartesian3.cross(R.Cartesian3.UNIT_Z,f,x),x),L.Matrix3.multiplyByVector(v,x,x)),a.normal&&(y[G]=f.x,y[P]=f.y,y[F]=f.z,r)&&(y[G+I]=-f.x,y[P+I]=-f.y,y[F+I]=-f.z),a.tangent&&(c[G]=x.x,c[P]=x.y,c[F]=x.z,r)&&(c[G+I]=-x.x,c[P+I]=-x.y,c[F+I]=-x.z),a.bitangent)&&(g=R.Cartesian3.normalize(R.Cartesian3.cross(f,x,g),g),d[G]=g.x,d[P]=g.y,d[F]=g.z,r)&&(d[G+I]=g.x,d[P+I]=g.y,d[F+I]=g.z)}if(a.st)for(var E=p.length,D=0;D<E;D+=2)p[D]=(p[D]-w.x)/(M.x-w.x),p[D+1]=(p[D+1]-w.y)/(M.y-w.y);var O,i=new Y.GeometryAttributes;return a.position&&(l=z.EllipseGeometryLibrary.raisePositionsToHeight(e,t,r),i.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:l})),a.st&&(i.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),a.normal&&(i.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),a.tangent&&(i.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),a.bitangent&&(i.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),m&&(i.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),r&&k.defined(t.offsetAttribute)&&(O=new Uint8Array(u),O=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(O,1,0,u/2):(l=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(O,l)),i.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:O})),i}function A(e){for(var t,r,a=new Array(e*(e+1)*12-6),i=0,n=0,o=1,s=0;s<3;s++)a[i++]=o++,a[i++]=n,a[i++]=o;for(s=2;s<e+1;++s){for(o=s*(s+1)-1,n=(s-1)*s-1,a[i++]=o++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=o++,a[i++]=n,a[i++]=o}for(t=2*e,++o,++n,s=0;s<t-1;++s)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;for(a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n++,a[i++]=n,++n,s=e-1;1<s;--s){for(a[i++]=n++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=n++,a[i++]=n++,a[i++]=o++}for(s=0;s<3;s++)a[i++]=n++,a[i++]=n,a[i++]=o;return a}var o=new R.Cartesian3;var h=new L.BoundingSphere,f=new L.BoundingSphere;function l(e){for(var t=e.center,r=e.ellipsoid,a=e.semiMajorAxis,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,H),e.height,H),r=(h.center=R.Cartesian3.add(t,i,h.center),h.radius=a,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,i),e.extrudedHeight,i),f.center=R.Cartesian3.add(t,i,f.center),f.radius=a,z.EllipseGeometryLibrary.computeEllipsePositions(e,!0,!0)),t=r.positions,i=r.numPts,a=r.outerPositions,r=L.BoundingSphere.union(h,f),n=c(t,e,!0),o=(u=A(i)).length,s=(u.length=2*o,t.length/3),l=0;l<o;l+=3)u[l+o]=u[l+2]+s,u[l+1+o]=u[l+1]+s,u[l+2+o]=u[l]+s;var i=p.IndexDatatype.createTypedArray(2*s/3,u),t=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),n=function(e,t){for(var r=t.vertexFormat,a=t.center,i=t.semiMajorAxis,n=t.semiMinorAxis,o=t.ellipsoid,s=t.height,l=t.extrudedHeight,u=t.stRotation,m=e.length/3*2,p=new Float64Array(3*m),y=r.st?new Float32Array(2*m):void 0,c=r.normal?new Float32Array(3*m):void 0,d=r.tangent?new Float32Array(3*m):void 0,A=r.bitangent?new Float32Array(3*m):void 0,h=t.shadowVolume,f=h?new Float32Array(3*m):void 0,x=0,g=K,_=X,b=$,C=new L.GeographicProjection(o),v=C.project(o.cartesianToCartographic(a,ee),te),a=o.scaleToGeodeticSurface(a,H),a=(o.geodeticSurfaceNormal(a,a),L.Quaternion.fromAxisAngle(a,u,Z)),w=L.Matrix3.fromQuaternion(a,q),M=R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re),E=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),I=(D=e.length)/3*2,T=0;T<D;T+=3){var G=T+1,N=T+2,P=R.Cartesian3.fromArray(e,T,H),F=(r.st&&(V=L.Matrix3.multiplyByVector(w,P,U),V=C.project(o.cartesianToCartographic(V,ee),Q),R.Cartesian3.subtract(V,v,V),J.x=(V.x+i)/(2*i),J.y=(V.y+n)/(2*n),M.x=Math.min(J.x,M.x),M.y=Math.min(J.y,M.y),E.x=Math.max(J.x,E.x),E.y=Math.max(J.y,E.y),y[x+I]=J.x,y[x+1+I]=J.y,y[x++]=J.x,y[x++]=J.y),P=o.scaleToGeodeticSurface(P,P),V=R.Cartesian3.clone(P,U),g=o.geodeticSurfaceNormal(P,g),h&&(f[T+D]=-g.x,f[G+D]=-g.y,f[N+D]=-g.z),R.Cartesian3.multiplyByScalar(g,s,W)),P=R.Cartesian3.add(P,F,P),F=R.Cartesian3.multiplyByScalar(g,l,F),V=R.Cartesian3.add(V,F,V);r.position&&(p[T+D]=V.x,p[G+D]=V.y,p[N+D]=V.z,p[T]=P.x,p[G]=P.y,p[N]=P.z),(r.normal||r.tangent||r.bitangent)&&(b=R.Cartesian3.clone(g,b),F=R.Cartesian3.fromArray(e,(T+3)%D,W),R.Cartesian3.subtract(F,P,F),P=R.Cartesian3.subtract(V,P,Q),g=R.Cartesian3.normalize(R.Cartesian3.cross(P,F,g),g),r.normal&&(c[T]=g.x,c[G]=g.y,c[N]=g.z,c[T+D]=g.x,c[G+D]=g.y,c[N+D]=g.z),r.tangent&&(_=R.Cartesian3.normalize(R.Cartesian3.cross(b,g,_),_),d[T]=_.x,d[G]=_.y,d[N]=_.z,d[T+D]=_.x,d[T+1+D]=_.y,d[T+2+D]=_.z),r.bitangent)&&(A[T]=b.x,A[G]=b.y,A[N]=b.z,A[T+D]=b.x,A[G+D]=b.y,A[N+D]=b.z)}if(r.st)for(var D=y.length,O=0;O<D;O+=2)y[O]=(y[O]-M.x)/(E.x-M.x),y[O+1]=(y[O+1]-M.y)/(E.y-M.y);return u=new Y.GeometryAttributes,r.position&&(u.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p})),r.st&&(u.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:y})),r.normal&&(u.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),r.tangent&&(u.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),r.bitangent&&(u.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),h&&(u.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:f})),k.defined(t.offsetAttribute)&&(a=new Uint8Array(m),a=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(a,1,0,m/2):(m=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(a,m)),u.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),u}(a,e),u=function(e){for(var t=e.length/3,r=p.IndexDatatype.createTypedArray(t,6*t),a=0,i=0;i<t;i++){var n=i,o=i+t,s=(n+1)%t,l=s+t;r[a++]=n,r[a++]=o,r[a++]=s,r[a++]=s,r[a++]=o,r[a++]=l}return r}(a),i=p.IndexDatatype.createTypedArray(2*a.length/3,u),e=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),a=C.GeometryPipeline.combineInstances([new m.GeometryInstance({geometry:t}),new m.GeometryInstance({geometry:e})]);return{boundingSphere:r,attributes:a[0].attributes,indices:a[0].indices}}function s(e,t,r,a,i,n,o){for(var s=z.EllipseGeometryLibrary.computeEllipsePositions({center:e,semiMajorAxis:t,semiMinorAxis:r,rotation:a,granularity:i},!1,!0).outerPositions,l=s.length/3,u=new Array(l),m=0;m<l;++m)u[m]=R.Cartesian3.fromArray(s,3*m);e=R.Rectangle.fromCartesianArray(u,n,o);return e.width>y.CesiumMath.PI&&(e.north=0<e.north?y.CesiumMath.PI_OVER_TWO-y.CesiumMath.EPSILON7:e.north,e.south=e.south<0?y.CesiumMath.EPSILON7-y.CesiumMath.PI_OVER_TWO:e.south,e.east=y.CesiumMath.PI,e.west=-y.CesiumMath.PI),e}function x(e){var t=(e=k.defaultValue(e,k.defaultValue.EMPTY_OBJECT)).center,r=k.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),a=e.semiMajorAxis,i=e.semiMinorAxis,n=k.defaultValue(e.granularity,y.CesiumMath.RADIANS_PER_DEGREE),o=k.defaultValue(e.vertexFormat,d.VertexFormat.DEFAULT),s=k.defaultValue(e.height,0),l=k.defaultValue(e.extrudedHeight,s);this._center=R.Cartesian3.clone(t),this._semiMajorAxis=a,this._semiMinorAxis=i,this._ellipsoid=R.Ellipsoid.clone(r),this._rotation=k.defaultValue(e.rotation,0),this._stRotation=k.defaultValue(e.stRotation,0),this._height=Math.max(l,s),this._granularity=n,this._vertexFormat=d.VertexFormat.clone(o),this._extrudedHeight=Math.min(l,s),this._shadowVolume=k.defaultValue(e.shadowVolume,!1),this._workerName="createEllipseGeometry",this._offsetAttribute=e.offsetAttribute,this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0}x.packedLength=R.Cartesian3.packedLength+R.Ellipsoid.packedLength+d.VertexFormat.packedLength+9,x.pack=function(e,t,r){return r=k.defaultValue(r,0),R.Cartesian3.pack(e._center,t,r),r+=R.Cartesian3.packedLength,R.Ellipsoid.pack(e._ellipsoid,t,r),r+=R.Ellipsoid.packedLength,d.VertexFormat.pack(e._vertexFormat,t,r),r+=d.VertexFormat.packedLength,t[r++]=e._semiMajorAxis,t[r++]=e._semiMinorAxis,t[r++]=e._rotation,t[r++]=e._stRotation,t[r++]=e._height,t[r++]=e._granularity,t[r++]=e._extrudedHeight,t[r++]=e._shadowVolume?1:0,t[r]=k.defaultValue(e._offsetAttribute,-1),t};var g=new R.Cartesian3,_=new R.Ellipsoid,v=new d.VertexFormat,b={center:g,ellipsoid:_,vertexFormat:v,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,stRotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0};x.unpack=function(e,t,r){t=k.defaultValue(t,0);var a=R.Cartesian3.unpack(e,t,g),i=(t+=R.Cartesian3.packedLength,R.Ellipsoid.unpack(e,t,_)),n=(t+=R.Ellipsoid.packedLength,d.VertexFormat.unpack(e,t,v)),o=(t+=d.VertexFormat.packedLength,e[t++]),s=e[t++],l=e[t++],u=e[t++],m=e[t++],p=e[t++],y=e[t++],c=1===e[t++],e=e[t];return k.defined(r)?(r._center=R.Cartesian3.clone(a,r._center),r._ellipsoid=R.Ellipsoid.clone(i,r._ellipsoid),r._vertexFormat=d.VertexFormat.clone(n,r._vertexFormat),r._semiMajorAxis=o,r._semiMinorAxis=s,r._rotation=l,r._stRotation=u,r._height=m,r._granularity=p,r._extrudedHeight=y,r._shadowVolume=c,r._offsetAttribute=-1===e?void 0:e,r):(b.height=m,b.extrudedHeight=y,b.granularity=p,b.stRotation=u,b.rotation=l,b.semiMajorAxis=o,b.semiMinorAxis=s,b.shadowVolume=c,b.offsetAttribute=-1===e?void 0:e,new x(b))},x.computeRectangle=function(e,t){var r=(e=k.defaultValue(e,k.defaultValue.EMPTY_OBJECT)).center,a=k.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),i=e.semiMajorAxis,n=e.semiMinorAxis,o=k.defaultValue(e.granularity,y.CesiumMath.RADIANS_PER_DEGREE);return s(r,i,n,k.defaultValue(e.rotation,0),o,a,t)},x.createGeometry=function(e){var t,r,a,i,n;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return n=e._height,a=e._extrudedHeight,r=!y.CesiumMath.equalsEpsilon(n,a,0,y.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),n={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:n,granularity:e._granularity,vertexFormat:e._vertexFormat,stRotation:e._stRotation},r?(n.extrudedHeight=a,n.shadowVolume=e._shadowVolume,n.offsetAttribute=e._offsetAttribute,t=l(n)):(a=(r=n).center,o=R.Cartesian3.multiplyByScalar(r.ellipsoid.geodeticSurfaceNormal(a,o),r.height,o),o=R.Cartesian3.add(a,o,o),a=new L.BoundingSphere(o,r.semiMajorAxis),i=(n=z.EllipseGeometryLibrary.computeEllipsePositions(r,!0,!1)).positions,n=n.numPts,r=c(i,r,!1),n=A(n),t={boundingSphere:a,attributes:r,indices:p.IndexDatatype.createTypedArray(i.length/3,n)},k.defined(e._offsetAttribute)&&(a=t.attributes.position.values.length,r=new Uint8Array(a/3),i=e._offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(r,i),t.attributes.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r}))),new B.Geometry({attributes:t.attributes,indices:t.indices,primitiveType:B.PrimitiveType.TRIANGLES,boundingSphere:t.boundingSphere,offsetAttribute:e._offsetAttribute})},x.createShadowVolume=function(e,t,r){var a=e._granularity,i=e._ellipsoid,t=t(a,i),r=r(a,i);return new x({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:i,rotation:e._rotation,stRotation:e._stRotation,granularity:a,extrudedHeight:t,height:r,vertexFormat:d.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(x.prototype,{rectangle:{get:function(){return k.defined(this._rectangle)||(this._rectangle=s(this._center,this._semiMajorAxis,this._semiMinorAxis,this._rotation,this._granularity,this._ellipsoid)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){return k.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(e){var t=-e._stRotation;if(0==t)return[0,0,0,1,1,0];for(var r=z.EllipseGeometryLibrary.computeEllipsePositions({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,rotation:e._rotation,granularity:e._granularity},!1,!0).outerPositions,a=r.length/3,i=new Array(a),n=0;n<a;++n)i[n]=R.Cartesian3.fromArray(r,3*n);var o=e._ellipsoid,e=e.rectangle;return B.Geometry._textureCoordinateRotationPoints(i,t,o,e)}(this)),this._textureCoordinateRotationPoints}}}),e.EllipseGeometry=x});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-5aeb1d5e","./Cartesian2-078e6458","./Check-f996273c","./ComponentDatatype-e44126e4","./when-ae2e0b60","./EllipseGeometryLibrary-46efe941","./GeometryAttribute-ccf4e0b6","./GeometryAttributes-5ce4955a","./GeometryInstance-3287a41d","./GeometryPipeline-dd278883","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(e,S,L,R,t,j,k,z,B,Y,m,C,p,y,d){"use strict";var H=new R.Cartesian3,U=new R.Cartesian3,Q=new R.Cartesian3,W=new R.Cartesian3,J=new R.Cartesian2,q=new L.Matrix3,ie=new L.Matrix3,Z=new L.Quaternion,K=new R.Cartesian3,X=new R.Cartesian3,$=new R.Cartesian3,ee=new R.Cartographic,te=new R.Cartesian3,re=new R.Cartesian2,ae=new R.Cartesian2;function c(e,t,r){for(var a=t.vertexFormat,i=t.center,n=t.semiMajorAxis,o=t.semiMinorAxis,s=t.ellipsoid,l=t.stRotation,u=r?e.length/3*2:e.length/3,m=t.shadowVolume,p=a.st?new Float32Array(2*u):void 0,y=a.normal?new Float32Array(3*u):void 0,c=a.tangent?new Float32Array(3*u):void 0,d=a.bitangent?new Float32Array(3*u):void 0,A=m?new Float32Array(3*u):void 0,h=0,x=K,f=X,g=$,_=new L.GeographicProjection(s),b=_.project(s.cartesianToCartographic(i,ee),te),i=s.scaleToGeodeticSurface(i,H),C=(s.geodeticSurfaceNormal(i,i),q),v=ie,w=(v=0!==l?(O=L.Quaternion.fromAxisAngle(i,l,Z),C=L.Matrix3.fromQuaternion(O,C),O=L.Quaternion.fromAxisAngle(i,-l,Z),L.Matrix3.fromQuaternion(O,v)):(C=L.Matrix3.clone(L.Matrix3.IDENTITY,C),L.Matrix3.clone(L.Matrix3.IDENTITY,v)),R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re)),M=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),E=e.length,I=r?E:0,T=I/3*2,G=0;G<E;G+=3){var N,P=G+1,F=G+2,V=R.Cartesian3.fromArray(e,G,H);a.st&&(N=L.Matrix3.multiplyByVector(C,V,U),N=_.project(s.cartesianToCartographic(N,ee),Q),R.Cartesian3.subtract(N,b,N),J.x=(N.x+n)/(2*n),J.y=(N.y+o)/(2*o),w.x=Math.min(J.x,w.x),w.y=Math.min(J.y,w.y),M.x=Math.max(J.x,M.x),M.y=Math.max(J.y,M.y),r&&(p[h+T]=J.x,p[h+1+T]=J.y),p[h++]=J.x,p[h++]=J.y),(a.normal||a.tangent||a.bitangent||m)&&(x=s.geodeticSurfaceNormal(V,x),m&&(A[G+I]=-x.x,A[P+I]=-x.y,A[F+I]=-x.z),a.normal||a.tangent||a.bitangent)&&((a.tangent||a.bitangent)&&(f=R.Cartesian3.normalize(R.Cartesian3.cross(R.Cartesian3.UNIT_Z,x,f),f),L.Matrix3.multiplyByVector(v,f,f)),a.normal&&(y[G]=x.x,y[P]=x.y,y[F]=x.z,r)&&(y[G+I]=-x.x,y[P+I]=-x.y,y[F+I]=-x.z),a.tangent&&(c[G]=f.x,c[P]=f.y,c[F]=f.z,r)&&(c[G+I]=-f.x,c[P+I]=-f.y,c[F+I]=-f.z),a.bitangent)&&(g=R.Cartesian3.normalize(R.Cartesian3.cross(x,f,g),g),d[G]=g.x,d[P]=g.y,d[F]=g.z,r)&&(d[G+I]=g.x,d[P+I]=g.y,d[F+I]=g.z)}if(a.st)for(var E=p.length,D=0;D<E;D+=2)p[D]=(p[D]-w.x)/(M.x-w.x),p[D+1]=(p[D+1]-w.y)/(M.y-w.y);var O,i=new Y.GeometryAttributes;return a.position&&(l=z.EllipseGeometryLibrary.raisePositionsToHeight(e,t,r),i.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:l})),a.st&&(i.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),a.normal&&(i.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),a.tangent&&(i.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),a.bitangent&&(i.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),m&&(i.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),r&&k.defined(t.offsetAttribute)&&(O=new Uint8Array(u),O=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(O,1,0,u/2):(l=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(O,l)),i.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:O})),i}function A(e){for(var t,r,a=new Array(e*(e+1)*12-6),i=0,n=0,o=1,s=0;s<3;s++)a[i++]=o++,a[i++]=n,a[i++]=o;for(s=2;s<e+1;++s){for(o=s*(s+1)-1,n=(s-1)*s-1,a[i++]=o++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=o++,a[i++]=n,a[i++]=o}for(t=2*e,++o,++n,s=0;s<t-1;++s)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;for(a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n++,a[i++]=n,++n,s=e-1;1<s;--s){for(a[i++]=n++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=n++,a[i++]=n++,a[i++]=o++}for(s=0;s<3;s++)a[i++]=n++,a[i++]=n,a[i++]=o;return a}var o=new R.Cartesian3;var h=new L.BoundingSphere,x=new L.BoundingSphere;function l(e){for(var t=e.center,r=e.ellipsoid,a=e.semiMajorAxis,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,H),e.height,H),r=(h.center=R.Cartesian3.add(t,i,h.center),h.radius=a,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,i),e.extrudedHeight,i),x.center=R.Cartesian3.add(t,i,x.center),x.radius=a,z.EllipseGeometryLibrary.computeEllipsePositions(e,!0,!0)),t=r.positions,i=r.numPts,a=r.outerPositions,r=L.BoundingSphere.union(h,x),n=c(t,e,!0),o=(u=A(i)).length,s=(u.length=2*o,t.length/3),l=0;l<o;l+=3)u[l+o]=u[l+2]+s,u[l+1+o]=u[l+1]+s,u[l+2+o]=u[l]+s;var i=p.IndexDatatype.createTypedArray(2*s/3,u),t=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),n=function(e,t){for(var r=t.vertexFormat,a=t.center,i=t.semiMajorAxis,n=t.semiMinorAxis,o=t.ellipsoid,s=t.height,l=t.extrudedHeight,u=t.stRotation,m=e.length/3*2,p=new Float64Array(3*m),y=r.st?new Float32Array(2*m):void 0,c=r.normal?new Float32Array(3*m):void 0,d=r.tangent?new Float32Array(3*m):void 0,A=r.bitangent?new Float32Array(3*m):void 0,h=t.shadowVolume,x=h?new Float32Array(3*m):void 0,f=0,g=K,_=X,b=$,C=new L.GeographicProjection(o),v=C.project(o.cartesianToCartographic(a,ee),te),a=o.scaleToGeodeticSurface(a,H),a=(o.geodeticSurfaceNormal(a,a),L.Quaternion.fromAxisAngle(a,u,Z)),w=L.Matrix3.fromQuaternion(a,q),M=R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re),E=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),I=(D=e.length)/3*2,T=0;T<D;T+=3){var G=T+1,N=T+2,P=R.Cartesian3.fromArray(e,T,H),F=(r.st&&(V=L.Matrix3.multiplyByVector(w,P,U),V=C.project(o.cartesianToCartographic(V,ee),Q),R.Cartesian3.subtract(V,v,V),J.x=(V.x+i)/(2*i),J.y=(V.y+n)/(2*n),M.x=Math.min(J.x,M.x),M.y=Math.min(J.y,M.y),E.x=Math.max(J.x,E.x),E.y=Math.max(J.y,E.y),y[f+I]=J.x,y[f+1+I]=J.y,y[f++]=J.x,y[f++]=J.y),P=o.scaleToGeodeticSurface(P,P),V=R.Cartesian3.clone(P,U),g=o.geodeticSurfaceNormal(P,g),h&&(x[T+D]=-g.x,x[G+D]=-g.y,x[N+D]=-g.z),R.Cartesian3.multiplyByScalar(g,s,W)),P=R.Cartesian3.add(P,F,P),F=R.Cartesian3.multiplyByScalar(g,l,F),V=R.Cartesian3.add(V,F,V);r.position&&(p[T+D]=V.x,p[G+D]=V.y,p[N+D]=V.z,p[T]=P.x,p[G]=P.y,p[N]=P.z),(r.normal||r.tangent||r.bitangent)&&(b=R.Cartesian3.clone(g,b),F=R.Cartesian3.fromArray(e,(T+3)%D,W),R.Cartesian3.subtract(F,P,F),P=R.Cartesian3.subtract(V,P,Q),g=R.Cartesian3.normalize(R.Cartesian3.cross(P,F,g),g),r.normal&&(c[T]=g.x,c[G]=g.y,c[N]=g.z,c[T+D]=g.x,c[G+D]=g.y,c[N+D]=g.z),r.tangent&&(_=R.Cartesian3.normalize(R.Cartesian3.cross(b,g,_),_),d[T]=_.x,d[G]=_.y,d[N]=_.z,d[T+D]=_.x,d[T+1+D]=_.y,d[T+2+D]=_.z),r.bitangent)&&(A[T]=b.x,A[G]=b.y,A[N]=b.z,A[T+D]=b.x,A[G+D]=b.y,A[N+D]=b.z)}if(r.st)for(var D=y.length,O=0;O<D;O+=2)y[O]=(y[O]-M.x)/(E.x-M.x),y[O+1]=(y[O+1]-M.y)/(E.y-M.y);return u=new Y.GeometryAttributes,r.position&&(u.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p})),r.st&&(u.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:y})),r.normal&&(u.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),r.tangent&&(u.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),r.bitangent&&(u.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),h&&(u.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:x})),k.defined(t.offsetAttribute)&&(a=new Uint8Array(m),a=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(a,1,0,m/2):(m=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(a,m)),u.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),u}(a,e),u=function(e){for(var t=e.length/3,r=p.IndexDatatype.createTypedArray(t,6*t),a=0,i=0;i<t;i++){var n=i,o=i+t,s=(n+1)%t,l=s+t;r[a++]=n,r[a++]=o,r[a++]=s,r[a++]=s,r[a++]=o,r[a++]=l}return r}(a),i=p.IndexDatatype.createTypedArray(2*a.length/3,u),e=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),a=C.GeometryPipeline.combineInstances([new m.GeometryInstance({geometry:t}),new m.GeometryInstance({geometry:e})]);return{boundingSphere:r,attributes:a[0].attributes,indices:a[0].indices}}function s(e,t,r,a,i,n,o){for(var s=z.EllipseGeometryLibrary.computeEllipsePositions({center:e,semiMajorAxis:t,semiMinorAxis:r,rotation:a,granularity:i},!1,!0).outerPositions,l=s.length/3,u=new Array(l),m=0;m<l;++m)u[m]=R.Cartesian3.fromArray(s,3*m);e=R.Rectangle.fromCartesianArray(u,n,o);return e.width>y.CesiumMath.PI&&(e.north=0<e.north?y.CesiumMath.PI_OVER_TWO-y.CesiumMath.EPSILON7:e.north,e.south=e.south<0?y.CesiumMath.EPSILON7-y.CesiumMath.PI_OVER_TWO:e.south,e.east=y.CesiumMath.PI,e.west=-y.CesiumMath.PI),e}function f(e){var t=(e=k.defaultValue(e,k.defaultValue.EMPTY_OBJECT)).center,r=k.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),a=e.semiMajorAxis,i=e.semiMinorAxis,n=k.defaultValue(e.granularity,y.CesiumMath.RADIANS_PER_DEGREE),o=k.defaultValue(e.vertexFormat,d.VertexFormat.DEFAULT),s=k.defaultValue(e.height,0),l=k.defaultValue(e.extrudedHeight,s);this._center=R.Cartesian3.clone(t),this._semiMajorAxis=a,this._semiMinorAxis=i,this._ellipsoid=R.Ellipsoid.clone(r),this._rotation=k.defaultValue(e.rotation,0),this._stRotation=k.defaultValue(e.stRotation,0),this._height=Math.max(l,s),this._granularity=n,this._vertexFormat=d.VertexFormat.clone(o),this._extrudedHeight=Math.min(l,s),this._shadowVolume=k.defaultValue(e.shadowVolume,!1),this._workerName="createEllipseGeometry",this._offsetAttribute=e.offsetAttribute,this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0}f.packedLength=R.Cartesian3.packedLength+R.Ellipsoid.packedLength+d.VertexFormat.packedLength+9,f.pack=function(e,t,r){return r=k.defaultValue(r,0),R.Cartesian3.pack(e._center,t,r),r+=R.Cartesian3.packedLength,R.Ellipsoid.pack(e._ellipsoid,t,r),r+=R.Ellipsoid.packedLength,d.VertexFormat.pack(e._vertexFormat,t,r),r+=d.VertexFormat.packedLength,t[r++]=e._semiMajorAxis,t[r++]=e._semiMinorAxis,t[r++]=e._rotation,t[r++]=e._stRotation,t[r++]=e._height,t[r++]=e._granularity,t[r++]=e._extrudedHeight,t[r++]=e._shadowVolume?1:0,t[r]=k.defaultValue(e._offsetAttribute,-1),t};var g=new R.Cartesian3,_=new R.Ellipsoid,v=new d.VertexFormat,b={center:g,ellipsoid:_,vertexFormat:v,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,stRotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0};f.unpack=function(e,t,r){t=k.defaultValue(t,0);var a=R.Cartesian3.unpack(e,t,g),i=(t+=R.Cartesian3.packedLength,R.Ellipsoid.unpack(e,t,_)),n=(t+=R.Ellipsoid.packedLength,d.VertexFormat.unpack(e,t,v)),o=(t+=d.VertexFormat.packedLength,e[t++]),s=e[t++],l=e[t++],u=e[t++],m=e[t++],p=e[t++],y=e[t++],c=1===e[t++],e=e[t];return k.defined(r)?(r._center=R.Cartesian3.clone(a,r._center),r._ellipsoid=R.Ellipsoid.clone(i,r._ellipsoid),r._vertexFormat=d.VertexFormat.clone(n,r._vertexFormat),r._semiMajorAxis=o,r._semiMinorAxis=s,r._rotation=l,r._stRotation=u,r._height=m,r._granularity=p,r._extrudedHeight=y,r._shadowVolume=c,r._offsetAttribute=-1===e?void 0:e,r):(b.height=m,b.extrudedHeight=y,b.granularity=p,b.stRotation=u,b.rotation=l,b.semiMajorAxis=o,b.semiMinorAxis=s,b.shadowVolume=c,b.offsetAttribute=-1===e?void 0:e,new f(b))},f.computeRectangle=function(e,t){var r=(e=k.defaultValue(e,k.defaultValue.EMPTY_OBJECT)).center,a=k.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),i=e.semiMajorAxis,n=e.semiMinorAxis,o=k.defaultValue(e.granularity,y.CesiumMath.RADIANS_PER_DEGREE);return s(r,i,n,k.defaultValue(e.rotation,0),o,a,t)},f.createGeometry=function(e){var t,r,a,i,n;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return n=e._height,a=e._extrudedHeight,r=!y.CesiumMath.equalsEpsilon(n,a,0,y.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),n={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:n,granularity:e._granularity,vertexFormat:e._vertexFormat,stRotation:e._stRotation},r?(n.extrudedHeight=a,n.shadowVolume=e._shadowVolume,n.offsetAttribute=e._offsetAttribute,t=l(n)):(a=(r=n).center,o=R.Cartesian3.multiplyByScalar(r.ellipsoid.geodeticSurfaceNormal(a,o),r.height,o),o=R.Cartesian3.add(a,o,o),a=new L.BoundingSphere(o,r.semiMajorAxis),i=(n=z.EllipseGeometryLibrary.computeEllipsePositions(r,!0,!1)).positions,n=n.numPts,r=c(i,r,!1),n=A(n),t={boundingSphere:a,attributes:r,indices:p.IndexDatatype.createTypedArray(i.length/3,n)},k.defined(e._offsetAttribute)&&(a=t.attributes.position.values.length,r=new Uint8Array(a/3),i=e._offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(r,i),t.attributes.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r}))),new B.Geometry({attributes:t.attributes,indices:t.indices,primitiveType:B.PrimitiveType.TRIANGLES,boundingSphere:t.boundingSphere,offsetAttribute:e._offsetAttribute})},f.createShadowVolume=function(e,t,r){var a=e._granularity,i=e._ellipsoid,t=t(a,i),r=r(a,i);return new f({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:i,rotation:e._rotation,stRotation:e._stRotation,granularity:a,extrudedHeight:t,height:r,vertexFormat:d.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(f.prototype,{rectangle:{get:function(){return k.defined(this._rectangle)||(this._rectangle=s(this._center,this._semiMajorAxis,this._semiMinorAxis,this._rotation,this._granularity,this._ellipsoid)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){return k.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(e){var t=-e._stRotation;if(0==t)return[0,0,0,1,1,0];for(var r=z.EllipseGeometryLibrary.computeEllipsePositions({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,rotation:e._rotation,granularity:e._granularity},!1,!0).outerPositions,a=r.length/3,i=new Array(a),n=0;n<a;++n)i[n]=R.Cartesian3.fromArray(r,3*n);var o=e._ellipsoid,e=e.rectangle;return B.Geometry._textureCoordinateRotationPoints(i,t,o,e)}(this)),this._textureCoordinateRotationPoints}}}),e.EllipseGeometry=f});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-984eb057","./Cartesian2-078e6458","./Check-f996273c","./ComponentDatatype-e44126e4","./when-ae2e0b60","./EllipseGeometryLibrary-4c7e22bb","./GeometryAttribute-51995e5a","./GeometryAttributes-5ce4955a","./GeometryInstance-75eda02f","./GeometryPipeline-868a22d5","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(e,S,L,R,t,j,k,z,B,Y,m,C,p,y,d){"use strict";var H=new R.Cartesian3,U=new R.Cartesian3,Q=new R.Cartesian3,W=new R.Cartesian3,J=new R.Cartesian2,q=new L.Matrix3,ie=new L.Matrix3,Z=new L.Quaternion,K=new R.Cartesian3,X=new R.Cartesian3,$=new R.Cartesian3,ee=new R.Cartographic,te=new R.Cartesian3,re=new R.Cartesian2,ae=new R.Cartesian2;function c(e,t,r){for(var a=t.vertexFormat,i=t.center,n=t.semiMajorAxis,o=t.semiMinorAxis,s=t.ellipsoid,l=t.stRotation,u=r?e.length/3*2:e.length/3,m=t.shadowVolume,p=a.st?new Float32Array(2*u):void 0,y=a.normal?new Float32Array(3*u):void 0,c=a.tangent?new Float32Array(3*u):void 0,d=a.bitangent?new Float32Array(3*u):void 0,A=m?new Float32Array(3*u):void 0,h=0,x=K,f=X,g=$,_=new L.GeographicProjection(s),b=_.project(s.cartesianToCartographic(i,ee),te),i=s.scaleToGeodeticSurface(i,H),C=(s.geodeticSurfaceNormal(i,i),q),v=ie,w=(v=0!==l?(O=L.Quaternion.fromAxisAngle(i,l,Z),C=L.Matrix3.fromQuaternion(O,C),O=L.Quaternion.fromAxisAngle(i,-l,Z),L.Matrix3.fromQuaternion(O,v)):(C=L.Matrix3.clone(L.Matrix3.IDENTITY,C),L.Matrix3.clone(L.Matrix3.IDENTITY,v)),R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re)),M=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),E=e.length,I=r?E:0,T=I/3*2,G=0;G<E;G+=3){var N,P=G+1,F=G+2,V=R.Cartesian3.fromArray(e,G,H);a.st&&(N=L.Matrix3.multiplyByVector(C,V,U),N=_.project(s.cartesianToCartographic(N,ee),Q),R.Cartesian3.subtract(N,b,N),J.x=(N.x+n)/(2*n),J.y=(N.y+o)/(2*o),w.x=Math.min(J.x,w.x),w.y=Math.min(J.y,w.y),M.x=Math.max(J.x,M.x),M.y=Math.max(J.y,M.y),r&&(p[h+T]=J.x,p[h+1+T]=J.y),p[h++]=J.x,p[h++]=J.y),(a.normal||a.tangent||a.bitangent||m)&&(x=s.geodeticSurfaceNormal(V,x),m&&(A[G+I]=-x.x,A[P+I]=-x.y,A[F+I]=-x.z),a.normal||a.tangent||a.bitangent)&&((a.tangent||a.bitangent)&&(f=R.Cartesian3.normalize(R.Cartesian3.cross(R.Cartesian3.UNIT_Z,x,f),f),L.Matrix3.multiplyByVector(v,f,f)),a.normal&&(y[G]=x.x,y[P]=x.y,y[F]=x.z,r)&&(y[G+I]=-x.x,y[P+I]=-x.y,y[F+I]=-x.z),a.tangent&&(c[G]=f.x,c[P]=f.y,c[F]=f.z,r)&&(c[G+I]=-f.x,c[P+I]=-f.y,c[F+I]=-f.z),a.bitangent)&&(g=R.Cartesian3.normalize(R.Cartesian3.cross(x,f,g),g),d[G]=g.x,d[P]=g.y,d[F]=g.z,r)&&(d[G+I]=g.x,d[P+I]=g.y,d[F+I]=g.z)}if(a.st)for(var E=p.length,D=0;D<E;D+=2)p[D]=(p[D]-w.x)/(M.x-w.x),p[D+1]=(p[D+1]-w.y)/(M.y-w.y);var O,i=new Y.GeometryAttributes;return a.position&&(l=z.EllipseGeometryLibrary.raisePositionsToHeight(e,t,r),i.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:l})),a.st&&(i.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),a.normal&&(i.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),a.tangent&&(i.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),a.bitangent&&(i.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),m&&(i.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),r&&k.defined(t.offsetAttribute)&&(O=new Uint8Array(u),O=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(O,1,0,u/2):(l=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(O,l)),i.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:O})),i}function A(e){for(var t,r,a=new Array(e*(e+1)*12-6),i=0,n=0,o=1,s=0;s<3;s++)a[i++]=o++,a[i++]=n,a[i++]=o;for(s=2;s<e+1;++s){for(o=s*(s+1)-1,n=(s-1)*s-1,a[i++]=o++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=o++,a[i++]=n,a[i++]=o}for(t=2*e,++o,++n,s=0;s<t-1;++s)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;for(a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n++,a[i++]=n,++n,s=e-1;1<s;--s){for(a[i++]=n++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=n++,a[i++]=n++,a[i++]=o++}for(s=0;s<3;s++)a[i++]=n++,a[i++]=n,a[i++]=o;return a}var o=new R.Cartesian3;var h=new L.BoundingSphere,x=new L.BoundingSphere;function l(e){for(var t=e.center,r=e.ellipsoid,a=e.semiMajorAxis,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,H),e.height,H),r=(h.center=R.Cartesian3.add(t,i,h.center),h.radius=a,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,i),e.extrudedHeight,i),x.center=R.Cartesian3.add(t,i,x.center),x.radius=a,z.EllipseGeometryLibrary.computeEllipsePositions(e,!0,!0)),t=r.positions,i=r.numPts,a=r.outerPositions,r=L.BoundingSphere.union(h,x),n=c(t,e,!0),o=(u=A(i)).length,s=(u.length=2*o,t.length/3),l=0;l<o;l+=3)u[l+o]=u[l+2]+s,u[l+1+o]=u[l+1]+s,u[l+2+o]=u[l]+s;var i=p.IndexDatatype.createTypedArray(2*s/3,u),t=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),n=function(e,t){for(var r=t.vertexFormat,a=t.center,i=t.semiMajorAxis,n=t.semiMinorAxis,o=t.ellipsoid,s=t.height,l=t.extrudedHeight,u=t.stRotation,m=e.length/3*2,p=new Float64Array(3*m),y=r.st?new Float32Array(2*m):void 0,c=r.normal?new Float32Array(3*m):void 0,d=r.tangent?new Float32Array(3*m):void 0,A=r.bitangent?new Float32Array(3*m):void 0,h=t.shadowVolume,x=h?new Float32Array(3*m):void 0,f=0,g=K,_=X,b=$,C=new L.GeographicProjection(o),v=C.project(o.cartesianToCartographic(a,ee),te),a=o.scaleToGeodeticSurface(a,H),a=(o.geodeticSurfaceNormal(a,a),L.Quaternion.fromAxisAngle(a,u,Z)),w=L.Matrix3.fromQuaternion(a,q),M=R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re),E=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),I=(D=e.length)/3*2,T=0;T<D;T+=3){var G=T+1,N=T+2,P=R.Cartesian3.fromArray(e,T,H),F=(r.st&&(V=L.Matrix3.multiplyByVector(w,P,U),V=C.project(o.cartesianToCartographic(V,ee),Q),R.Cartesian3.subtract(V,v,V),J.x=(V.x+i)/(2*i),J.y=(V.y+n)/(2*n),M.x=Math.min(J.x,M.x),M.y=Math.min(J.y,M.y),E.x=Math.max(J.x,E.x),E.y=Math.max(J.y,E.y),y[f+I]=J.x,y[f+1+I]=J.y,y[f++]=J.x,y[f++]=J.y),P=o.scaleToGeodeticSurface(P,P),V=R.Cartesian3.clone(P,U),g=o.geodeticSurfaceNormal(P,g),h&&(x[T+D]=-g.x,x[G+D]=-g.y,x[N+D]=-g.z),R.Cartesian3.multiplyByScalar(g,s,W)),P=R.Cartesian3.add(P,F,P),F=R.Cartesian3.multiplyByScalar(g,l,F),V=R.Cartesian3.add(V,F,V);r.position&&(p[T+D]=V.x,p[G+D]=V.y,p[N+D]=V.z,p[T]=P.x,p[G]=P.y,p[N]=P.z),(r.normal||r.tangent||r.bitangent)&&(b=R.Cartesian3.clone(g,b),F=R.Cartesian3.fromArray(e,(T+3)%D,W),R.Cartesian3.subtract(F,P,F),P=R.Cartesian3.subtract(V,P,Q),g=R.Cartesian3.normalize(R.Cartesian3.cross(P,F,g),g),r.normal&&(c[T]=g.x,c[G]=g.y,c[N]=g.z,c[T+D]=g.x,c[G+D]=g.y,c[N+D]=g.z),r.tangent&&(_=R.Cartesian3.normalize(R.Cartesian3.cross(b,g,_),_),d[T]=_.x,d[G]=_.y,d[N]=_.z,d[T+D]=_.x,d[T+1+D]=_.y,d[T+2+D]=_.z),r.bitangent)&&(A[T]=b.x,A[G]=b.y,A[N]=b.z,A[T+D]=b.x,A[G+D]=b.y,A[N+D]=b.z)}if(r.st)for(var D=y.length,O=0;O<D;O+=2)y[O]=(y[O]-M.x)/(E.x-M.x),y[O+1]=(y[O+1]-M.y)/(E.y-M.y);return u=new Y.GeometryAttributes,r.position&&(u.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p})),r.st&&(u.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:y})),r.normal&&(u.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),r.tangent&&(u.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),r.bitangent&&(u.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),h&&(u.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:x})),k.defined(t.offsetAttribute)&&(a=new Uint8Array(m),a=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(a,1,0,m/2):(m=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(a,m)),u.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),u}(a,e),u=function(e){for(var t=e.length/3,r=p.IndexDatatype.createTypedArray(t,6*t),a=0,i=0;i<t;i++){var n=i,o=i+t,s=(n+1)%t,l=s+t;r[a++]=n,r[a++]=o,r[a++]=s,r[a++]=s,r[a++]=o,r[a++]=l}return r}(a),i=p.IndexDatatype.createTypedArray(2*a.length/3,u),e=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),a=C.GeometryPipeline.combineInstances([new m.GeometryInstance({geometry:t}),new m.GeometryInstance({geometry:e})]);return{boundingSphere:r,attributes:a[0].attributes,indices:a[0].indices}}function s(e,t,r,a,i,n,o){for(var s=z.EllipseGeometryLibrary.computeEllipsePositions({center:e,semiMajorAxis:t,semiMinorAxis:r,rotation:a,granularity:i},!1,!0).outerPositions,l=s.length/3,u=new Array(l),m=0;m<l;++m)u[m]=R.Cartesian3.fromArray(s,3*m);e=R.Rectangle.fromCartesianArray(u,n,o);return e.width>y.CesiumMath.PI&&(e.north=0<e.north?y.CesiumMath.PI_OVER_TWO-y.CesiumMath.EPSILON7:e.north,e.south=e.south<0?y.CesiumMath.EPSILON7-y.CesiumMath.PI_OVER_TWO:e.south,e.east=y.CesiumMath.PI,e.west=-y.CesiumMath.PI),e}function f(e){var t=(e=k.defaultValue(e,k.defaultValue.EMPTY_OBJECT)).center,r=k.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),a=e.semiMajorAxis,i=e.semiMinorAxis,n=k.defaultValue(e.granularity,y.CesiumMath.RADIANS_PER_DEGREE),o=k.defaultValue(e.vertexFormat,d.VertexFormat.DEFAULT),s=k.defaultValue(e.height,0),l=k.defaultValue(e.extrudedHeight,s);this._center=R.Cartesian3.clone(t),this._semiMajorAxis=a,this._semiMinorAxis=i,this._ellipsoid=R.Ellipsoid.clone(r),this._rotation=k.defaultValue(e.rotation,0),this._stRotation=k.defaultValue(e.stRotation,0),this._height=Math.max(l,s),this._granularity=n,this._vertexFormat=d.VertexFormat.clone(o),this._extrudedHeight=Math.min(l,s),this._shadowVolume=k.defaultValue(e.shadowVolume,!1),this._workerName="createEllipseGeometry",this._offsetAttribute=e.offsetAttribute,this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0}f.packedLength=R.Cartesian3.packedLength+R.Ellipsoid.packedLength+d.VertexFormat.packedLength+9,f.pack=function(e,t,r){return r=k.defaultValue(r,0),R.Cartesian3.pack(e._center,t,r),r+=R.Cartesian3.packedLength,R.Ellipsoid.pack(e._ellipsoid,t,r),r+=R.Ellipsoid.packedLength,d.VertexFormat.pack(e._vertexFormat,t,r),r+=d.VertexFormat.packedLength,t[r++]=e._semiMajorAxis,t[r++]=e._semiMinorAxis,t[r++]=e._rotation,t[r++]=e._stRotation,t[r++]=e._height,t[r++]=e._granularity,t[r++]=e._extrudedHeight,t[r++]=e._shadowVolume?1:0,t[r]=k.defaultValue(e._offsetAttribute,-1),t};var g=new R.Cartesian3,_=new R.Ellipsoid,v=new d.VertexFormat,b={center:g,ellipsoid:_,vertexFormat:v,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,stRotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0};f.unpack=function(e,t,r){t=k.defaultValue(t,0);var a=R.Cartesian3.unpack(e,t,g),i=(t+=R.Cartesian3.packedLength,R.Ellipsoid.unpack(e,t,_)),n=(t+=R.Ellipsoid.packedLength,d.VertexFormat.unpack(e,t,v)),o=(t+=d.VertexFormat.packedLength,e[t++]),s=e[t++],l=e[t++],u=e[t++],m=e[t++],p=e[t++],y=e[t++],c=1===e[t++],e=e[t];return k.defined(r)?(r._center=R.Cartesian3.clone(a,r._center),r._ellipsoid=R.Ellipsoid.clone(i,r._ellipsoid),r._vertexFormat=d.VertexFormat.clone(n,r._vertexFormat),r._semiMajorAxis=o,r._semiMinorAxis=s,r._rotation=l,r._stRotation=u,r._height=m,r._granularity=p,r._extrudedHeight=y,r._shadowVolume=c,r._offsetAttribute=-1===e?void 0:e,r):(b.height=m,b.extrudedHeight=y,b.granularity=p,b.stRotation=u,b.rotation=l,b.semiMajorAxis=o,b.semiMinorAxis=s,b.shadowVolume=c,b.offsetAttribute=-1===e?void 0:e,new f(b))},f.computeRectangle=function(e,t){var r=(e=k.defaultValue(e,k.defaultValue.EMPTY_OBJECT)).center,a=k.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),i=e.semiMajorAxis,n=e.semiMinorAxis,o=k.defaultValue(e.granularity,y.CesiumMath.RADIANS_PER_DEGREE);return s(r,i,n,k.defaultValue(e.rotation,0),o,a,t)},f.createGeometry=function(e){var t,r,a,i,n;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return n=e._height,a=e._extrudedHeight,r=!y.CesiumMath.equalsEpsilon(n,a,0,y.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),n={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:n,granularity:e._granularity,vertexFormat:e._vertexFormat,stRotation:e._stRotation},r?(n.extrudedHeight=a,n.shadowVolume=e._shadowVolume,n.offsetAttribute=e._offsetAttribute,t=l(n)):(a=(r=n).center,o=R.Cartesian3.multiplyByScalar(r.ellipsoid.geodeticSurfaceNormal(a,o),r.height,o),o=R.Cartesian3.add(a,o,o),a=new L.BoundingSphere(o,r.semiMajorAxis),i=(n=z.EllipseGeometryLibrary.computeEllipsePositions(r,!0,!1)).positions,n=n.numPts,r=c(i,r,!1),n=A(n),t={boundingSphere:a,attributes:r,indices:p.IndexDatatype.createTypedArray(i.length/3,n)},k.defined(e._offsetAttribute)&&(a=t.attributes.position.values.length,r=new Uint8Array(a/3),i=e._offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(r,i),t.attributes.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r}))),new B.Geometry({attributes:t.attributes,indices:t.indices,primitiveType:B.PrimitiveType.TRIANGLES,boundingSphere:t.boundingSphere,offsetAttribute:e._offsetAttribute})},f.createShadowVolume=function(e,t,r){var a=e._granularity,i=e._ellipsoid,t=t(a,i),r=r(a,i);return new f({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:i,rotation:e._rotation,stRotation:e._stRotation,granularity:a,extrudedHeight:t,height:r,vertexFormat:d.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(f.prototype,{rectangle:{get:function(){return k.defined(this._rectangle)||(this._rectangle=s(this._center,this._semiMajorAxis,this._semiMinorAxis,this._rotation,this._granularity,this._ellipsoid)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){return k.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(e){var t=-e._stRotation;if(0==t)return[0,0,0,1,1,0];for(var r=z.EllipseGeometryLibrary.computeEllipsePositions({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,rotation:e._rotation,granularity:e._granularity},!1,!0).outerPositions,a=r.length/3,i=new Array(a),n=0;n<a;++n)i[n]=R.Cartesian3.fromArray(r,3*n);var o=e._ellipsoid,e=e.rectangle;return B.Geometry._textureCoordinateRotationPoints(i,t,o,e)}(this)),this._textureCoordinateRotationPoints}}}),e.EllipseGeometry=f});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-713e2e92","./Cartesian2-c1eb9da0","./Check-f996273c","./ComponentDatatype-e44126e4","./when-ae2e0b60","./EllipseGeometryLibrary-716ccbc1","./GeometryAttribute-e03451d8","./GeometryAttributes-5ce4955a","./GeometryInstance-5729d1a7","./GeometryPipeline-160871a5","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(e,S,L,R,t,j,k,z,B,Y,m,C,p,y,d){"use strict";var H=new R.Cartesian3,U=new R.Cartesian3,Q=new R.Cartesian3,W=new R.Cartesian3,J=new R.Cartesian2,q=new L.Matrix3,ie=new L.Matrix3,Z=new L.Quaternion,K=new R.Cartesian3,X=new R.Cartesian3,$=new R.Cartesian3,ee=new R.Cartographic,te=new R.Cartesian3,re=new R.Cartesian2,ae=new R.Cartesian2;function c(e,t,r){for(var a=t.vertexFormat,i=t.center,n=t.semiMajorAxis,o=t.semiMinorAxis,s=t.ellipsoid,l=t.stRotation,u=r?e.length/3*2:e.length/3,m=t.shadowVolume,p=a.st?new Float32Array(2*u):void 0,y=a.normal?new Float32Array(3*u):void 0,c=a.tangent?new Float32Array(3*u):void 0,d=a.bitangent?new Float32Array(3*u):void 0,A=m?new Float32Array(3*u):void 0,h=0,x=K,f=X,g=$,_=new L.GeographicProjection(s),b=_.project(s.cartesianToCartographic(i,ee),te),i=s.scaleToGeodeticSurface(i,H),C=(s.geodeticSurfaceNormal(i,i),q),v=ie,w=(v=0!==l?(O=L.Quaternion.fromAxisAngle(i,l,Z),C=L.Matrix3.fromQuaternion(O,C),O=L.Quaternion.fromAxisAngle(i,-l,Z),L.Matrix3.fromQuaternion(O,v)):(C=L.Matrix3.clone(L.Matrix3.IDENTITY,C),L.Matrix3.clone(L.Matrix3.IDENTITY,v)),R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re)),M=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),E=e.length,I=r?E:0,T=I/3*2,G=0;G<E;G+=3){var N,P=G+1,F=G+2,V=R.Cartesian3.fromArray(e,G,H);a.st&&(N=L.Matrix3.multiplyByVector(C,V,U),N=_.project(s.cartesianToCartographic(N,ee),Q),R.Cartesian3.subtract(N,b,N),J.x=(N.x+n)/(2*n),J.y=(N.y+o)/(2*o),w.x=Math.min(J.x,w.x),w.y=Math.min(J.y,w.y),M.x=Math.max(J.x,M.x),M.y=Math.max(J.y,M.y),r&&(p[h+T]=J.x,p[h+1+T]=J.y),p[h++]=J.x,p[h++]=J.y),(a.normal||a.tangent||a.bitangent||m)&&(x=s.geodeticSurfaceNormal(V,x),m&&(A[G+I]=-x.x,A[P+I]=-x.y,A[F+I]=-x.z),a.normal||a.tangent||a.bitangent)&&((a.tangent||a.bitangent)&&(f=R.Cartesian3.normalize(R.Cartesian3.cross(R.Cartesian3.UNIT_Z,x,f),f),L.Matrix3.multiplyByVector(v,f,f)),a.normal&&(y[G]=x.x,y[P]=x.y,y[F]=x.z,r)&&(y[G+I]=-x.x,y[P+I]=-x.y,y[F+I]=-x.z),a.tangent&&(c[G]=f.x,c[P]=f.y,c[F]=f.z,r)&&(c[G+I]=-f.x,c[P+I]=-f.y,c[F+I]=-f.z),a.bitangent)&&(g=R.Cartesian3.normalize(R.Cartesian3.cross(x,f,g),g),d[G]=g.x,d[P]=g.y,d[F]=g.z,r)&&(d[G+I]=g.x,d[P+I]=g.y,d[F+I]=g.z)}if(a.st)for(var E=p.length,D=0;D<E;D+=2)p[D]=(p[D]-w.x)/(M.x-w.x),p[D+1]=(p[D+1]-w.y)/(M.y-w.y);var O,i=new Y.GeometryAttributes;return a.position&&(l=z.EllipseGeometryLibrary.raisePositionsToHeight(e,t,r),i.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:l})),a.st&&(i.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),a.normal&&(i.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),a.tangent&&(i.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),a.bitangent&&(i.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),m&&(i.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),r&&k.defined(t.offsetAttribute)&&(O=new Uint8Array(u),O=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(O,1,0,u/2):(l=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(O,l)),i.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:O})),i}function A(e){for(var t,r,a=new Array(e*(e+1)*12-6),i=0,n=0,o=1,s=0;s<3;s++)a[i++]=o++,a[i++]=n,a[i++]=o;for(s=2;s<e+1;++s){for(o=s*(s+1)-1,n=(s-1)*s-1,a[i++]=o++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=o++,a[i++]=n,a[i++]=o}for(t=2*e,++o,++n,s=0;s<t-1;++s)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;for(a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n++,a[i++]=n,++n,s=e-1;1<s;--s){for(a[i++]=n++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=n++,a[i++]=n++,a[i++]=o++}for(s=0;s<3;s++)a[i++]=n++,a[i++]=n,a[i++]=o;return a}var o=new R.Cartesian3;var h=new L.BoundingSphere,x=new L.BoundingSphere;function l(e){for(var t=e.center,r=e.ellipsoid,a=e.semiMajorAxis,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,H),e.height,H),r=(h.center=R.Cartesian3.add(t,i,h.center),h.radius=a,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,i),e.extrudedHeight,i),x.center=R.Cartesian3.add(t,i,x.center),x.radius=a,z.EllipseGeometryLibrary.computeEllipsePositions(e,!0,!0)),t=r.positions,i=r.numPts,a=r.outerPositions,r=L.BoundingSphere.union(h,x),n=c(t,e,!0),o=(u=A(i)).length,s=(u.length=2*o,t.length/3),l=0;l<o;l+=3)u[l+o]=u[l+2]+s,u[l+1+o]=u[l+1]+s,u[l+2+o]=u[l]+s;var i=p.IndexDatatype.createTypedArray(2*s/3,u),t=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),n=function(e,t){for(var r=t.vertexFormat,a=t.center,i=t.semiMajorAxis,n=t.semiMinorAxis,o=t.ellipsoid,s=t.height,l=t.extrudedHeight,u=t.stRotation,m=e.length/3*2,p=new Float64Array(3*m),y=r.st?new Float32Array(2*m):void 0,c=r.normal?new Float32Array(3*m):void 0,d=r.tangent?new Float32Array(3*m):void 0,A=r.bitangent?new Float32Array(3*m):void 0,h=t.shadowVolume,x=h?new Float32Array(3*m):void 0,f=0,g=K,_=X,b=$,C=new L.GeographicProjection(o),v=C.project(o.cartesianToCartographic(a,ee),te),a=o.scaleToGeodeticSurface(a,H),a=(o.geodeticSurfaceNormal(a,a),L.Quaternion.fromAxisAngle(a,u,Z)),w=L.Matrix3.fromQuaternion(a,q),M=R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re),E=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),I=(D=e.length)/3*2,T=0;T<D;T+=3){var G=T+1,N=T+2,P=R.Cartesian3.fromArray(e,T,H),F=(r.st&&(V=L.Matrix3.multiplyByVector(w,P,U),V=C.project(o.cartesianToCartographic(V,ee),Q),R.Cartesian3.subtract(V,v,V),J.x=(V.x+i)/(2*i),J.y=(V.y+n)/(2*n),M.x=Math.min(J.x,M.x),M.y=Math.min(J.y,M.y),E.x=Math.max(J.x,E.x),E.y=Math.max(J.y,E.y),y[f+I]=J.x,y[f+1+I]=J.y,y[f++]=J.x,y[f++]=J.y),P=o.scaleToGeodeticSurface(P,P),V=R.Cartesian3.clone(P,U),g=o.geodeticSurfaceNormal(P,g),h&&(x[T+D]=-g.x,x[G+D]=-g.y,x[N+D]=-g.z),R.Cartesian3.multiplyByScalar(g,s,W)),P=R.Cartesian3.add(P,F,P),F=R.Cartesian3.multiplyByScalar(g,l,F),V=R.Cartesian3.add(V,F,V);r.position&&(p[T+D]=V.x,p[G+D]=V.y,p[N+D]=V.z,p[T]=P.x,p[G]=P.y,p[N]=P.z),(r.normal||r.tangent||r.bitangent)&&(b=R.Cartesian3.clone(g,b),F=R.Cartesian3.fromArray(e,(T+3)%D,W),R.Cartesian3.subtract(F,P,F),P=R.Cartesian3.subtract(V,P,Q),g=R.Cartesian3.normalize(R.Cartesian3.cross(P,F,g),g),r.normal&&(c[T]=g.x,c[G]=g.y,c[N]=g.z,c[T+D]=g.x,c[G+D]=g.y,c[N+D]=g.z),r.tangent&&(_=R.Cartesian3.normalize(R.Cartesian3.cross(b,g,_),_),d[T]=_.x,d[G]=_.y,d[N]=_.z,d[T+D]=_.x,d[T+1+D]=_.y,d[T+2+D]=_.z),r.bitangent)&&(A[T]=b.x,A[G]=b.y,A[N]=b.z,A[T+D]=b.x,A[G+D]=b.y,A[N+D]=b.z)}if(r.st)for(var D=y.length,O=0;O<D;O+=2)y[O]=(y[O]-M.x)/(E.x-M.x),y[O+1]=(y[O+1]-M.y)/(E.y-M.y);return u=new Y.GeometryAttributes,r.position&&(u.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p})),r.st&&(u.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:y})),r.normal&&(u.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),r.tangent&&(u.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),r.bitangent&&(u.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),h&&(u.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:x})),k.defined(t.offsetAttribute)&&(a=new Uint8Array(m),a=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(a,1,0,m/2):(m=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(a,m)),u.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),u}(a,e),u=function(e){for(var t=e.length/3,r=p.IndexDatatype.createTypedArray(t,6*t),a=0,i=0;i<t;i++){var n=i,o=i+t,s=(n+1)%t,l=s+t;r[a++]=n,r[a++]=o,r[a++]=s,r[a++]=s,r[a++]=o,r[a++]=l}return r}(a),i=p.IndexDatatype.createTypedArray(2*a.length/3,u),e=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),a=C.GeometryPipeline.combineInstances([new m.GeometryInstance({geometry:t}),new m.GeometryInstance({geometry:e})]);return{boundingSphere:r,attributes:a[0].attributes,indices:a[0].indices}}function s(e,t,r,a,i,n,o){for(var s=z.EllipseGeometryLibrary.computeEllipsePositions({center:e,semiMajorAxis:t,semiMinorAxis:r,rotation:a,granularity:i},!1,!0).outerPositions,l=s.length/3,u=new Array(l),m=0;m<l;++m)u[m]=R.Cartesian3.fromArray(s,3*m);e=R.Rectangle.fromCartesianArray(u,n,o);return e.width>y.CesiumMath.PI&&(e.north=0<e.north?y.CesiumMath.PI_OVER_TWO-y.CesiumMath.EPSILON7:e.north,e.south=e.south<0?y.CesiumMath.EPSILON7-y.CesiumMath.PI_OVER_TWO:e.south,e.east=y.CesiumMath.PI,e.west=-y.CesiumMath.PI),e}function f(e){var t=(e=k.defaultValue(e,k.defaultValue.EMPTY_OBJECT)).center,r=k.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),a=e.semiMajorAxis,i=e.semiMinorAxis,n=k.defaultValue(e.granularity,y.CesiumMath.RADIANS_PER_DEGREE),o=k.defaultValue(e.vertexFormat,d.VertexFormat.DEFAULT),s=k.defaultValue(e.height,0),l=k.defaultValue(e.extrudedHeight,s);this._center=R.Cartesian3.clone(t),this._semiMajorAxis=a,this._semiMinorAxis=i,this._ellipsoid=R.Ellipsoid.clone(r),this._rotation=k.defaultValue(e.rotation,0),this._stRotation=k.defaultValue(e.stRotation,0),this._height=Math.max(l,s),this._granularity=n,this._vertexFormat=d.VertexFormat.clone(o),this._extrudedHeight=Math.min(l,s),this._shadowVolume=k.defaultValue(e.shadowVolume,!1),this._workerName="createEllipseGeometry",this._offsetAttribute=e.offsetAttribute,this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0}f.packedLength=R.Cartesian3.packedLength+R.Ellipsoid.packedLength+d.VertexFormat.packedLength+9,f.pack=function(e,t,r){return r=k.defaultValue(r,0),R.Cartesian3.pack(e._center,t,r),r+=R.Cartesian3.packedLength,R.Ellipsoid.pack(e._ellipsoid,t,r),r+=R.Ellipsoid.packedLength,d.VertexFormat.pack(e._vertexFormat,t,r),r+=d.VertexFormat.packedLength,t[r++]=e._semiMajorAxis,t[r++]=e._semiMinorAxis,t[r++]=e._rotation,t[r++]=e._stRotation,t[r++]=e._height,t[r++]=e._granularity,t[r++]=e._extrudedHeight,t[r++]=e._shadowVolume?1:0,t[r]=k.defaultValue(e._offsetAttribute,-1),t};var g=new R.Cartesian3,_=new R.Ellipsoid,v=new d.VertexFormat,b={center:g,ellipsoid:_,vertexFormat:v,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,stRotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0};f.unpack=function(e,t,r){t=k.defaultValue(t,0);var a=R.Cartesian3.unpack(e,t,g),i=(t+=R.Cartesian3.packedLength,R.Ellipsoid.unpack(e,t,_)),n=(t+=R.Ellipsoid.packedLength,d.VertexFormat.unpack(e,t,v)),o=(t+=d.VertexFormat.packedLength,e[t++]),s=e[t++],l=e[t++],u=e[t++],m=e[t++],p=e[t++],y=e[t++],c=1===e[t++],e=e[t];return k.defined(r)?(r._center=R.Cartesian3.clone(a,r._center),r._ellipsoid=R.Ellipsoid.clone(i,r._ellipsoid),r._vertexFormat=d.VertexFormat.clone(n,r._vertexFormat),r._semiMajorAxis=o,r._semiMinorAxis=s,r._rotation=l,r._stRotation=u,r._height=m,r._granularity=p,r._extrudedHeight=y,r._shadowVolume=c,r._offsetAttribute=-1===e?void 0:e,r):(b.height=m,b.extrudedHeight=y,b.granularity=p,b.stRotation=u,b.rotation=l,b.semiMajorAxis=o,b.semiMinorAxis=s,b.shadowVolume=c,b.offsetAttribute=-1===e?void 0:e,new f(b))},f.computeRectangle=function(e,t){var r=(e=k.defaultValue(e,k.defaultValue.EMPTY_OBJECT)).center,a=k.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),i=e.semiMajorAxis,n=e.semiMinorAxis,o=k.defaultValue(e.granularity,y.CesiumMath.RADIANS_PER_DEGREE);return s(r,i,n,k.defaultValue(e.rotation,0),o,a,t)},f.createGeometry=function(e){var t,r,a,i,n;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return n=e._height,a=e._extrudedHeight,r=!y.CesiumMath.equalsEpsilon(n,a,0,y.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),n={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:n,granularity:e._granularity,vertexFormat:e._vertexFormat,stRotation:e._stRotation},r?(n.extrudedHeight=a,n.shadowVolume=e._shadowVolume,n.offsetAttribute=e._offsetAttribute,t=l(n)):(a=(r=n).center,o=R.Cartesian3.multiplyByScalar(r.ellipsoid.geodeticSurfaceNormal(a,o),r.height,o),o=R.Cartesian3.add(a,o,o),a=new L.BoundingSphere(o,r.semiMajorAxis),i=(n=z.EllipseGeometryLibrary.computeEllipsePositions(r,!0,!1)).positions,n=n.numPts,r=c(i,r,!1),n=A(n),t={boundingSphere:a,attributes:r,indices:p.IndexDatatype.createTypedArray(i.length/3,n)},k.defined(e._offsetAttribute)&&(a=t.attributes.position.values.length,r=new Uint8Array(a/3),i=e._offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(r,i),t.attributes.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r}))),new B.Geometry({attributes:t.attributes,indices:t.indices,primitiveType:B.PrimitiveType.TRIANGLES,boundingSphere:t.boundingSphere,offsetAttribute:e._offsetAttribute})},f.createShadowVolume=function(e,t,r){var a=e._granularity,i=e._ellipsoid,t=t(a,i),r=r(a,i);return new f({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:i,rotation:e._rotation,stRotation:e._stRotation,granularity:a,extrudedHeight:t,height:r,vertexFormat:d.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(f.prototype,{rectangle:{get:function(){return k.defined(this._rectangle)||(this._rectangle=s(this._center,this._semiMajorAxis,this._semiMinorAxis,this._rotation,this._granularity,this._ellipsoid)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){return k.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(e){var t=-e._stRotation;if(0==t)return[0,0,0,1,1,0];for(var r=z.EllipseGeometryLibrary.computeEllipsePositions({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,rotation:e._rotation,granularity:e._granularity},!1,!0).outerPositions,a=r.length/3,i=new Array(a),n=0;n<a;++n)i[n]=R.Cartesian3.fromArray(r,3*n);var o=e._ellipsoid,e=e.rectangle;return B.Geometry._textureCoordinateRotationPoints(i,t,o,e)}(this)),this._textureCoordinateRotationPoints}}}),e.EllipseGeometry=f});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-70ded1e8","./Matrix2-10a61a55","./RuntimeError-24b14c10","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./EllipseGeometryLibrary-9dd8ed16","./GeometryAttribute-e89ef932","./GeometryAttributes-5ce4955a","./GeometryInstance-a29ed6fd","./GeometryPipeline-46833021","./IndexDatatype-6902a37d","./VertexFormat-1fc9746e"],function(e,S,L,R,t,j,z,k,B,Y,m,C,p,d){"use strict";var H=new R.Cartesian3,U=new R.Cartesian3,Q=new R.Cartesian3,W=new R.Cartesian3,J=new R.Cartesian2,q=new R.Matrix3,ie=new R.Matrix3,Z=new L.Quaternion,K=new R.Cartesian3,X=new R.Cartesian3,$=new R.Cartesian3,ee=new R.Cartographic,te=new R.Cartesian3,re=new R.Cartesian2,ae=new R.Cartesian2;function y(e,t,r){for(var a=t.vertexFormat,i=t.center,n=t.semiMajorAxis,o=t.semiMinorAxis,s=t.ellipsoid,u=t.stRotation,l=r?e.length/3*2:e.length/3,m=t.shadowVolume,p=a.st?new Float32Array(2*l):void 0,y=a.normal?new Float32Array(3*l):void 0,c=a.tangent?new Float32Array(3*l):void 0,d=a.bitangent?new Float32Array(3*l):void 0,A=m?new Float32Array(3*l):void 0,x=0,f=K,h=X,g=$,_=new L.GeographicProjection(s),b=_.project(s.cartesianToCartographic(i,ee),te),i=s.scaleToGeodeticSurface(i,H),C=(s.geodeticSurfaceNormal(i,i),q),v=ie,w=(v=0!==u?(O=L.Quaternion.fromAxisAngle(i,u,Z),C=R.Matrix3.fromQuaternion(O,C),O=L.Quaternion.fromAxisAngle(i,-u,Z),R.Matrix3.fromQuaternion(O,v)):(C=R.Matrix3.clone(R.Matrix3.IDENTITY,C),R.Matrix3.clone(R.Matrix3.IDENTITY,v)),R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re)),E=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),M=e.length,I=r?M:0,T=I/3*2,G=0;G<M;G+=3){var N,P=G+1,F=G+2,V=R.Cartesian3.fromArray(e,G,H);a.st&&(N=R.Matrix3.multiplyByVector(C,V,U),N=_.project(s.cartesianToCartographic(N,ee),Q),R.Cartesian3.subtract(N,b,N),J.x=(N.x+n)/(2*n),J.y=(N.y+o)/(2*o),w.x=Math.min(J.x,w.x),w.y=Math.min(J.y,w.y),E.x=Math.max(J.x,E.x),E.y=Math.max(J.y,E.y),r&&(p[x+T]=J.x,p[x+1+T]=J.y),p[x++]=J.x,p[x++]=J.y),(a.normal||a.tangent||a.bitangent||m)&&(f=s.geodeticSurfaceNormal(V,f),m&&(A[G+I]=-f.x,A[P+I]=-f.y,A[F+I]=-f.z),a.normal||a.tangent||a.bitangent)&&((a.tangent||a.bitangent)&&(h=R.Cartesian3.normalize(R.Cartesian3.cross(R.Cartesian3.UNIT_Z,f,h),h),R.Matrix3.multiplyByVector(v,h,h)),a.normal&&(y[G]=f.x,y[P]=f.y,y[F]=f.z,r)&&(y[G+I]=-f.x,y[P+I]=-f.y,y[F+I]=-f.z),a.tangent&&(c[G]=h.x,c[P]=h.y,c[F]=h.z,r)&&(c[G+I]=-h.x,c[P+I]=-h.y,c[F+I]=-h.z),a.bitangent)&&(g=R.Cartesian3.normalize(R.Cartesian3.cross(f,h,g),g),d[G]=g.x,d[P]=g.y,d[F]=g.z,r)&&(d[G+I]=g.x,d[P+I]=g.y,d[F+I]=g.z)}if(a.st)for(var M=p.length,D=0;D<M;D+=2)p[D]=(p[D]-w.x)/(E.x-w.x),p[D+1]=(p[D+1]-w.y)/(E.y-w.y);var O,i=new Y.GeometryAttributes;return a.position&&(u=k.EllipseGeometryLibrary.raisePositionsToHeight(e,t,r),i.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u})),a.st&&(i.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:p})),a.normal&&(i.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:y})),a.tangent&&(i.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),a.bitangent&&(i.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),m&&(i.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),r&&z.defined(t.offsetAttribute)&&(O=new Uint8Array(l),O=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(O,1,0,l/2):(u=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(O,u)),i.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:O})),i}function c(e){for(var t,r,a=new Array(e*(e+1)*12-6),i=0,n=0,o=1,s=0;s<3;s++)a[i++]=o++,a[i++]=n,a[i++]=o;for(s=2;s<e+1;++s){for(o=s*(s+1)-1,n=(s-1)*s-1,a[i++]=o++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=o++,a[i++]=n,a[i++]=o}for(t=2*e,++o,++n,s=0;s<t-1;++s)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;for(a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n++,a[i++]=n,++n,s=e-1;1<s;--s){for(a[i++]=n++,a[i++]=n,a[i++]=o,t=2*s,r=0;r<t-1;++r)a[i++]=o,a[i++]=n++,a[i++]=n,a[i++]=o++,a[i++]=n,a[i++]=o;a[i++]=n++,a[i++]=n++,a[i++]=o++}for(s=0;s<3;s++)a[i++]=n++,a[i++]=n,a[i++]=o;return a}var o=new R.Cartesian3;var A=new L.BoundingSphere,x=new L.BoundingSphere;function u(e){for(var t=e.center,r=e.ellipsoid,a=e.semiMajorAxis,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,H),e.height,H),r=(A.center=R.Cartesian3.add(t,i,A.center),A.radius=a,i=R.Cartesian3.multiplyByScalar(r.geodeticSurfaceNormal(t,i),e.extrudedHeight,i),x.center=R.Cartesian3.add(t,i,x.center),x.radius=a,k.EllipseGeometryLibrary.computeEllipsePositions(e,!0,!0)),t=r.positions,i=r.numPts,a=r.outerPositions,r=L.BoundingSphere.union(A,x),n=y(t,e,!0),o=(l=c(i)).length,s=(l.length=2*o,t.length/3),u=0;u<o;u+=3)l[u+o]=l[u+2]+s,l[u+1+o]=l[u+1]+s,l[u+2+o]=l[u]+s;var i=p.IndexDatatype.createTypedArray(2*s/3,l),t=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),n=function(e,t){for(var r=t.vertexFormat,a=t.center,i=t.semiMajorAxis,n=t.semiMinorAxis,o=t.ellipsoid,s=t.height,u=t.extrudedHeight,l=t.stRotation,m=e.length/3*2,p=new Float64Array(3*m),y=r.st?new Float32Array(2*m):void 0,c=r.normal?new Float32Array(3*m):void 0,d=r.tangent?new Float32Array(3*m):void 0,A=r.bitangent?new Float32Array(3*m):void 0,x=t.shadowVolume,f=x?new Float32Array(3*m):void 0,h=0,g=K,_=X,b=$,C=new L.GeographicProjection(o),v=C.project(o.cartesianToCartographic(a,ee),te),a=o.scaleToGeodeticSurface(a,H),a=(o.geodeticSurfaceNormal(a,a),L.Quaternion.fromAxisAngle(a,l,Z)),w=R.Matrix3.fromQuaternion(a,q),E=R.Cartesian2.fromElements(Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY,re),M=R.Cartesian2.fromElements(Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY,ae),I=(D=e.length)/3*2,T=0;T<D;T+=3){var G=T+1,N=T+2,P=R.Cartesian3.fromArray(e,T,H),F=(r.st&&(V=R.Matrix3.multiplyByVector(w,P,U),V=C.project(o.cartesianToCartographic(V,ee),Q),R.Cartesian3.subtract(V,v,V),J.x=(V.x+i)/(2*i),J.y=(V.y+n)/(2*n),E.x=Math.min(J.x,E.x),E.y=Math.min(J.y,E.y),M.x=Math.max(J.x,M.x),M.y=Math.max(J.y,M.y),y[h+I]=J.x,y[h+1+I]=J.y,y[h++]=J.x,y[h++]=J.y),P=o.scaleToGeodeticSurface(P,P),V=R.Cartesian3.clone(P,U),g=o.geodeticSurfaceNormal(P,g),x&&(f[T+D]=-g.x,f[G+D]=-g.y,f[N+D]=-g.z),R.Cartesian3.multiplyByScalar(g,s,W)),P=R.Cartesian3.add(P,F,P),F=R.Cartesian3.multiplyByScalar(g,u,F),V=R.Cartesian3.add(V,F,V);r.position&&(p[T+D]=V.x,p[G+D]=V.y,p[N+D]=V.z,p[T]=P.x,p[G]=P.y,p[N]=P.z),(r.normal||r.tangent||r.bitangent)&&(b=R.Cartesian3.clone(g,b),F=R.Cartesian3.fromArray(e,(T+3)%D,W),R.Cartesian3.subtract(F,P,F),P=R.Cartesian3.subtract(V,P,Q),g=R.Cartesian3.normalize(R.Cartesian3.cross(P,F,g),g),r.normal&&(c[T]=g.x,c[G]=g.y,c[N]=g.z,c[T+D]=g.x,c[G+D]=g.y,c[N+D]=g.z),r.tangent&&(_=R.Cartesian3.normalize(R.Cartesian3.cross(b,g,_),_),d[T]=_.x,d[G]=_.y,d[N]=_.z,d[T+D]=_.x,d[T+1+D]=_.y,d[T+2+D]=_.z),r.bitangent)&&(A[T]=b.x,A[G]=b.y,A[N]=b.z,A[T+D]=b.x,A[G+D]=b.y,A[N+D]=b.z)}if(r.st)for(var D=y.length,O=0;O<D;O+=2)y[O]=(y[O]-E.x)/(M.x-E.x),y[O+1]=(y[O+1]-E.y)/(M.y-E.y);return l=new Y.GeometryAttributes,r.position&&(l.position=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:p})),r.st&&(l.st=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:y})),r.normal&&(l.normal=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:c})),r.tangent&&(l.tangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:d})),r.bitangent&&(l.bitangent=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:A})),x&&(l.extrudeDirection=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:f})),z.defined(t.offsetAttribute)&&(a=new Uint8Array(m),a=t.offsetAttribute===S.GeometryOffsetAttribute.TOP?S.arrayFill(a,1,0,m/2):(m=t.offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(a,m)),l.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:a})),l}(a,e),l=function(e){for(var t=e.length/3,r=p.IndexDatatype.createTypedArray(t,6*t),a=0,i=0;i<t;i++){var n=i,o=i+t,s=(n+1)%t,u=s+t;r[a++]=n,r[a++]=o,r[a++]=s,r[a++]=s,r[a++]=o,r[a++]=u}return r}(a),i=p.IndexDatatype.createTypedArray(2*a.length/3,l),e=new B.Geometry({attributes:n,indices:i,primitiveType:B.PrimitiveType.TRIANGLES}),a=C.GeometryPipeline.combineInstances([new m.GeometryInstance({geometry:t}),new m.GeometryInstance({geometry:e})]);return{boundingSphere:r,attributes:a[0].attributes,indices:a[0].indices}}function s(e,t,r,a,i,n,o){for(var s=k.EllipseGeometryLibrary.computeEllipsePositions({center:e,semiMajorAxis:t,semiMinorAxis:r,rotation:a,granularity:i},!1,!0).outerPositions,u=s.length/3,l=new Array(u),m=0;m<u;++m)l[m]=R.Cartesian3.fromArray(s,3*m);e=R.Rectangle.fromCartesianArray(l,n,o);return e.width>j.CesiumMath.PI&&(e.north=0<e.north?j.CesiumMath.PI_OVER_TWO-j.CesiumMath.EPSILON7:e.north,e.south=e.south<0?j.CesiumMath.EPSILON7-j.CesiumMath.PI_OVER_TWO:e.south,e.east=j.CesiumMath.PI,e.west=-j.CesiumMath.PI),e}function f(e){var t=(e=z.defaultValue(e,z.defaultValue.EMPTY_OBJECT)).center,r=z.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),a=e.semiMajorAxis,i=e.semiMinorAxis,n=z.defaultValue(e.granularity,j.CesiumMath.RADIANS_PER_DEGREE),o=z.defaultValue(e.vertexFormat,d.VertexFormat.DEFAULT),s=z.defaultValue(e.height,0),u=z.defaultValue(e.extrudedHeight,s);this._center=R.Cartesian3.clone(t),this._semiMajorAxis=a,this._semiMinorAxis=i,this._ellipsoid=R.Ellipsoid.clone(r),this._rotation=z.defaultValue(e.rotation,0),this._stRotation=z.defaultValue(e.stRotation,0),this._height=Math.max(u,s),this._granularity=n,this._vertexFormat=d.VertexFormat.clone(o),this._extrudedHeight=Math.min(u,s),this._shadowVolume=z.defaultValue(e.shadowVolume,!1),this._workerName="createEllipseGeometry",this._offsetAttribute=e.offsetAttribute,this._rectangle=void 0,this._textureCoordinateRotationPoints=void 0}f.packedLength=R.Cartesian3.packedLength+R.Ellipsoid.packedLength+d.VertexFormat.packedLength+9,f.pack=function(e,t,r){return r=z.defaultValue(r,0),R.Cartesian3.pack(e._center,t,r),r+=R.Cartesian3.packedLength,R.Ellipsoid.pack(e._ellipsoid,t,r),r+=R.Ellipsoid.packedLength,d.VertexFormat.pack(e._vertexFormat,t,r),r+=d.VertexFormat.packedLength,t[r++]=e._semiMajorAxis,t[r++]=e._semiMinorAxis,t[r++]=e._rotation,t[r++]=e._stRotation,t[r++]=e._height,t[r++]=e._granularity,t[r++]=e._extrudedHeight,t[r++]=e._shadowVolume?1:0,t[r]=z.defaultValue(e._offsetAttribute,-1),t};var h=new R.Cartesian3,g=new R.Ellipsoid,_=new d.VertexFormat,b={center:h,ellipsoid:g,vertexFormat:_,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,stRotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,shadowVolume:void 0,offsetAttribute:void 0};f.unpack=function(e,t,r){t=z.defaultValue(t,0);var a=R.Cartesian3.unpack(e,t,h),i=(t+=R.Cartesian3.packedLength,R.Ellipsoid.unpack(e,t,g)),n=(t+=R.Ellipsoid.packedLength,d.VertexFormat.unpack(e,t,_)),o=(t+=d.VertexFormat.packedLength,e[t++]),s=e[t++],u=e[t++],l=e[t++],m=e[t++],p=e[t++],y=e[t++],c=1===e[t++],e=e[t];return z.defined(r)?(r._center=R.Cartesian3.clone(a,r._center),r._ellipsoid=R.Ellipsoid.clone(i,r._ellipsoid),r._vertexFormat=d.VertexFormat.clone(n,r._vertexFormat),r._semiMajorAxis=o,r._semiMinorAxis=s,r._rotation=u,r._stRotation=l,r._height=m,r._granularity=p,r._extrudedHeight=y,r._shadowVolume=c,r._offsetAttribute=-1===e?void 0:e,r):(b.height=m,b.extrudedHeight=y,b.granularity=p,b.stRotation=l,b.rotation=u,b.semiMajorAxis=o,b.semiMinorAxis=s,b.shadowVolume=c,b.offsetAttribute=-1===e?void 0:e,new f(b))},f.computeRectangle=function(e,t){var r=(e=z.defaultValue(e,z.defaultValue.EMPTY_OBJECT)).center,a=z.defaultValue(e.ellipsoid,R.Ellipsoid.WGS84),i=e.semiMajorAxis,n=e.semiMinorAxis,o=z.defaultValue(e.granularity,j.CesiumMath.RADIANS_PER_DEGREE);return s(r,i,n,z.defaultValue(e.rotation,0),o,a,t)},f.createGeometry=function(e){var t,r,a,i,n;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return n=e._height,a=e._extrudedHeight,r=!j.CesiumMath.equalsEpsilon(n,a,0,j.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),n={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:n,granularity:e._granularity,vertexFormat:e._vertexFormat,stRotation:e._stRotation},r?(n.extrudedHeight=a,n.shadowVolume=e._shadowVolume,n.offsetAttribute=e._offsetAttribute,t=u(n)):(a=(r=n).center,o=R.Cartesian3.multiplyByScalar(r.ellipsoid.geodeticSurfaceNormal(a,o),r.height,o),o=R.Cartesian3.add(a,o,o),a=new L.BoundingSphere(o,r.semiMajorAxis),i=(n=k.EllipseGeometryLibrary.computeEllipsePositions(r,!0,!1)).positions,n=n.numPts,r=y(i,r,!1),n=c(n),t={boundingSphere:a,attributes:r,indices:p.IndexDatatype.createTypedArray(i.length/3,n)},z.defined(e._offsetAttribute)&&(a=t.attributes.position.values.length,r=new Uint8Array(a/3),i=e._offsetAttribute===S.GeometryOffsetAttribute.NONE?0:1,S.arrayFill(r,i),t.attributes.applyOffset=new B.GeometryAttribute({componentDatatype:j.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r}))),new B.Geometry({attributes:t.attributes,indices:t.indices,primitiveType:B.PrimitiveType.TRIANGLES,boundingSphere:t.boundingSphere,offsetAttribute:e._offsetAttribute})},f.createShadowVolume=function(e,t,r){var a=e._granularity,i=e._ellipsoid,t=t(a,i),r=r(a,i);return new f({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:i,rotation:e._rotation,stRotation:e._stRotation,granularity:a,extrudedHeight:t,height:r,vertexFormat:d.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(f.prototype,{rectangle:{get:function(){return z.defined(this._rectangle)||(this._rectangle=s(this._center,this._semiMajorAxis,this._semiMinorAxis,this._rotation,this._granularity,this._ellipsoid)),this._rectangle}},textureCoordinateRotationPoints:{get:function(){return z.defined(this._textureCoordinateRotationPoints)||(this._textureCoordinateRotationPoints=function(e){var t=-e._stRotation;if(0==t)return[0,0,0,1,1,0];for(var r=k.EllipseGeometryLibrary.computeEllipsePositions({center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,rotation:e._rotation,granularity:e._granularity},!1,!0).outerPositions,a=r.length/3,i=new Array(a),n=0;n<a;++n)i[n]=R.Cartesian3.fromArray(r,3*n);var o=e._ellipsoid,e=e.rectangle;return B.Geometry._textureCoordinateRotationPoints(i,t,o,e)}(this)),this._textureCoordinateRotationPoints}}}),e.EllipseGeometry=f});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Cartesian2-078e6458","./Math-5bbcea10","./Transforms-5aeb1d5e"],function(a,E,V,y){"use strict";var e={},u=new E.Cartesian3,m=new E.Cartesian3,c=new y.Quaternion,h=new y.Matrix3;function v(a,e,r,t,i,n,s,o,l,C){e=a+e,E.Cartesian3.multiplyByScalar(t,Math.cos(e),u),E.Cartesian3.multiplyByScalar(r,Math.sin(e),m),E.Cartesian3.add(u,m,u),t=Math.cos(a),t*=t,r=Math.sin(a),r*=r,e=n/Math.sqrt(s*t+i*r);return y.Quaternion.fromAxisAngle(u,e/o,c),y.Matrix3.fromQuaternion(c,h),y.Matrix3.multiplyByVector(h,l,C),E.Cartesian3.normalize(C,C),E.Cartesian3.multiplyByScalar(C,o,C),C}var A=new E.Cartesian3,R=new E.Cartesian3,W=new E.Cartesian3,M=new E.Cartesian3,S=(e.raisePositionsToHeight=function(a,e,r){for(var t=e.ellipsoid,i=e.height,n=e.extrudedHeight,e=r?a.length/3*2:a.length/3,s=new Float64Array(3*e),o=a.length,l=r?o:0,C=0;C<o;C+=3){var y=C+1,u=C+2,m=E.Cartesian3.fromArray(a,C,A),c=(t.scaleToGeodeticSurface(m,m),E.Cartesian3.clone(m,R)),h=t.geodeticSurfaceNormal(m,M),x=E.Cartesian3.multiplyByScalar(h,i,W);E.Cartesian3.add(m,x,m),r&&(E.Cartesian3.multiplyByScalar(h,n,x),E.Cartesian3.add(c,x,c),s[C+l]=c.x,s[y+l]=c.y,s[u+l]=c.z),s[C]=m.x,s[y]=m.y,s[u]=m.z}return s},new E.Cartesian3),B=new E.Cartesian3,b=new E.Cartesian3;e.computeEllipsePositions=function(a,e,r){var t=a.semiMinorAxis,i=a.semiMajorAxis,n=a.rotation,s=a.center,a=8*a.granularity,o=t*t,l=i*i,C=i*t,y=E.Cartesian3.magnitude(s),u=E.Cartesian3.normalize(s,S),m=E.Cartesian3.cross(E.Cartesian3.UNIT_Z,s,B),m=E.Cartesian3.normalize(m,m),c=E.Cartesian3.cross(u,m,b),h=1+Math.ceil(V.CesiumMath.PI_OVER_TWO/a),x=V.CesiumMath.PI_OVER_TWO/(h-1),M=V.CesiumMath.PI_OVER_TWO-h*x;M<0&&(h-=Math.ceil(Math.abs(M)/x));var z,f,_,d,O=e?new Array(3*(h*(h+2)*2)):void 0,p=0,w=A,P=R,i=4*h*3,T=i-1,I=0,g=r?new Array(i):void 0,w=v(M=V.CesiumMath.PI_OVER_TWO,n,c,m,o,C,l,y,u,w);for(e&&(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x),M=V.CesiumMath.PI_OVER_TWO-x,z=1;z<h+1;++z){if(w=v(M,n,c,m,o,C,l,y,u,w),P=v(Math.PI-M,n,c,m,o,C,l,y,u,P),e){for(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,_=2*z+2,f=1;f<_-1;++f)d=E.Cartesian3.lerp(w,P,f/(_-1),W),O[p++]=d.x,O[p++]=d.y,O[p++]=d.z;O[p++]=P.x,O[p++]=P.y,O[p++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z),M=V.CesiumMath.PI_OVER_TWO-(z+1)*x}for(z=h;1<z;--z){if(w=v(-(M=V.CesiumMath.PI_OVER_TWO-(z-1)*x),n,c,m,o,C,l,y,u,w),P=v(M+Math.PI,n,c,m,o,C,l,y,u,P),e){for(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,_=2*(z-1)+2,f=1;f<_-1;++f)d=E.Cartesian3.lerp(w,P,f/(_-1),W),O[p++]=d.x,O[p++]=d.y,O[p++]=d.z;O[p++]=P.x,O[p++]=P.y,O[p++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z)}w=v(-(M=V.CesiumMath.PI_OVER_TWO),n,c,m,o,C,l,y,u,w);t={};return e&&(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,t.positions=O,t.numPts=h),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,t.outerPositions=g),t},a.EllipseGeometryLibrary=e});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Cartesian2-078e6458","./Math-5bbcea10","./Transforms-984eb057"],function(a,E,V,y){"use strict";var e={},u=new E.Cartesian3,m=new E.Cartesian3,c=new y.Quaternion,h=new y.Matrix3;function v(a,e,r,t,i,n,s,o,l,C){e=a+e,E.Cartesian3.multiplyByScalar(t,Math.cos(e),u),E.Cartesian3.multiplyByScalar(r,Math.sin(e),m),E.Cartesian3.add(u,m,u),t=Math.cos(a),t*=t,r=Math.sin(a),r*=r,e=n/Math.sqrt(s*t+i*r);return y.Quaternion.fromAxisAngle(u,e/o,c),y.Matrix3.fromQuaternion(c,h),y.Matrix3.multiplyByVector(h,l,C),E.Cartesian3.normalize(C,C),E.Cartesian3.multiplyByScalar(C,o,C),C}var A=new E.Cartesian3,R=new E.Cartesian3,W=new E.Cartesian3,M=new E.Cartesian3,S=(e.raisePositionsToHeight=function(a,e,r){for(var t=e.ellipsoid,i=e.height,n=e.extrudedHeight,e=r?a.length/3*2:a.length/3,s=new Float64Array(3*e),o=a.length,l=r?o:0,C=0;C<o;C+=3){var y=C+1,u=C+2,m=E.Cartesian3.fromArray(a,C,A),c=(t.scaleToGeodeticSurface(m,m),E.Cartesian3.clone(m,R)),h=t.geodeticSurfaceNormal(m,M),x=E.Cartesian3.multiplyByScalar(h,i,W);E.Cartesian3.add(m,x,m),r&&(E.Cartesian3.multiplyByScalar(h,n,x),E.Cartesian3.add(c,x,c),s[C+l]=c.x,s[y+l]=c.y,s[u+l]=c.z),s[C]=m.x,s[y]=m.y,s[u]=m.z}return s},new E.Cartesian3),B=new E.Cartesian3,b=new E.Cartesian3;e.computeEllipsePositions=function(a,e,r){var t=a.semiMinorAxis,i=a.semiMajorAxis,n=a.rotation,s=a.center,a=8*a.granularity,o=t*t,l=i*i,C=i*t,y=E.Cartesian3.magnitude(s),u=E.Cartesian3.normalize(s,S),m=E.Cartesian3.cross(E.Cartesian3.UNIT_Z,s,B),m=E.Cartesian3.normalize(m,m),c=E.Cartesian3.cross(u,m,b),h=1+Math.ceil(V.CesiumMath.PI_OVER_TWO/a),x=V.CesiumMath.PI_OVER_TWO/(h-1),M=V.CesiumMath.PI_OVER_TWO-h*x;M<0&&(h-=Math.ceil(Math.abs(M)/x));var z,f,_,O,d=e?new Array(3*(h*(h+2)*2)):void 0,p=0,w=A,P=R,i=4*h*3,T=i-1,I=0,g=r?new Array(i):void 0,w=v(M=V.CesiumMath.PI_OVER_TWO,n,c,m,o,C,l,y,u,w);for(e&&(d[p++]=w.x,d[p++]=w.y,d[p++]=w.z),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x),M=V.CesiumMath.PI_OVER_TWO-x,z=1;z<h+1;++z){if(w=v(M,n,c,m,o,C,l,y,u,w),P=v(Math.PI-M,n,c,m,o,C,l,y,u,P),e){for(d[p++]=w.x,d[p++]=w.y,d[p++]=w.z,_=2*z+2,f=1;f<_-1;++f)O=E.Cartesian3.lerp(w,P,f/(_-1),W),d[p++]=O.x,d[p++]=O.y,d[p++]=O.z;d[p++]=P.x,d[p++]=P.y,d[p++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z),M=V.CesiumMath.PI_OVER_TWO-(z+1)*x}for(z=h;1<z;--z){if(w=v(-(M=V.CesiumMath.PI_OVER_TWO-(z-1)*x),n,c,m,o,C,l,y,u,w),P=v(M+Math.PI,n,c,m,o,C,l,y,u,P),e){for(d[p++]=w.x,d[p++]=w.y,d[p++]=w.z,_=2*(z-1)+2,f=1;f<_-1;++f)O=E.Cartesian3.lerp(w,P,f/(_-1),W),d[p++]=O.x,d[p++]=O.y,d[p++]=O.z;d[p++]=P.x,d[p++]=P.y,d[p++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z)}w=v(-(M=V.CesiumMath.PI_OVER_TWO),n,c,m,o,C,l,y,u,w);t={};return e&&(d[p++]=w.x,d[p++]=w.y,d[p++]=w.z,t.positions=d,t.numPts=h),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,t.outerPositions=g),t},a.EllipseGeometryLibrary=e});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Cartesian2-c1eb9da0","./Math-5bbcea10","./Transforms-713e2e92"],function(a,E,V,y){"use strict";var e={},u=new E.Cartesian3,m=new E.Cartesian3,c=new y.Quaternion,h=new y.Matrix3;function v(a,e,r,t,i,n,s,o,l,C){e=a+e,E.Cartesian3.multiplyByScalar(t,Math.cos(e),u),E.Cartesian3.multiplyByScalar(r,Math.sin(e),m),E.Cartesian3.add(u,m,u),t=Math.cos(a),t*=t,r=Math.sin(a),r*=r,e=n/Math.sqrt(s*t+i*r);return y.Quaternion.fromAxisAngle(u,e/o,c),y.Matrix3.fromQuaternion(c,h),y.Matrix3.multiplyByVector(h,l,C),E.Cartesian3.normalize(C,C),E.Cartesian3.multiplyByScalar(C,o,C),C}var A=new E.Cartesian3,R=new E.Cartesian3,W=new E.Cartesian3,M=new E.Cartesian3,S=(e.raisePositionsToHeight=function(a,e,r){for(var t=e.ellipsoid,i=e.height,n=e.extrudedHeight,e=r?a.length/3*2:a.length/3,s=new Float64Array(3*e),o=a.length,l=r?o:0,C=0;C<o;C+=3){var y=C+1,u=C+2,m=E.Cartesian3.fromArray(a,C,A),c=(t.scaleToGeodeticSurface(m,m),E.Cartesian3.clone(m,R)),h=t.geodeticSurfaceNormal(m,M),x=E.Cartesian3.multiplyByScalar(h,i,W);E.Cartesian3.add(m,x,m),r&&(E.Cartesian3.multiplyByScalar(h,n,x),E.Cartesian3.add(c,x,c),s[C+l]=c.x,s[y+l]=c.y,s[u+l]=c.z),s[C]=m.x,s[y]=m.y,s[u]=m.z}return s},new E.Cartesian3),B=new E.Cartesian3,b=new E.Cartesian3;e.computeEllipsePositions=function(a,e,r){var t=a.semiMinorAxis,i=a.semiMajorAxis,n=a.rotation,s=a.center,a=8*a.granularity,o=t*t,l=i*i,C=i*t,y=E.Cartesian3.magnitude(s),u=E.Cartesian3.normalize(s,S),m=E.Cartesian3.cross(E.Cartesian3.UNIT_Z,s,B),m=E.Cartesian3.normalize(m,m),c=E.Cartesian3.cross(u,m,b),h=1+Math.ceil(V.CesiumMath.PI_OVER_TWO/a),x=V.CesiumMath.PI_OVER_TWO/(h-1),M=V.CesiumMath.PI_OVER_TWO-h*x;M<0&&(h-=Math.ceil(Math.abs(M)/x));var z,f,_,d,O=e?new Array(3*(h*(h+2)*2)):void 0,p=0,w=A,P=R,i=4*h*3,T=i-1,I=0,g=r?new Array(i):void 0,w=v(M=V.CesiumMath.PI_OVER_TWO,n,c,m,o,C,l,y,u,w);for(e&&(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x),M=V.CesiumMath.PI_OVER_TWO-x,z=1;z<h+1;++z){if(w=v(M,n,c,m,o,C,l,y,u,w),P=v(Math.PI-M,n,c,m,o,C,l,y,u,P),e){for(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,_=2*z+2,f=1;f<_-1;++f)d=E.Cartesian3.lerp(w,P,f/(_-1),W),O[p++]=d.x,O[p++]=d.y,O[p++]=d.z;O[p++]=P.x,O[p++]=P.y,O[p++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z),M=V.CesiumMath.PI_OVER_TWO-(z+1)*x}for(z=h;1<z;--z){if(w=v(-(M=V.CesiumMath.PI_OVER_TWO-(z-1)*x),n,c,m,o,C,l,y,u,w),P=v(M+Math.PI,n,c,m,o,C,l,y,u,P),e){for(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,_=2*(z-1)+2,f=1;f<_-1;++f)d=E.Cartesian3.lerp(w,P,f/(_-1),W),O[p++]=d.x,O[p++]=d.y,O[p++]=d.z;O[p++]=P.x,O[p++]=P.y,O[p++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z)}w=v(-(M=V.CesiumMath.PI_OVER_TWO),n,c,m,o,C,l,y,u,w);t={};return e&&(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,t.positions=O,t.numPts=h),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,t.outerPositions=g),t},a.EllipseGeometryLibrary=e});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Cartesian2-c1eb9da0","./Math-5bbcea10","./Transforms-8c8e0c6f"],function(a,E,V,y){"use strict";var e={},u=new E.Cartesian3,c=new E.Cartesian3,m=new y.Quaternion,h=new y.Matrix3;function v(a,e,r,t,i,n,s,o,l,C){e=a+e,E.Cartesian3.multiplyByScalar(t,Math.cos(e),u),E.Cartesian3.multiplyByScalar(r,Math.sin(e),c),E.Cartesian3.add(u,c,u),t=Math.cos(a),t*=t,r=Math.sin(a),r*=r,e=n/Math.sqrt(s*t+i*r);return y.Quaternion.fromAxisAngle(u,e/o,m),y.Matrix3.fromQuaternion(m,h),y.Matrix3.multiplyByVector(h,l,C),E.Cartesian3.normalize(C,C),E.Cartesian3.multiplyByScalar(C,o,C),C}var A=new E.Cartesian3,R=new E.Cartesian3,W=new E.Cartesian3,M=new E.Cartesian3,S=(e.raisePositionsToHeight=function(a,e,r){for(var t=e.ellipsoid,i=e.height,n=e.extrudedHeight,e=r?a.length/3*2:a.length/3,s=new Float64Array(3*e),o=a.length,l=r?o:0,C=0;C<o;C+=3){var y=C+1,u=C+2,c=E.Cartesian3.fromArray(a,C,A),m=(t.scaleToGeodeticSurface(c,c),E.Cartesian3.clone(c,R)),h=t.geodeticSurfaceNormal(c,M),x=E.Cartesian3.multiplyByScalar(h,i,W);E.Cartesian3.add(c,x,c),r&&(E.Cartesian3.multiplyByScalar(h,n,x),E.Cartesian3.add(m,x,m),s[C+l]=m.x,s[y+l]=m.y,s[u+l]=m.z),s[C]=c.x,s[y]=c.y,s[u]=c.z}return s},new E.Cartesian3),B=new E.Cartesian3,b=new E.Cartesian3;e.computeEllipsePositions=function(a,e,r){var t=a.semiMinorAxis,i=a.semiMajorAxis,n=a.rotation,s=a.center,a=8*a.granularity,o=t*t,l=i*i,C=i*t,y=E.Cartesian3.magnitude(s),u=E.Cartesian3.normalize(s,S),c=E.Cartesian3.cross(E.Cartesian3.UNIT_Z,s,B),c=E.Cartesian3.normalize(c,c),m=E.Cartesian3.cross(u,c,b),h=1+Math.ceil(V.CesiumMath.PI_OVER_TWO/a),x=V.CesiumMath.PI_OVER_TWO/(h-1),M=V.CesiumMath.PI_OVER_TWO-h*x;M<0&&(h-=Math.ceil(Math.abs(M)/x));var f,z,_,d,O=e?new Array(3*(h*(h+2)*2)):void 0,p=0,w=A,P=R,i=4*h*3,T=i-1,I=0,g=r?new Array(i):void 0,w=v(M=V.CesiumMath.PI_OVER_TWO,n,m,c,o,C,l,y,u,w);for(e&&(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x),M=V.CesiumMath.PI_OVER_TWO-x,f=1;f<h+1;++f){if(w=v(M,n,m,c,o,C,l,y,u,w),P=v(Math.PI-M,n,m,c,o,C,l,y,u,P),e){for(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,_=2*f+2,z=1;z<_-1;++z)d=E.Cartesian3.lerp(w,P,z/(_-1),W),O[p++]=d.x,O[p++]=d.y,O[p++]=d.z;O[p++]=P.x,O[p++]=P.y,O[p++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z),M=V.CesiumMath.PI_OVER_TWO-(f+1)*x}for(f=h;1<f;--f){if(w=v(-(M=V.CesiumMath.PI_OVER_TWO-(f-1)*x),n,m,c,o,C,l,y,u,w),P=v(M+Math.PI,n,m,c,o,C,l,y,u,P),e){for(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,_=2*(f-1)+2,z=1;z<_-1;++z)d=E.Cartesian3.lerp(w,P,z/(_-1),W),O[p++]=d.x,O[p++]=d.y,O[p++]=d.z;O[p++]=P.x,O[p++]=P.y,O[p++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z)}w=v(-(M=V.CesiumMath.PI_OVER_TWO),n,m,c,o,C,l,y,u,w);t={};return e&&(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,t.positions=O,t.numPts=h),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,t.outerPositions=g),t},a.EllipseGeometryLibrary=e});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Matrix2-10a61a55","./ComponentDatatype-b7b5db18","./Transforms-70ded1e8"],function(a,E,V,y){"use strict";var e={},u=new E.Cartesian3,m=new E.Cartesian3,c=new y.Quaternion,h=new E.Matrix3;function v(a,e,t,r,i,n,s,o,l,C){e=a+e,E.Cartesian3.multiplyByScalar(r,Math.cos(e),u),E.Cartesian3.multiplyByScalar(t,Math.sin(e),m),E.Cartesian3.add(u,m,u),r=Math.cos(a),r*=r,t=Math.sin(a),t*=t,e=n/Math.sqrt(s*r+i*t);return y.Quaternion.fromAxisAngle(u,e/o,c),E.Matrix3.fromQuaternion(c,h),E.Matrix3.multiplyByVector(h,l,C),E.Cartesian3.normalize(C,C),E.Cartesian3.multiplyByScalar(C,o,C),C}var A=new E.Cartesian3,R=new E.Cartesian3,W=new E.Cartesian3,M=new E.Cartesian3,S=(e.raisePositionsToHeight=function(a,e,t){for(var r=e.ellipsoid,i=e.height,n=e.extrudedHeight,e=t?a.length/3*2:a.length/3,s=new Float64Array(3*e),o=a.length,l=t?o:0,C=0;C<o;C+=3){var y=C+1,u=C+2,m=E.Cartesian3.fromArray(a,C,A),c=(r.scaleToGeodeticSurface(m,m),E.Cartesian3.clone(m,R)),h=r.geodeticSurfaceNormal(m,M),x=E.Cartesian3.multiplyByScalar(h,i,W);E.Cartesian3.add(m,x,m),t&&(E.Cartesian3.multiplyByScalar(h,n,x),E.Cartesian3.add(c,x,c),s[C+l]=c.x,s[y+l]=c.y,s[u+l]=c.z),s[C]=m.x,s[y]=m.y,s[u]=m.z}return s},new E.Cartesian3),B=new E.Cartesian3,b=new E.Cartesian3;e.computeEllipsePositions=function(a,e,t){var r=a.semiMinorAxis,i=a.semiMajorAxis,n=a.rotation,s=a.center,a=8*a.granularity,o=r*r,l=i*i,C=i*r,y=E.Cartesian3.magnitude(s),u=E.Cartesian3.normalize(s,S),m=E.Cartesian3.cross(E.Cartesian3.UNIT_Z,s,B),m=E.Cartesian3.normalize(m,m),c=E.Cartesian3.cross(u,m,b),h=1+Math.ceil(V.CesiumMath.PI_OVER_TWO/a),x=V.CesiumMath.PI_OVER_TWO/(h-1),M=V.CesiumMath.PI_OVER_TWO-h*x;M<0&&(h-=Math.ceil(Math.abs(M)/x));var z,d,f,_,p=e?new Array(3*(h*(h+2)*2)):void 0,O=0,w=A,P=R,i=4*h*3,T=i-1,I=0,g=t?new Array(i):void 0,w=v(M=V.CesiumMath.PI_OVER_TWO,n,c,m,o,C,l,y,u,w);for(e&&(p[O++]=w.x,p[O++]=w.y,p[O++]=w.z),t&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x),M=V.CesiumMath.PI_OVER_TWO-x,z=1;z<h+1;++z){if(w=v(M,n,c,m,o,C,l,y,u,w),P=v(Math.PI-M,n,c,m,o,C,l,y,u,P),e){for(p[O++]=w.x,p[O++]=w.y,p[O++]=w.z,f=2*z+2,d=1;d<f-1;++d)_=E.Cartesian3.lerp(w,P,d/(f-1),W),p[O++]=_.x,p[O++]=_.y,p[O++]=_.z;p[O++]=P.x,p[O++]=P.y,p[O++]=P.z}t&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z),M=V.CesiumMath.PI_OVER_TWO-(z+1)*x}for(z=h;1<z;--z){if(w=v(-(M=V.CesiumMath.PI_OVER_TWO-(z-1)*x),n,c,m,o,C,l,y,u,w),P=v(M+Math.PI,n,c,m,o,C,l,y,u,P),e){for(p[O++]=w.x,p[O++]=w.y,p[O++]=w.z,f=2*(z-1)+2,d=1;d<f-1;++d)_=E.Cartesian3.lerp(w,P,d/(f-1),W),p[O++]=_.x,p[O++]=_.y,p[O++]=_.z;p[O++]=P.x,p[O++]=P.y,p[O++]=P.z}t&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z)}w=v(-(M=V.CesiumMath.PI_OVER_TWO),n,c,m,o,C,l,y,u,w);r={};return e&&(p[O++]=w.x,p[O++]=w.y,p[O++]=w.z,r.positions=p,r.numPts=h),t&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,r.outerPositions=g),r},a.EllipseGeometryLibrary=e});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Cartesian2-c1eb9da0","./Math-5bbcea10","./Transforms-1fa85493"],function(a,E,V,y){"use strict";var e={},u=new E.Cartesian3,m=new E.Cartesian3,c=new y.Quaternion,h=new y.Matrix3;function v(a,e,r,t,i,n,s,o,l,C){e=a+e,E.Cartesian3.multiplyByScalar(t,Math.cos(e),u),E.Cartesian3.multiplyByScalar(r,Math.sin(e),m),E.Cartesian3.add(u,m,u),t=Math.cos(a),t*=t,r=Math.sin(a),r*=r,e=n/Math.sqrt(s*t+i*r);return y.Quaternion.fromAxisAngle(u,e/o,c),y.Matrix3.fromQuaternion(c,h),y.Matrix3.multiplyByVector(h,l,C),E.Cartesian3.normalize(C,C),E.Cartesian3.multiplyByScalar(C,o,C),C}var A=new E.Cartesian3,R=new E.Cartesian3,W=new E.Cartesian3,M=new E.Cartesian3,S=(e.raisePositionsToHeight=function(a,e,r){for(var t=e.ellipsoid,i=e.height,n=e.extrudedHeight,e=r?a.length/3*2:a.length/3,s=new Float64Array(3*e),o=a.length,l=r?o:0,C=0;C<o;C+=3){var y=C+1,u=C+2,m=E.Cartesian3.fromArray(a,C,A),c=(t.scaleToGeodeticSurface(m,m),E.Cartesian3.clone(m,R)),h=t.geodeticSurfaceNormal(m,M),x=E.Cartesian3.multiplyByScalar(h,i,W);E.Cartesian3.add(m,x,m),r&&(E.Cartesian3.multiplyByScalar(h,n,x),E.Cartesian3.add(c,x,c),s[C+l]=c.x,s[y+l]=c.y,s[u+l]=c.z),s[C]=m.x,s[y]=m.y,s[u]=m.z}return s},new E.Cartesian3),B=new E.Cartesian3,b=new E.Cartesian3;e.computeEllipsePositions=function(a,e,r){var t=a.semiMinorAxis,i=a.semiMajorAxis,n=a.rotation,s=a.center,a=8*a.granularity,o=t*t,l=i*i,C=i*t,y=E.Cartesian3.magnitude(s),u=E.Cartesian3.normalize(s,S),m=E.Cartesian3.cross(E.Cartesian3.UNIT_Z,s,B),m=E.Cartesian3.normalize(m,m),c=E.Cartesian3.cross(u,m,b),h=1+Math.ceil(V.CesiumMath.PI_OVER_TWO/a),x=V.CesiumMath.PI_OVER_TWO/(h-1),M=V.CesiumMath.PI_OVER_TWO-h*x;M<0&&(h-=Math.ceil(Math.abs(M)/x));var f,z,_,d,O=e?new Array(3*(h*(h+2)*2)):void 0,p=0,w=A,P=R,i=4*h*3,T=i-1,I=0,g=r?new Array(i):void 0,w=v(M=V.CesiumMath.PI_OVER_TWO,n,c,m,o,C,l,y,u,w);for(e&&(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x),M=V.CesiumMath.PI_OVER_TWO-x,f=1;f<h+1;++f){if(w=v(M,n,c,m,o,C,l,y,u,w),P=v(Math.PI-M,n,c,m,o,C,l,y,u,P),e){for(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,_=2*f+2,z=1;z<_-1;++z)d=E.Cartesian3.lerp(w,P,z/(_-1),W),O[p++]=d.x,O[p++]=d.y,O[p++]=d.z;O[p++]=P.x,O[p++]=P.y,O[p++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z),M=V.CesiumMath.PI_OVER_TWO-(f+1)*x}for(f=h;1<f;--f){if(w=v(-(M=V.CesiumMath.PI_OVER_TWO-(f-1)*x),n,c,m,o,C,l,y,u,w),P=v(M+Math.PI,n,c,m,o,C,l,y,u,P),e){for(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,_=2*(f-1)+2,z=1;z<_-1;++z)d=E.Cartesian3.lerp(w,P,z/(_-1),W),O[p++]=d.x,O[p++]=d.y,O[p++]=d.z;O[p++]=P.x,O[p++]=P.y,O[p++]=P.z}r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,g[I++]=P.x,g[I++]=P.y,g[I++]=P.z)}w=v(-(M=V.CesiumMath.PI_OVER_TWO),n,c,m,o,C,l,y,u,w);t={};return e&&(O[p++]=w.x,O[p++]=w.y,O[p++]=w.z,t.positions=O,t.numPts=h),r&&(g[T--]=w.z,g[T--]=w.y,g[T--]=w.x,t.outerPositions=g),t},a.EllipseGeometryLibrary=e});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-984eb057","./Cartesian2-078e6458","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./EllipseGeometryLibrary-4c7e22bb","./GeometryAttribute-51995e5a","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10"],function(e,p,c,f,m,h,t,y,b,A,_,g){"use strict";var x=new f.Cartesian3,s=new f.Cartesian3;var E=new c.BoundingSphere,M=new c.BoundingSphere;function C(e){var t=(e=h.defaultValue(e,h.defaultValue.EMPTY_OBJECT)).center,i=h.defaultValue(e.ellipsoid,f.Ellipsoid.WGS84),r=e.semiMajorAxis,a=e.semiMinorAxis,n=h.defaultValue(e.granularity,g.CesiumMath.RADIANS_PER_DEGREE),o=h.defaultValue(e.height,0),s=h.defaultValue(e.extrudedHeight,o);this._center=f.Cartesian3.clone(t),this._semiMajorAxis=r,this._semiMinorAxis=a,this._ellipsoid=f.Ellipsoid.clone(i),this._rotation=h.defaultValue(e.rotation,0),this._height=Math.max(s,o),this._granularity=n,this._extrudedHeight=Math.min(s,o),this._numberOfVerticalLines=Math.max(h.defaultValue(e.numberOfVerticalLines,16),0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}C.packedLength=f.Cartesian3.packedLength+f.Ellipsoid.packedLength+8,C.pack=function(e,t,i){return i=h.defaultValue(i,0),f.Cartesian3.pack(e._center,t,i),i+=f.Cartesian3.packedLength,f.Ellipsoid.pack(e._ellipsoid,t,i),i+=f.Ellipsoid.packedLength,t[i++]=e._semiMajorAxis,t[i++]=e._semiMinorAxis,t[i++]=e._rotation,t[i++]=e._height,t[i++]=e._granularity,t[i++]=e._extrudedHeight,t[i++]=e._numberOfVerticalLines,t[i]=h.defaultValue(e._offsetAttribute,-1),t};var v=new f.Cartesian3,G=new f.Ellipsoid,L={center:v,ellipsoid:G,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};C.unpack=function(e,t,i){t=h.defaultValue(t,0);var r=f.Cartesian3.unpack(e,t,v),a=(t+=f.Cartesian3.packedLength,f.Ellipsoid.unpack(e,t,G)),n=(t+=f.Ellipsoid.packedLength,e[t++]),o=e[t++],s=e[t++],u=e[t++],l=e[t++],d=e[t++],p=e[t++],e=e[t];return h.defined(i)?(i._center=f.Cartesian3.clone(r,i._center),i._ellipsoid=f.Ellipsoid.clone(a,i._ellipsoid),i._semiMajorAxis=n,i._semiMinorAxis=o,i._rotation=s,i._height=u,i._granularity=l,i._extrudedHeight=d,i._numberOfVerticalLines=p,i._offsetAttribute=-1===e?void 0:e,i):(L.height=u,L.extrudedHeight=d,L.granularity=l,L.rotation=s,L.semiMajorAxis=n,L.semiMinorAxis=o,L.numberOfVerticalLines=p,L.offsetAttribute=-1===e?void 0:e,new C(L))},C.createGeometry=function(e){var t,i,r,a;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return r=e._height,i=e._extrudedHeight,t=!g.CesiumMath.equalsEpsilon(r,i,0,g.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),r={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:r,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines},t?(r.extrudedHeight=i,r.offsetAttribute=e._offsetAttribute,a=function(e){var t=e.center,i=e.ellipsoid,r=e.semiMajorAxis,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,x),e.height,x),i=(E.center=f.Cartesian3.add(t,a,E.center),E.radius=r,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,a),e.extrudedHeight,a),M.center=f.Cartesian3.add(t,a,M.center),M.radius=r,y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions),i=(t=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!0)})})).position.values,a=c.BoundingSphere.union(E,M),n=i.length/3,i=(h.defined(e.offsetAttribute)&&(r=new Uint8Array(n),r=e.offsetAttribute===p.GeometryOffsetAttribute.TOP?p.arrayFill(r,1,0,n/2):(i=e.offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(r,i)),t.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})),h.defaultValue(e.numberOfVerticalLines,16)),i=g.CesiumMath.clamp(i,0,n/2),o=_.IndexDatatype.createTypedArray(n,2*n+2*i),s=(n/=2,0);for(d=0;d<n;++d)o[s++]=d,o[s++]=(d+1)%n,o[s++]=d+n,o[s++]=(d+1)%n+n;if(0<i)for(var r=Math.min(i,n),u=Math.round(n/r),l=Math.min(u*i,n),d=0;d<l;d+=u)o[s++]=d,o[s++]=d+n;return{boundingSphere:a,attributes:t,indices:o}}(r)):(a=function(e){for(var t=e.center,t=(s=f.Cartesian3.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(t,s),e.height,s),s=f.Cartesian3.add(t,s,s),new c.BoundingSphere(s,e.semiMajorAxis)),i=y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions,e=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!1)})}),r=i.length/3,a=_.IndexDatatype.createTypedArray(r,2*r),n=0,o=0;o<r;++o)a[n++]=o,a[n++]=(o+1)%r;return{boundingSphere:t,attributes:e,indices:a}}(r),h.defined(e._offsetAttribute)&&(t=a.attributes.position.values.length,i=new Uint8Array(t/3),r=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(i,r),a.attributes.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i}))),new b.Geometry({attributes:a.attributes,indices:a.indices,primitiveType:b.PrimitiveType.LINES,boundingSphere:a.boundingSphere,offsetAttribute:e._offsetAttribute})},e.EllipseOutlineGeometry=C});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-5aeb1d5e","./Cartesian2-078e6458","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./EllipseGeometryLibrary-46efe941","./GeometryAttribute-ccf4e0b6","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10"],function(e,p,c,f,m,h,t,y,b,A,_,g){"use strict";var x=new f.Cartesian3,s=new f.Cartesian3;var E=new c.BoundingSphere,M=new c.BoundingSphere;function C(e){var t=(e=h.defaultValue(e,h.defaultValue.EMPTY_OBJECT)).center,i=h.defaultValue(e.ellipsoid,f.Ellipsoid.WGS84),r=e.semiMajorAxis,a=e.semiMinorAxis,n=h.defaultValue(e.granularity,g.CesiumMath.RADIANS_PER_DEGREE),o=h.defaultValue(e.height,0),s=h.defaultValue(e.extrudedHeight,o);this._center=f.Cartesian3.clone(t),this._semiMajorAxis=r,this._semiMinorAxis=a,this._ellipsoid=f.Ellipsoid.clone(i),this._rotation=h.defaultValue(e.rotation,0),this._height=Math.max(s,o),this._granularity=n,this._extrudedHeight=Math.min(s,o),this._numberOfVerticalLines=Math.max(h.defaultValue(e.numberOfVerticalLines,16),0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}C.packedLength=f.Cartesian3.packedLength+f.Ellipsoid.packedLength+8,C.pack=function(e,t,i){return i=h.defaultValue(i,0),f.Cartesian3.pack(e._center,t,i),i+=f.Cartesian3.packedLength,f.Ellipsoid.pack(e._ellipsoid,t,i),i+=f.Ellipsoid.packedLength,t[i++]=e._semiMajorAxis,t[i++]=e._semiMinorAxis,t[i++]=e._rotation,t[i++]=e._height,t[i++]=e._granularity,t[i++]=e._extrudedHeight,t[i++]=e._numberOfVerticalLines,t[i]=h.defaultValue(e._offsetAttribute,-1),t};var v=new f.Cartesian3,G=new f.Ellipsoid,L={center:v,ellipsoid:G,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};C.unpack=function(e,t,i){t=h.defaultValue(t,0);var r=f.Cartesian3.unpack(e,t,v),a=(t+=f.Cartesian3.packedLength,f.Ellipsoid.unpack(e,t,G)),n=(t+=f.Ellipsoid.packedLength,e[t++]),o=e[t++],s=e[t++],u=e[t++],l=e[t++],d=e[t++],p=e[t++],e=e[t];return h.defined(i)?(i._center=f.Cartesian3.clone(r,i._center),i._ellipsoid=f.Ellipsoid.clone(a,i._ellipsoid),i._semiMajorAxis=n,i._semiMinorAxis=o,i._rotation=s,i._height=u,i._granularity=l,i._extrudedHeight=d,i._numberOfVerticalLines=p,i._offsetAttribute=-1===e?void 0:e,i):(L.height=u,L.extrudedHeight=d,L.granularity=l,L.rotation=s,L.semiMajorAxis=n,L.semiMinorAxis=o,L.numberOfVerticalLines=p,L.offsetAttribute=-1===e?void 0:e,new C(L))},C.createGeometry=function(e){var t,i,r,a;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return r=e._height,i=e._extrudedHeight,t=!g.CesiumMath.equalsEpsilon(r,i,0,g.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),r={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:r,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines},t?(r.extrudedHeight=i,r.offsetAttribute=e._offsetAttribute,a=function(e){var t=e.center,i=e.ellipsoid,r=e.semiMajorAxis,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,x),e.height,x),i=(E.center=f.Cartesian3.add(t,a,E.center),E.radius=r,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,a),e.extrudedHeight,a),M.center=f.Cartesian3.add(t,a,M.center),M.radius=r,y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions),i=(t=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!0)})})).position.values,a=c.BoundingSphere.union(E,M),n=i.length/3,i=(h.defined(e.offsetAttribute)&&(r=new Uint8Array(n),r=e.offsetAttribute===p.GeometryOffsetAttribute.TOP?p.arrayFill(r,1,0,n/2):(i=e.offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(r,i)),t.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})),h.defaultValue(e.numberOfVerticalLines,16)),i=g.CesiumMath.clamp(i,0,n/2),o=_.IndexDatatype.createTypedArray(n,2*n+2*i),s=(n/=2,0);for(d=0;d<n;++d)o[s++]=d,o[s++]=(d+1)%n,o[s++]=d+n,o[s++]=(d+1)%n+n;if(0<i)for(var r=Math.min(i,n),u=Math.round(n/r),l=Math.min(u*i,n),d=0;d<l;d+=u)o[s++]=d,o[s++]=d+n;return{boundingSphere:a,attributes:t,indices:o}}(r)):(a=function(e){for(var t=e.center,t=(s=f.Cartesian3.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(t,s),e.height,s),s=f.Cartesian3.add(t,s,s),new c.BoundingSphere(s,e.semiMajorAxis)),i=y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions,e=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!1)})}),r=i.length/3,a=_.IndexDatatype.createTypedArray(r,2*r),n=0,o=0;o<r;++o)a[n++]=o,a[n++]=(o+1)%r;return{boundingSphere:t,attributes:e,indices:a}}(r),h.defined(e._offsetAttribute)&&(t=a.attributes.position.values.length,i=new Uint8Array(t/3),r=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(i,r),a.attributes.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i}))),new b.Geometry({attributes:a.attributes,indices:a.indices,primitiveType:b.PrimitiveType.LINES,boundingSphere:a.boundingSphere,offsetAttribute:e._offsetAttribute})},e.EllipseOutlineGeometry=C});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-8c0bd3ce","./Transforms-70ded1e8","./Matrix2-10a61a55","./ComponentDatatype-b7b5db18","./when-ae2e0b60","./RuntimeError-24b14c10","./EllipseGeometryLibrary-9dd8ed16","./GeometryAttribute-e89ef932","./GeometryAttributes-5ce4955a","./IndexDatatype-6902a37d"],function(e,p,c,m,f,h,t,y,b,A,_){"use strict";var g=new m.Cartesian3,s=new m.Cartesian3;var x=new c.BoundingSphere,E=new c.BoundingSphere;function M(e){var t=(e=h.defaultValue(e,h.defaultValue.EMPTY_OBJECT)).center,i=h.defaultValue(e.ellipsoid,m.Ellipsoid.WGS84),r=e.semiMajorAxis,a=e.semiMinorAxis,n=h.defaultValue(e.granularity,f.CesiumMath.RADIANS_PER_DEGREE),o=h.defaultValue(e.height,0),s=h.defaultValue(e.extrudedHeight,o);this._center=m.Cartesian3.clone(t),this._semiMajorAxis=r,this._semiMinorAxis=a,this._ellipsoid=m.Ellipsoid.clone(i),this._rotation=h.defaultValue(e.rotation,0),this._height=Math.max(s,o),this._granularity=n,this._extrudedHeight=Math.min(s,o),this._numberOfVerticalLines=Math.max(h.defaultValue(e.numberOfVerticalLines,16),0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}M.packedLength=m.Cartesian3.packedLength+m.Ellipsoid.packedLength+8,M.pack=function(e,t,i){return i=h.defaultValue(i,0),m.Cartesian3.pack(e._center,t,i),i+=m.Cartesian3.packedLength,m.Ellipsoid.pack(e._ellipsoid,t,i),i+=m.Ellipsoid.packedLength,t[i++]=e._semiMajorAxis,t[i++]=e._semiMinorAxis,t[i++]=e._rotation,t[i++]=e._height,t[i++]=e._granularity,t[i++]=e._extrudedHeight,t[i++]=e._numberOfVerticalLines,t[i]=h.defaultValue(e._offsetAttribute,-1),t};var v=new m.Cartesian3,C=new m.Ellipsoid,G={center:v,ellipsoid:C,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};M.unpack=function(e,t,i){t=h.defaultValue(t,0);var r=m.Cartesian3.unpack(e,t,v),a=(t+=m.Cartesian3.packedLength,m.Ellipsoid.unpack(e,t,C)),n=(t+=m.Ellipsoid.packedLength,e[t++]),o=e[t++],s=e[t++],u=e[t++],l=e[t++],d=e[t++],p=e[t++],e=e[t];return h.defined(i)?(i._center=m.Cartesian3.clone(r,i._center),i._ellipsoid=m.Ellipsoid.clone(a,i._ellipsoid),i._semiMajorAxis=n,i._semiMinorAxis=o,i._rotation=s,i._height=u,i._granularity=l,i._extrudedHeight=d,i._numberOfVerticalLines=p,i._offsetAttribute=-1===e?void 0:e,i):(G.height=u,G.extrudedHeight=d,G.granularity=l,G.rotation=s,G.semiMajorAxis=n,G.semiMinorAxis=o,G.numberOfVerticalLines=p,G.offsetAttribute=-1===e?void 0:e,new M(G))},M.createGeometry=function(e){var t,i,r,a;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return r=e._height,i=e._extrudedHeight,t=!f.CesiumMath.equalsEpsilon(r,i,0,f.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),r={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:r,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines},t?(r.extrudedHeight=i,r.offsetAttribute=e._offsetAttribute,a=function(e){var t=e.center,i=e.ellipsoid,r=e.semiMajorAxis,a=m.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,g),e.height,g),i=(x.center=m.Cartesian3.add(t,a,x.center),x.radius=r,a=m.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,a),e.extrudedHeight,a),E.center=m.Cartesian3.add(t,a,E.center),E.radius=r,y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions),i=(t=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:f.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!0)})})).position.values,a=c.BoundingSphere.union(x,E),n=i.length/3,i=(h.defined(e.offsetAttribute)&&(r=new Uint8Array(n),r=e.offsetAttribute===p.GeometryOffsetAttribute.TOP?p.arrayFill(r,1,0,n/2):(i=e.offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(r,i)),t.applyOffset=new b.GeometryAttribute({componentDatatype:f.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})),h.defaultValue(e.numberOfVerticalLines,16)),i=f.CesiumMath.clamp(i,0,n/2),o=_.IndexDatatype.createTypedArray(n,2*n+2*i),s=(n/=2,0);for(d=0;d<n;++d)o[s++]=d,o[s++]=(d+1)%n,o[s++]=d+n,o[s++]=(d+1)%n+n;if(0<i)for(var r=Math.min(i,n),u=Math.round(n/r),l=Math.min(u*i,n),d=0;d<l;d+=u)o[s++]=d,o[s++]=d+n;return{boundingSphere:a,attributes:t,indices:o}}(r)):(a=function(e){for(var t=e.center,t=(s=m.Cartesian3.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(t,s),e.height,s),s=m.Cartesian3.add(t,s,s),new c.BoundingSphere(s,e.semiMajorAxis)),i=y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions,e=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:f.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!1)})}),r=i.length/3,a=_.IndexDatatype.createTypedArray(r,2*r),n=0,o=0;o<r;++o)a[n++]=o,a[n++]=(o+1)%r;return{boundingSphere:t,attributes:e,indices:a}}(r),h.defined(e._offsetAttribute)&&(t=a.attributes.position.values.length,i=new Uint8Array(t/3),r=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(i,r),a.attributes.applyOffset=new b.GeometryAttribute({componentDatatype:f.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i}))),new b.Geometry({attributes:a.attributes,indices:a.indices,primitiveType:b.PrimitiveType.LINES,boundingSphere:a.boundingSphere,offsetAttribute:e._offsetAttribute})},e.EllipseOutlineGeometry=M});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-713e2e92","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./EllipseGeometryLibrary-716ccbc1","./GeometryAttribute-e03451d8","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10"],function(e,p,c,f,m,h,t,y,b,A,_,g){"use strict";var x=new f.Cartesian3,s=new f.Cartesian3;var E=new c.BoundingSphere,M=new c.BoundingSphere;function C(e){var t=(e=h.defaultValue(e,h.defaultValue.EMPTY_OBJECT)).center,i=h.defaultValue(e.ellipsoid,f.Ellipsoid.WGS84),r=e.semiMajorAxis,a=e.semiMinorAxis,n=h.defaultValue(e.granularity,g.CesiumMath.RADIANS_PER_DEGREE),o=h.defaultValue(e.height,0),s=h.defaultValue(e.extrudedHeight,o);this._center=f.Cartesian3.clone(t),this._semiMajorAxis=r,this._semiMinorAxis=a,this._ellipsoid=f.Ellipsoid.clone(i),this._rotation=h.defaultValue(e.rotation,0),this._height=Math.max(s,o),this._granularity=n,this._extrudedHeight=Math.min(s,o),this._numberOfVerticalLines=Math.max(h.defaultValue(e.numberOfVerticalLines,16),0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}C.packedLength=f.Cartesian3.packedLength+f.Ellipsoid.packedLength+8,C.pack=function(e,t,i){return i=h.defaultValue(i,0),f.Cartesian3.pack(e._center,t,i),i+=f.Cartesian3.packedLength,f.Ellipsoid.pack(e._ellipsoid,t,i),i+=f.Ellipsoid.packedLength,t[i++]=e._semiMajorAxis,t[i++]=e._semiMinorAxis,t[i++]=e._rotation,t[i++]=e._height,t[i++]=e._granularity,t[i++]=e._extrudedHeight,t[i++]=e._numberOfVerticalLines,t[i]=h.defaultValue(e._offsetAttribute,-1),t};var v=new f.Cartesian3,G=new f.Ellipsoid,L={center:v,ellipsoid:G,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};C.unpack=function(e,t,i){t=h.defaultValue(t,0);var r=f.Cartesian3.unpack(e,t,v),a=(t+=f.Cartesian3.packedLength,f.Ellipsoid.unpack(e,t,G)),n=(t+=f.Ellipsoid.packedLength,e[t++]),o=e[t++],s=e[t++],u=e[t++],l=e[t++],d=e[t++],p=e[t++],e=e[t];return h.defined(i)?(i._center=f.Cartesian3.clone(r,i._center),i._ellipsoid=f.Ellipsoid.clone(a,i._ellipsoid),i._semiMajorAxis=n,i._semiMinorAxis=o,i._rotation=s,i._height=u,i._granularity=l,i._extrudedHeight=d,i._numberOfVerticalLines=p,i._offsetAttribute=-1===e?void 0:e,i):(L.height=u,L.extrudedHeight=d,L.granularity=l,L.rotation=s,L.semiMajorAxis=n,L.semiMinorAxis=o,L.numberOfVerticalLines=p,L.offsetAttribute=-1===e?void 0:e,new C(L))},C.createGeometry=function(e){var t,i,r,a;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return r=e._height,i=e._extrudedHeight,t=!g.CesiumMath.equalsEpsilon(r,i,0,g.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),r={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:r,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines},t?(r.extrudedHeight=i,r.offsetAttribute=e._offsetAttribute,a=function(e){var t=e.center,i=e.ellipsoid,r=e.semiMajorAxis,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,x),e.height,x),i=(E.center=f.Cartesian3.add(t,a,E.center),E.radius=r,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,a),e.extrudedHeight,a),M.center=f.Cartesian3.add(t,a,M.center),M.radius=r,y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions),i=(t=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!0)})})).position.values,a=c.BoundingSphere.union(E,M),n=i.length/3,i=(h.defined(e.offsetAttribute)&&(r=new Uint8Array(n),r=e.offsetAttribute===p.GeometryOffsetAttribute.TOP?p.arrayFill(r,1,0,n/2):(i=e.offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(r,i)),t.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})),h.defaultValue(e.numberOfVerticalLines,16)),i=g.CesiumMath.clamp(i,0,n/2),o=_.IndexDatatype.createTypedArray(n,2*n+2*i),s=(n/=2,0);for(d=0;d<n;++d)o[s++]=d,o[s++]=(d+1)%n,o[s++]=d+n,o[s++]=(d+1)%n+n;if(0<i)for(var r=Math.min(i,n),u=Math.round(n/r),l=Math.min(u*i,n),d=0;d<l;d+=u)o[s++]=d,o[s++]=d+n;return{boundingSphere:a,attributes:t,indices:o}}(r)):(a=function(e){for(var t=e.center,t=(s=f.Cartesian3.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(t,s),e.height,s),s=f.Cartesian3.add(t,s,s),new c.BoundingSphere(s,e.semiMajorAxis)),i=y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions,e=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!1)})}),r=i.length/3,a=_.IndexDatatype.createTypedArray(r,2*r),n=0,o=0;o<r;++o)a[n++]=o,a[n++]=(o+1)%r;return{boundingSphere:t,attributes:e,indices:a}}(r),h.defined(e._offsetAttribute)&&(t=a.attributes.position.values.length,i=new Uint8Array(t/3),r=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(i,r),a.attributes.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i}))),new b.Geometry({attributes:a.attributes,indices:a.indices,primitiveType:b.PrimitiveType.LINES,boundingSphere:a.boundingSphere,offsetAttribute:e._offsetAttribute})},e.EllipseOutlineGeometry=C});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-8c8e0c6f","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./EllipseGeometryLibrary-8b1f8e47","./GeometryAttribute-8106b887","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10"],function(e,p,c,f,m,h,t,y,b,A,_,g){"use strict";var x=new f.Cartesian3,s=new f.Cartesian3;var E=new c.BoundingSphere,M=new c.BoundingSphere;function C(e){var t=(e=h.defaultValue(e,h.defaultValue.EMPTY_OBJECT)).center,i=h.defaultValue(e.ellipsoid,f.Ellipsoid.WGS84),r=e.semiMajorAxis,a=e.semiMinorAxis,n=h.defaultValue(e.granularity,g.CesiumMath.RADIANS_PER_DEGREE),o=h.defaultValue(e.height,0),s=h.defaultValue(e.extrudedHeight,o);this._center=f.Cartesian3.clone(t),this._semiMajorAxis=r,this._semiMinorAxis=a,this._ellipsoid=f.Ellipsoid.clone(i),this._rotation=h.defaultValue(e.rotation,0),this._height=Math.max(s,o),this._granularity=n,this._extrudedHeight=Math.min(s,o),this._numberOfVerticalLines=Math.max(h.defaultValue(e.numberOfVerticalLines,16),0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}C.packedLength=f.Cartesian3.packedLength+f.Ellipsoid.packedLength+8,C.pack=function(e,t,i){return i=h.defaultValue(i,0),f.Cartesian3.pack(e._center,t,i),i+=f.Cartesian3.packedLength,f.Ellipsoid.pack(e._ellipsoid,t,i),i+=f.Ellipsoid.packedLength,t[i++]=e._semiMajorAxis,t[i++]=e._semiMinorAxis,t[i++]=e._rotation,t[i++]=e._height,t[i++]=e._granularity,t[i++]=e._extrudedHeight,t[i++]=e._numberOfVerticalLines,t[i]=h.defaultValue(e._offsetAttribute,-1),t};var v=new f.Cartesian3,G=new f.Ellipsoid,L={center:v,ellipsoid:G,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};C.unpack=function(e,t,i){t=h.defaultValue(t,0);var r=f.Cartesian3.unpack(e,t,v),a=(t+=f.Cartesian3.packedLength,f.Ellipsoid.unpack(e,t,G)),n=(t+=f.Ellipsoid.packedLength,e[t++]),o=e[t++],s=e[t++],u=e[t++],l=e[t++],d=e[t++],p=e[t++],e=e[t];return h.defined(i)?(i._center=f.Cartesian3.clone(r,i._center),i._ellipsoid=f.Ellipsoid.clone(a,i._ellipsoid),i._semiMajorAxis=n,i._semiMinorAxis=o,i._rotation=s,i._height=u,i._granularity=l,i._extrudedHeight=d,i._numberOfVerticalLines=p,i._offsetAttribute=-1===e?void 0:e,i):(L.height=u,L.extrudedHeight=d,L.granularity=l,L.rotation=s,L.semiMajorAxis=n,L.semiMinorAxis=o,L.numberOfVerticalLines=p,L.offsetAttribute=-1===e?void 0:e,new C(L))},C.createGeometry=function(e){var t,i,r,a;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return r=e._height,i=e._extrudedHeight,t=!g.CesiumMath.equalsEpsilon(r,i,0,g.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),r={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:r,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines},t?(r.extrudedHeight=i,r.offsetAttribute=e._offsetAttribute,a=function(e){var t=e.center,i=e.ellipsoid,r=e.semiMajorAxis,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,x),e.height,x),i=(E.center=f.Cartesian3.add(t,a,E.center),E.radius=r,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,a),e.extrudedHeight,a),M.center=f.Cartesian3.add(t,a,M.center),M.radius=r,y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions),i=(t=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!0)})})).position.values,a=c.BoundingSphere.union(E,M),n=i.length/3,i=(h.defined(e.offsetAttribute)&&(r=new Uint8Array(n),r=e.offsetAttribute===p.GeometryOffsetAttribute.TOP?p.arrayFill(r,1,0,n/2):(i=e.offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(r,i)),t.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})),h.defaultValue(e.numberOfVerticalLines,16)),i=g.CesiumMath.clamp(i,0,n/2),o=_.IndexDatatype.createTypedArray(n,2*n+2*i),s=(n/=2,0);for(d=0;d<n;++d)o[s++]=d,o[s++]=(d+1)%n,o[s++]=d+n,o[s++]=(d+1)%n+n;if(0<i)for(var r=Math.min(i,n),u=Math.round(n/r),l=Math.min(u*i,n),d=0;d<l;d+=u)o[s++]=d,o[s++]=d+n;return{boundingSphere:a,attributes:t,indices:o}}(r)):(a=function(e){for(var t=e.center,t=(s=f.Cartesian3.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(t,s),e.height,s),s=f.Cartesian3.add(t,s,s),new c.BoundingSphere(s,e.semiMajorAxis)),i=y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions,e=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!1)})}),r=i.length/3,a=_.IndexDatatype.createTypedArray(r,2*r),n=0,o=0;o<r;++o)a[n++]=o,a[n++]=(o+1)%r;return{boundingSphere:t,attributes:e,indices:a}}(r),h.defined(e._offsetAttribute)&&(t=a.attributes.position.values.length,i=new Uint8Array(t/3),r=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(i,r),a.attributes.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i}))),new b.Geometry({attributes:a.attributes,indices:a.indices,primitiveType:b.PrimitiveType.LINES,boundingSphere:a.boundingSphere,offsetAttribute:e._offsetAttribute})},e.EllipseOutlineGeometry=C});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-1fa85493","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./EllipseGeometryLibrary-cde71e7f","./GeometryAttribute-9cc31675","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10"],function(e,p,c,f,m,h,t,y,b,A,_,g){"use strict";var x=new f.Cartesian3,s=new f.Cartesian3;var E=new c.BoundingSphere,M=new c.BoundingSphere;function C(e){var t=(e=h.defaultValue(e,h.defaultValue.EMPTY_OBJECT)).center,i=h.defaultValue(e.ellipsoid,f.Ellipsoid.WGS84),r=e.semiMajorAxis,a=e.semiMinorAxis,n=h.defaultValue(e.granularity,g.CesiumMath.RADIANS_PER_DEGREE),o=h.defaultValue(e.height,0),s=h.defaultValue(e.extrudedHeight,o);this._center=f.Cartesian3.clone(t),this._semiMajorAxis=r,this._semiMinorAxis=a,this._ellipsoid=f.Ellipsoid.clone(i),this._rotation=h.defaultValue(e.rotation,0),this._height=Math.max(s,o),this._granularity=n,this._extrudedHeight=Math.min(s,o),this._numberOfVerticalLines=Math.max(h.defaultValue(e.numberOfVerticalLines,16),0),this._offsetAttribute=e.offsetAttribute,this._workerName="createEllipseOutlineGeometry"}C.packedLength=f.Cartesian3.packedLength+f.Ellipsoid.packedLength+8,C.pack=function(e,t,i){return i=h.defaultValue(i,0),f.Cartesian3.pack(e._center,t,i),i+=f.Cartesian3.packedLength,f.Ellipsoid.pack(e._ellipsoid,t,i),i+=f.Ellipsoid.packedLength,t[i++]=e._semiMajorAxis,t[i++]=e._semiMinorAxis,t[i++]=e._rotation,t[i++]=e._height,t[i++]=e._granularity,t[i++]=e._extrudedHeight,t[i++]=e._numberOfVerticalLines,t[i]=h.defaultValue(e._offsetAttribute,-1),t};var v=new f.Cartesian3,G=new f.Ellipsoid,L={center:v,ellipsoid:G,semiMajorAxis:void 0,semiMinorAxis:void 0,rotation:void 0,height:void 0,granularity:void 0,extrudedHeight:void 0,numberOfVerticalLines:void 0,offsetAttribute:void 0};C.unpack=function(e,t,i){t=h.defaultValue(t,0);var r=f.Cartesian3.unpack(e,t,v),a=(t+=f.Cartesian3.packedLength,f.Ellipsoid.unpack(e,t,G)),n=(t+=f.Ellipsoid.packedLength,e[t++]),o=e[t++],s=e[t++],u=e[t++],l=e[t++],d=e[t++],p=e[t++],e=e[t];return h.defined(i)?(i._center=f.Cartesian3.clone(r,i._center),i._ellipsoid=f.Ellipsoid.clone(a,i._ellipsoid),i._semiMajorAxis=n,i._semiMinorAxis=o,i._rotation=s,i._height=u,i._granularity=l,i._extrudedHeight=d,i._numberOfVerticalLines=p,i._offsetAttribute=-1===e?void 0:e,i):(L.height=u,L.extrudedHeight=d,L.granularity=l,L.rotation=s,L.semiMajorAxis=n,L.semiMinorAxis=o,L.numberOfVerticalLines=p,L.offsetAttribute=-1===e?void 0:e,new C(L))},C.createGeometry=function(e){var t,i,r,a;if(!(e._semiMajorAxis<=0||e._semiMinorAxis<=0))return r=e._height,i=e._extrudedHeight,t=!g.CesiumMath.equalsEpsilon(r,i,0,g.CesiumMath.EPSILON2),e._center=e._ellipsoid.scaleToGeodeticSurface(e._center,e._center),r={center:e._center,semiMajorAxis:e._semiMajorAxis,semiMinorAxis:e._semiMinorAxis,ellipsoid:e._ellipsoid,rotation:e._rotation,height:r,granularity:e._granularity,numberOfVerticalLines:e._numberOfVerticalLines},t?(r.extrudedHeight=i,r.offsetAttribute=e._offsetAttribute,a=function(e){var t=e.center,i=e.ellipsoid,r=e.semiMajorAxis,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,x),e.height,x),i=(E.center=f.Cartesian3.add(t,a,E.center),E.radius=r,a=f.Cartesian3.multiplyByScalar(i.geodeticSurfaceNormal(t,a),e.extrudedHeight,a),M.center=f.Cartesian3.add(t,a,M.center),M.radius=r,y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions),i=(t=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!0)})})).position.values,a=c.BoundingSphere.union(E,M),n=i.length/3,i=(h.defined(e.offsetAttribute)&&(r=new Uint8Array(n),r=e.offsetAttribute===p.GeometryOffsetAttribute.TOP?p.arrayFill(r,1,0,n/2):(i=e.offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(r,i)),t.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:r})),h.defaultValue(e.numberOfVerticalLines,16)),i=g.CesiumMath.clamp(i,0,n/2),o=_.IndexDatatype.createTypedArray(n,2*n+2*i),s=(n/=2,0);for(d=0;d<n;++d)o[s++]=d,o[s++]=(d+1)%n,o[s++]=d+n,o[s++]=(d+1)%n+n;if(0<i)for(var r=Math.min(i,n),u=Math.round(n/r),l=Math.min(u*i,n),d=0;d<l;d+=u)o[s++]=d,o[s++]=d+n;return{boundingSphere:a,attributes:t,indices:o}}(r)):(a=function(e){for(var t=e.center,t=(s=f.Cartesian3.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(t,s),e.height,s),s=f.Cartesian3.add(t,s,s),new c.BoundingSphere(s,e.semiMajorAxis)),i=y.EllipseGeometryLibrary.computeEllipsePositions(e,!1,!0).outerPositions,e=new A.GeometryAttributes({position:new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y.EllipseGeometryLibrary.raisePositionsToHeight(i,e,!1)})}),r=i.length/3,a=_.IndexDatatype.createTypedArray(r,2*r),n=0,o=0;o<r;++o)a[n++]=o,a[n++]=(o+1)%r;return{boundingSphere:t,attributes:e,indices:a}}(r),h.defined(e._offsetAttribute)&&(t=a.attributes.position.values.length,i=new Uint8Array(t/3),r=e._offsetAttribute===p.GeometryOffsetAttribute.NONE?0:1,p.arrayFill(i,r),a.attributes.applyOffset=new b.GeometryAttribute({componentDatatype:m.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:i}))),new b.Geometry({attributes:a.attributes,indices:a.indices,primitiveType:b.PrimitiveType.LINES,boundingSphere:a.boundingSphere,offsetAttribute:e._offsetAttribute})},e.EllipseOutlineGeometry=C});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Matrix2-10a61a55","./RuntimeError-24b14c10","./when-ae2e0b60","./ComponentDatatype-b7b5db18"],function(t,j,a,p,L){"use strict";function N(t,a,i,n,e,s,r){i=t*i*(4+t*(4-3*i))/16;return(1-i)*t*a*(n+i*e*(r+i*s*(2*r*r-1)))}var V=new j.Cartesian3,k=new j.Cartesian3;function n(t,a,i,n){j.Cartesian3.normalize(n.cartographicToCartesian(a,k),V),j.Cartesian3.normalize(n.cartographicToCartesian(i,k),k);var e,s,r,h,o,d,u,c,M,l,g,p,_,f=t,m=n.maximumRadius,n=n.minimumRadius,v=a.longitude,C=a.latitude,H=i.longitude,O=i.latitude,b=(m-n)/m,S=H-v,H=Math.atan((1-b)*Math.tan(C)),v=Math.atan((1-b)*Math.tan(O)),C=Math.cos(H),O=Math.sin(H),q=Math.cos(v),H=Math.sin(v),z=C*q,U=C*H,F=O*H,w=O*q,A=S,R=(L.CesiumMath.TWO_PI,Math.cos(A)),y=Math.sin(A);do{var E,x,D,G,P,R=Math.cos(A),y=Math.sin(A),I=U-w*R,W=A,T=(D=F+z*R)-2*F/(P=0===(x=Math.sqrt(q*q*y*y+I*I))?(E=0,1):1-(E=z*y/x)*E),A=S+N(b,E,P,G=Math.atan2(x,D),x,D,T=isFinite(T)?T:0)}while(Math.abs(A-W)>L.CesiumMath.EPSILON12);m=n*(1+(v=P*(m*m-n*n)/(n*n))*(4096+v*(v*(320-175*v)-768))/16384)*(G-(H=v*(256+v*(v*(74-47*v)-128))/1024)*x*(T+H*(D*(2*(O=T*T)-1)-H*T*(4*x*x-3)*(4*O-3)/6)/4)),n=Math.atan2(q*y,U-w*R),H=Math.atan2(C*y,U*R-w),f._distance=m,f._startHeading=n,f._endHeading=H,f._uSquared=v,t._start=j.Cartographic.clone(a,t._start),t._end=j.Cartographic.clone(i,t._end),t._start.height=0,t._end.height=0,C=(O=t)._uSquared,m=O._ellipsoid.maximumRadius,n=O._ellipsoid.minimumRadius,H=(m-n)/m,f=Math.cos(O._startHeading),v=Math.sin(O._startHeading),a=(1-H)*Math.tan(O._start.latitude),i=1/Math.sqrt(1+a*a),t=i*a,e=Math.atan2(a,f),h=1-(r=(s=i*v)*s),o=Math.sqrt(h),d=(C=C/4)*C,g=1-3*C+35*d/4,p=1-5*C,_=(M=1+C-3*d/4+5*(u=d*C)/4-175*(c=d*d)/64)*e-(l=1-C+15*d/8-35*u/8)*Math.sin(2*e)*C/2-g*Math.sin(4*e)*d/16-p*Math.sin(6*e)*u/48-5*Math.sin(8*e)*c/512,(O=O._constants).a=m,O.b=n,O.f=H,O.cosineHeading=f,O.sineHeading=v,O.tanU=a,O.cosineU=i,O.sineU=t,O.sigma=e,O.sineAlpha=s,O.sineSquaredAlpha=r,O.cosineSquaredAlpha=h,O.cosineAlpha=o,O.u2Over4=C,O.u4Over16=d,O.u6Over64=u,O.u8Over256=c,O.a0=M,O.a1=l,O.a2=g,O.a3=p,O.distanceRatio=_}function i(t,a,i){i=p.defaultValue(i,j.Ellipsoid.WGS84);this._ellipsoid=i,this._start=new j.Cartographic,this._end=new j.Cartographic,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,p.defined(t)&&p.defined(a)&&n(this,t,a,i)}Object.defineProperties(i.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return this._startHeading}},endHeading:{get:function(){return this._endHeading}}}),i.prototype.setEndPoints=function(t,a){n(this,t,a,this._ellipsoid)},i.prototype.interpolateUsingFraction=function(t,a){return this.interpolateUsingSurfaceDistance(this._distance*t,a)},i.prototype.interpolateUsingSurfaceDistance=function(t,a){var i=this._constants,t=i.distanceRatio+t/i.b,n=Math.cos(2*t),e=Math.cos(4*t),s=Math.cos(6*t),r=Math.sin(2*t),h=Math.sin(4*t),o=Math.sin(6*t),d=Math.sin(8*t),u=t*t,c=i.u8Over256,M=i.u2Over4,l=i.u6Over64,g=i.u4Over16,t=2*(t*u)*c*n/3+t*(1-M+7*g/4-15*l/4+579*c/64-(g-15*l/4+187*c/16)*n-(5*l/4-115*c/16)*e-29*c*s/16)+(M/2-g+71*l/32-85*c/16)*r+(5*g/16-5*l/4+383*c/96)*h-u*((l-11*c/2)*r+5*c*h/2)+(29*l/96-29*c/16)*o+539*c*d/1536,n=Math.asin(Math.sin(t)*i.cosineAlpha),e=Math.atan(i.a/i.b*Math.tan(n)),s=(t-=i.sigma,Math.cos(2*i.sigma+t)),M=Math.sin(t),g=Math.cos(t),u=i.cosineU*g,r=i.sineU*M,h=Math.atan2(M*i.sineHeading,u-r*i.cosineHeading)-N(i.f,i.sineAlpha,i.cosineSquaredAlpha,t,M,g,s);return p.defined(a)?(a.longitude=this._start.longitude+h,a.latitude=e,a.height=0,a):new j.Cartographic(this._start.longitude+h,e,0)},t.EllipsoidGeodesic=i});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Cartesian2-c1eb9da0","./Check-f996273c","./when-ae2e0b60","./Math-5bbcea10"],function(t,j,a,_,k){"use strict";function L(t,a,i,n,e,s,r){i=t*i*(4+t*(4-3*i))/16;return(1-i)*t*a*(n+i*e*(r+i*s*(2*r*r-1)))}var N=new j.Cartesian3,V=new j.Cartesian3;function n(t,a,i,n){j.Cartesian3.normalize(n.cartographicToCartesian(a,V),N),j.Cartesian3.normalize(n.cartographicToCartesian(i,V),V);var e,s,r,h,o,d,c,u,M,l,g,_,p,f=t,m=n.maximumRadius,n=n.minimumRadius,v=a.longitude,C=a.latitude,H=i.longitude,O=i.latitude,S=(m-n)/m,b=H-v,H=Math.atan((1-S)*Math.tan(C)),v=Math.atan((1-S)*Math.tan(O)),C=Math.cos(H),O=Math.sin(H),q=Math.cos(v),H=Math.sin(v),z=C*q,U=C*H,F=O*H,w=O*q,A=b,R=(k.CesiumMath.TWO_PI,Math.cos(A)),y=Math.sin(A);do{var E,P,x,G,D,R=Math.cos(A),y=Math.sin(A),I=U-w*R,W=A,T=(x=F+z*R)-2*F/(D=0===(P=Math.sqrt(q*q*y*y+I*I))?(E=0,1):1-(E=z*y/P)*E),A=b+L(S,E,D,G=Math.atan2(P,x),P,x,T=isFinite(T)?T:0)}while(Math.abs(A-W)>k.CesiumMath.EPSILON12);m=n*(1+(v=D*(m*m-n*n)/(n*n))*(4096+v*(v*(320-175*v)-768))/16384)*(G-(H=v*(256+v*(v*(74-47*v)-128))/1024)*P*(T+H*(x*(2*(O=T*T)-1)-H*T*(4*P*P-3)*(4*O-3)/6)/4)),n=Math.atan2(q*y,U-w*R),H=Math.atan2(C*y,U*R-w),f._distance=m,f._startHeading=n,f._endHeading=H,f._uSquared=v,t._start=j.Cartographic.clone(a,t._start),t._end=j.Cartographic.clone(i,t._end),t._start.height=0,t._end.height=0,C=(O=t)._uSquared,m=O._ellipsoid.maximumRadius,n=O._ellipsoid.minimumRadius,H=(m-n)/m,f=Math.cos(O._startHeading),v=Math.sin(O._startHeading),a=(1-H)*Math.tan(O._start.latitude),i=1/Math.sqrt(1+a*a),t=i*a,e=Math.atan2(a,f),h=1-(r=(s=i*v)*s),o=Math.sqrt(h),d=(C=C/4)*C,g=1-3*C+35*d/4,_=1-5*C,p=(M=1+C-3*d/4+5*(c=d*C)/4-175*(u=d*d)/64)*e-(l=1-C+15*d/8-35*c/8)*Math.sin(2*e)*C/2-g*Math.sin(4*e)*d/16-_*Math.sin(6*e)*c/48-5*Math.sin(8*e)*u/512,(O=O._constants).a=m,O.b=n,O.f=H,O.cosineHeading=f,O.sineHeading=v,O.tanU=a,O.cosineU=i,O.sineU=t,O.sigma=e,O.sineAlpha=s,O.sineSquaredAlpha=r,O.cosineSquaredAlpha=h,O.cosineAlpha=o,O.u2Over4=C,O.u4Over16=d,O.u6Over64=c,O.u8Over256=u,O.a0=M,O.a1=l,O.a2=g,O.a3=_,O.distanceRatio=p}function i(t,a,i){i=_.defaultValue(i,j.Ellipsoid.WGS84);this._ellipsoid=i,this._start=new j.Cartographic,this._end=new j.Cartographic,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,_.defined(t)&&_.defined(a)&&n(this,t,a,i)}Object.defineProperties(i.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return this._startHeading}},endHeading:{get:function(){return this._endHeading}}}),i.prototype.setEndPoints=function(t,a){n(this,t,a,this._ellipsoid)},i.prototype.interpolateUsingFraction=function(t,a){return this.interpolateUsingSurfaceDistance(this._distance*t,a)},i.prototype.interpolateUsingSurfaceDistance=function(t,a){var i=this._constants,t=i.distanceRatio+t/i.b,n=Math.cos(2*t),e=Math.cos(4*t),s=Math.cos(6*t),r=Math.sin(2*t),h=Math.sin(4*t),o=Math.sin(6*t),d=Math.sin(8*t),c=t*t,u=i.u8Over256,M=i.u2Over4,l=i.u6Over64,g=i.u4Over16,t=2*(t*c)*u*n/3+t*(1-M+7*g/4-15*l/4+579*u/64-(g-15*l/4+187*u/16)*n-(5*l/4-115*u/16)*e-29*u*s/16)+(M/2-g+71*l/32-85*u/16)*r+(5*g/16-5*l/4+383*u/96)*h-c*((l-11*u/2)*r+5*u*h/2)+(29*l/96-29*u/16)*o+539*u*d/1536,n=Math.asin(Math.sin(t)*i.cosineAlpha),e=Math.atan(i.a/i.b*Math.tan(n)),s=(t-=i.sigma,Math.cos(2*i.sigma+t)),M=Math.sin(t),g=Math.cos(t),c=i.cosineU*g,r=i.sineU*M,h=Math.atan2(M*i.sineHeading,c-r*i.cosineHeading)-L(i.f,i.sineAlpha,i.cosineSquaredAlpha,t,M,g,s);return _.defined(a)?(a.longitude=this._start.longitude+h,a.latitude=e,a.height=0,a):new j.Cartographic(this._start.longitude+h,e,0)},t.EllipsoidGeodesic=i});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./Cartesian2-078e6458","./Check-f996273c","./when-ae2e0b60","./Math-5bbcea10"],function(t,j,a,_,k){"use strict";function L(t,a,i,n,e,s,r){i=t*i*(4+t*(4-3*i))/16;return(1-i)*t*a*(n+i*e*(r+i*s*(2*r*r-1)))}var N=new j.Cartesian3,V=new j.Cartesian3;function n(t,a,i,n){j.Cartesian3.normalize(n.cartographicToCartesian(a,V),N),j.Cartesian3.normalize(n.cartographicToCartesian(i,V),V);var e,s,r,h,o,d,c,u,M,l,g,_,p,f=t,m=n.maximumRadius,n=n.minimumRadius,v=a.longitude,C=a.latitude,H=i.longitude,O=i.latitude,S=(m-n)/m,q=H-v,H=Math.atan((1-S)*Math.tan(C)),v=Math.atan((1-S)*Math.tan(O)),C=Math.cos(H),O=Math.sin(H),b=Math.cos(v),H=Math.sin(v),z=C*b,U=C*H,F=O*H,w=O*b,A=q,R=(k.CesiumMath.TWO_PI,Math.cos(A)),y=Math.sin(A);do{var E,P,x,G,D,R=Math.cos(A),y=Math.sin(A),I=U-w*R,W=A,T=(x=F+z*R)-2*F/(D=0===(P=Math.sqrt(b*b*y*y+I*I))?(E=0,1):1-(E=z*y/P)*E),A=q+L(S,E,D,G=Math.atan2(P,x),P,x,T=isFinite(T)?T:0)}while(Math.abs(A-W)>k.CesiumMath.EPSILON12);m=n*(1+(v=D*(m*m-n*n)/(n*n))*(4096+v*(v*(320-175*v)-768))/16384)*(G-(H=v*(256+v*(v*(74-47*v)-128))/1024)*P*(T+H*(x*(2*(O=T*T)-1)-H*T*(4*P*P-3)*(4*O-3)/6)/4)),n=Math.atan2(b*y,U-w*R),H=Math.atan2(C*y,U*R-w),f._distance=m,f._startHeading=n,f._endHeading=H,f._uSquared=v,t._start=j.Cartographic.clone(a,t._start),t._end=j.Cartographic.clone(i,t._end),t._start.height=0,t._end.height=0,C=(O=t)._uSquared,m=O._ellipsoid.maximumRadius,n=O._ellipsoid.minimumRadius,H=(m-n)/m,f=Math.cos(O._startHeading),v=Math.sin(O._startHeading),a=(1-H)*Math.tan(O._start.latitude),i=1/Math.sqrt(1+a*a),t=i*a,e=Math.atan2(a,f),h=1-(r=(s=i*v)*s),o=Math.sqrt(h),d=(C=C/4)*C,g=1-3*C+35*d/4,_=1-5*C,p=(M=1+C-3*d/4+5*(c=d*C)/4-175*(u=d*d)/64)*e-(l=1-C+15*d/8-35*c/8)*Math.sin(2*e)*C/2-g*Math.sin(4*e)*d/16-_*Math.sin(6*e)*c/48-5*Math.sin(8*e)*u/512,(O=O._constants).a=m,O.b=n,O.f=H,O.cosineHeading=f,O.sineHeading=v,O.tanU=a,O.cosineU=i,O.sineU=t,O.sigma=e,O.sineAlpha=s,O.sineSquaredAlpha=r,O.cosineSquaredAlpha=h,O.cosineAlpha=o,O.u2Over4=C,O.u4Over16=d,O.u6Over64=c,O.u8Over256=u,O.a0=M,O.a1=l,O.a2=g,O.a3=_,O.distanceRatio=p}function i(t,a,i){i=_.defaultValue(i,j.Ellipsoid.WGS84);this._ellipsoid=i,this._start=new j.Cartographic,this._end=new j.Cartographic,this._constants={},this._startHeading=void 0,this._endHeading=void 0,this._distance=void 0,this._uSquared=void 0,_.defined(t)&&_.defined(a)&&n(this,t,a,i)}Object.defineProperties(i.prototype,{ellipsoid:{get:function(){return this._ellipsoid}},surfaceDistance:{get:function(){return this._distance}},start:{get:function(){return this._start}},end:{get:function(){return this._end}},startHeading:{get:function(){return this._startHeading}},endHeading:{get:function(){return this._endHeading}}}),i.prototype.setEndPoints=function(t,a){n(this,t,a,this._ellipsoid)},i.prototype.interpolateUsingFraction=function(t,a){return this.interpolateUsingSurfaceDistance(this._distance*t,a)},i.prototype.interpolateUsingSurfaceDistance=function(t,a){var i=this._constants,t=i.distanceRatio+t/i.b,n=Math.cos(2*t),e=Math.cos(4*t),s=Math.cos(6*t),r=Math.sin(2*t),h=Math.sin(4*t),o=Math.sin(6*t),d=Math.sin(8*t),c=t*t,u=i.u8Over256,M=i.u2Over4,l=i.u6Over64,g=i.u4Over16,t=2*(t*c)*u*n/3+t*(1-M+7*g/4-15*l/4+579*u/64-(g-15*l/4+187*u/16)*n-(5*l/4-115*u/16)*e-29*u*s/16)+(M/2-g+71*l/32-85*u/16)*r+(5*g/16-5*l/4+383*u/96)*h-c*((l-11*u/2)*r+5*u*h/2)+(29*l/96-29*u/16)*o+539*u*d/1536,n=Math.asin(Math.sin(t)*i.cosineAlpha),e=Math.atan(i.a/i.b*Math.tan(n)),s=(t-=i.sigma,Math.cos(2*i.sigma+t)),M=Math.sin(t),g=Math.cos(t),c=i.cosineU*g,r=i.sineU*M,h=Math.atan2(M*i.sineHeading,c-r*i.cosineHeading)-L(i.f,i.sineAlpha,i.cosineSquaredAlpha,t,M,g,s);return _.defined(a)?(a.longitude=this._start.longitude+h,a.latitude=e,a.height=0,a):new j.Cartographic(this._start.longitude+h,e,0)},t.EllipsoidGeodesic=i});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-1fa85493","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-9cc31675","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(t,Q,$,tt,et,at,e,it,rt,nt,ot,f){"use strict";var mt=new tt.Cartesian3,st=new tt.Cartesian3,ut=new tt.Cartesian3,lt=new tt.Cartesian3,ct=new tt.Cartesian3,l=new tt.Cartesian3(1,1,1),ft=Math.cos,dt=Math.sin;function d(t){t=at.defaultValue(t,at.defaultValue.EMPTY_OBJECT);var e=at.defaultValue(t.radii,l),a=at.defaultValue(t.innerRadii,e),i=at.defaultValue(t.minimumClock,0),r=at.defaultValue(t.maximumClock,ot.CesiumMath.TWO_PI),n=at.defaultValue(t.minimumCone,0),o=at.defaultValue(t.maximumCone,ot.CesiumMath.PI),m=Math.round(at.defaultValue(t.stackPartitions,64)),s=Math.round(at.defaultValue(t.slicePartitions,64)),u=at.defaultValue(t.vertexFormat,f.VertexFormat.DEFAULT);this._radii=tt.Cartesian3.clone(e),this._innerRadii=tt.Cartesian3.clone(a),this._minimumClock=i,this._maximumClock=r,this._minimumCone=n,this._maximumCone=o,this._stackPartitions=m,this._slicePartitions=s,this._vertexFormat=f.VertexFormat.clone(u),this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidGeometry"}d.packedLength=2*tt.Cartesian3.packedLength+f.VertexFormat.packedLength+7,d.pack=function(t,e,a){return a=at.defaultValue(a,0),tt.Cartesian3.pack(t._radii,e,a),a+=tt.Cartesian3.packedLength,tt.Cartesian3.pack(t._innerRadii,e,a),a+=tt.Cartesian3.packedLength,f.VertexFormat.pack(t._vertexFormat,e,a),a+=f.VertexFormat.packedLength,e[a++]=t._minimumClock,e[a++]=t._maximumClock,e[a++]=t._minimumCone,e[a++]=t._maximumCone,e[a++]=t._stackPartitions,e[a++]=t._slicePartitions,e[a]=at.defaultValue(t._offsetAttribute,-1),e};var a,C=new tt.Cartesian3,p=new tt.Cartesian3,y=new f.VertexFormat,_={radii:C,innerRadii:p,vertexFormat:y,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};d.unpack=function(t,e,a){e=at.defaultValue(e,0);var i=tt.Cartesian3.unpack(t,e,C),r=(e+=tt.Cartesian3.packedLength,tt.Cartesian3.unpack(t,e,p)),n=(e+=tt.Cartesian3.packedLength,f.VertexFormat.unpack(t,e,y)),o=(e+=f.VertexFormat.packedLength,t[e++]),m=t[e++],s=t[e++],u=t[e++],l=t[e++],c=t[e++],t=t[e];return at.defined(a)?(a._radii=tt.Cartesian3.clone(i,a._radii),a._innerRadii=tt.Cartesian3.clone(r,a._innerRadii),a._vertexFormat=f.VertexFormat.clone(n,a._vertexFormat),a._minimumClock=o,a._maximumClock=m,a._minimumCone=s,a._maximumCone=u,a._stackPartitions=l,a._slicePartitions=c,a._offsetAttribute=-1===t?void 0:t,a):(_.minimumClock=o,_.maximumClock=m,_.minimumCone=s,_.maximumCone=u,_.stackPartitions=l,_.slicePartitions=c,_.offsetAttribute=-1===t?void 0:t,new d(_))},d.createGeometry=function(t){var e=t._radii;if(!(e.x<=0||e.y<=0||e.z<=0)){var a=t._innerRadii;if(!(a.x<=0||a.y<=0||a.z<=0)){var i=t._minimumClock,r=t._maximumClock,n=t._minimumCone,o=t._maximumCone,m=t._vertexFormat,s=t._slicePartitions+1,u=t._stackPartitions+1,l=((s=Math.round(s*Math.abs(r-i)/ot.CesiumMath.TWO_PI))<2&&(s=2),(u=Math.round(u*Math.abs(o-n)/ot.CesiumMath.PI))<2&&(u=2),0),c=[n],f=[i];for(L=0;L<u;L++)c.push(n+L*(o-n)/(u-1));for(c.push(o),V=0;V<s;V++)f.push(i+V*(r-i)/(s-1));f.push(r);var d=c.length,C=f.length,p=0,y=1,_=a.x!==e.x||a.y!==e.y||a.z!==e.z,h=!1,A=!1,E=!1,x=(_&&(y=2,0<n&&(h=!0,p+=s-1),o<Math.PI&&(A=!0,p+=s-1),(r-i)%ot.CesiumMath.TWO_PI?(E=!0,p+=2*(u-1)+1):p+=1),C*d*y),b=new Float64Array(3*x),z=Q.arrayFill(new Array(x),!1),N=Q.arrayFill(new Array(x),!1),v=s*u*y,k=nt.IndexDatatype.createTypedArray(v,6*(v+p+1-(s+u)*y)),w=m.normal?new Float32Array(3*x):void 0,F=m.tangent?new Float32Array(3*x):void 0,P=m.bitangent?new Float32Array(3*x):void 0,R=m.st?new Float32Array(2*x):void 0,g=new Array(d),U=new Array(d);for(L=0;L<d;L++)g[L]=dt(c[L]),U[L]=ft(c[L]);for(var S=new Array(C),B=new Array(C),V=0;V<C;V++)B[V]=ft(f[V]),S[V]=dt(f[V]);for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=e.x*g[L]*B[V],b[l++]=e.y*g[L]*S[V],b[l++]=e.z*U[L];var M,T,D,G,W=x/2;if(_)for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=a.x*g[L]*B[V],b[l++]=a.y*g[L]*S[V],b[l++]=a.z*U[L],z[W]=!0,0<L&&L!==d-1&&0!==V&&V!==C-1&&(N[W]=!0),W++;for(l=0,L=1;L<d-2;L++)for(M=L*C,T=(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=T+V+1,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=M+V;if(_)for(var Y=d*C,L=1;L<d-2;L++)for(M=Y+L*C,T=Y+(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=M+V,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=T+V+1;if(_){if(h)for(G=d*C,L=1;L<C-2;L++)k[l++]=L,k[l++]=L+1,k[l++]=G+L+1,k[l++]=L,k[l++]=G+L+1,k[l++]=G+L;if(A)for(D=d*C-C,G=d*C*y-C,L=1;L<C-2;L++)k[l++]=D+L+1,k[l++]=D+L,k[l++]=G+L,k[l++]=D+L+1,k[l++]=G+L,k[l++]=G+L+1}if(E){for(L=1;L<d-2;L++)k[l++]=G=C*d+(D=C*L),k[l++]=D+C,k[l++]=D,k[l++]=G,k[l++]=G+C,k[l++]=D+C;for(L=1;L<d-2;L++)G=C*d+C*(L+1)-1,k[l++]=(D=C*(L+1)-1)+C,k[l++]=G,k[l++]=D,k[l++]=D+C,k[l++]=G+C,k[l++]=G}var v=new rt.GeometryAttributes,J=(m.position&&(v.position=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:b})),0),X=0,Z=0,j=0,q=x/2,H=tt.Ellipsoid.fromCartesian3(e),K=tt.Ellipsoid.fromCartesian3(a);if(m.st||m.normal||m.tangent||m.bitangent){for(L=0;L<x;L++){var O=z[L]?K:H,I=tt.Cartesian3.fromArray(b,3*L,mt),O=O.geodeticSurfaceNormal(I,st);N[L]&&tt.Cartesian3.negate(O,O),m.st&&(I=tt.Cartesian2.negate(O,ct),R[J++]=Math.atan2(I.y,I.x)/ot.CesiumMath.TWO_PI+.5,R[J++]=Math.asin(O.z)/Math.PI+.5),m.normal&&(w[X++]=O.x,w[X++]=O.y,w[X++]=O.z),(m.tangent||m.bitangent)&&(I=0,z[L]&&(I=q),I=!h&&I<=L&&L<I+2*C?tt.Cartesian3.UNIT_X:tt.Cartesian3.UNIT_Z,tt.Cartesian3.cross(I,O,I=ut),tt.Cartesian3.normalize(I,I),m.tangent&&(F[Z++]=I.x,F[Z++]=I.y,F[Z++]=I.z),m.bitangent)&&(O=tt.Cartesian3.cross(O,I,lt),tt.Cartesian3.normalize(O,O),P[j++]=O.x,P[j++]=O.y,P[j++]=O.z)}m.st&&(v.st=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:R})),m.normal&&(v.normal=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),m.tangent&&(v.tangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:F})),m.bitangent&&(v.bitangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:P}))}return at.defined(t._offsetAttribute)&&(p=b.length,_=new Uint8Array(p/3),A=t._offsetAttribute===Q.GeometryOffsetAttribute.NONE?0:1,Q.arrayFill(_,A),v.applyOffset=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new it.Geometry({attributes:v,indices:k,primitiveType:it.PrimitiveType.TRIANGLES,boundingSphere:$.BoundingSphere.fromEllipsoid(H),offsetAttribute:t._offsetAttribute})}}},d.getUnitEllipsoid=function(){return a=at.defined(a)?a:d.createGeometry(new d({radii:new tt.Cartesian3(1,1,1),vertexFormat:f.VertexFormat.POSITION_ONLY}))},t.EllipsoidGeometry=d});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-713e2e92","./Cartesian2-c1eb9da0","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-e03451d8","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(t,Q,$,tt,et,at,e,it,rt,nt,ot,f){"use strict";var mt=new tt.Cartesian3,st=new tt.Cartesian3,ut=new tt.Cartesian3,lt=new tt.Cartesian3,ct=new tt.Cartesian3,l=new tt.Cartesian3(1,1,1),ft=Math.cos,dt=Math.sin;function d(t){t=at.defaultValue(t,at.defaultValue.EMPTY_OBJECT);var e=at.defaultValue(t.radii,l),a=at.defaultValue(t.innerRadii,e),i=at.defaultValue(t.minimumClock,0),r=at.defaultValue(t.maximumClock,ot.CesiumMath.TWO_PI),n=at.defaultValue(t.minimumCone,0),o=at.defaultValue(t.maximumCone,ot.CesiumMath.PI),m=Math.round(at.defaultValue(t.stackPartitions,64)),s=Math.round(at.defaultValue(t.slicePartitions,64)),u=at.defaultValue(t.vertexFormat,f.VertexFormat.DEFAULT);this._radii=tt.Cartesian3.clone(e),this._innerRadii=tt.Cartesian3.clone(a),this._minimumClock=i,this._maximumClock=r,this._minimumCone=n,this._maximumCone=o,this._stackPartitions=m,this._slicePartitions=s,this._vertexFormat=f.VertexFormat.clone(u),this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidGeometry"}d.packedLength=2*tt.Cartesian3.packedLength+f.VertexFormat.packedLength+7,d.pack=function(t,e,a){return a=at.defaultValue(a,0),tt.Cartesian3.pack(t._radii,e,a),a+=tt.Cartesian3.packedLength,tt.Cartesian3.pack(t._innerRadii,e,a),a+=tt.Cartesian3.packedLength,f.VertexFormat.pack(t._vertexFormat,e,a),a+=f.VertexFormat.packedLength,e[a++]=t._minimumClock,e[a++]=t._maximumClock,e[a++]=t._minimumCone,e[a++]=t._maximumCone,e[a++]=t._stackPartitions,e[a++]=t._slicePartitions,e[a]=at.defaultValue(t._offsetAttribute,-1),e};var a,C=new tt.Cartesian3,p=new tt.Cartesian3,y=new f.VertexFormat,_={radii:C,innerRadii:p,vertexFormat:y,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};d.unpack=function(t,e,a){e=at.defaultValue(e,0);var i=tt.Cartesian3.unpack(t,e,C),r=(e+=tt.Cartesian3.packedLength,tt.Cartesian3.unpack(t,e,p)),n=(e+=tt.Cartesian3.packedLength,f.VertexFormat.unpack(t,e,y)),o=(e+=f.VertexFormat.packedLength,t[e++]),m=t[e++],s=t[e++],u=t[e++],l=t[e++],c=t[e++],t=t[e];return at.defined(a)?(a._radii=tt.Cartesian3.clone(i,a._radii),a._innerRadii=tt.Cartesian3.clone(r,a._innerRadii),a._vertexFormat=f.VertexFormat.clone(n,a._vertexFormat),a._minimumClock=o,a._maximumClock=m,a._minimumCone=s,a._maximumCone=u,a._stackPartitions=l,a._slicePartitions=c,a._offsetAttribute=-1===t?void 0:t,a):(_.minimumClock=o,_.maximumClock=m,_.minimumCone=s,_.maximumCone=u,_.stackPartitions=l,_.slicePartitions=c,_.offsetAttribute=-1===t?void 0:t,new d(_))},d.createGeometry=function(t){var e=t._radii;if(!(e.x<=0||e.y<=0||e.z<=0)){var a=t._innerRadii;if(!(a.x<=0||a.y<=0||a.z<=0)){var i=t._minimumClock,r=t._maximumClock,n=t._minimumCone,o=t._maximumCone,m=t._vertexFormat,s=t._slicePartitions+1,u=t._stackPartitions+1,l=((s=Math.round(s*Math.abs(r-i)/ot.CesiumMath.TWO_PI))<2&&(s=2),(u=Math.round(u*Math.abs(o-n)/ot.CesiumMath.PI))<2&&(u=2),0),c=[n],f=[i];for(L=0;L<u;L++)c.push(n+L*(o-n)/(u-1));for(c.push(o),V=0;V<s;V++)f.push(i+V*(r-i)/(s-1));f.push(r);var d=c.length,C=f.length,p=0,y=1,_=a.x!==e.x||a.y!==e.y||a.z!==e.z,h=!1,A=!1,E=!1,x=(_&&(y=2,0<n&&(h=!0,p+=s-1),o<Math.PI&&(A=!0,p+=s-1),(r-i)%ot.CesiumMath.TWO_PI?(E=!0,p+=2*(u-1)+1):p+=1),C*d*y),b=new Float64Array(3*x),z=Q.arrayFill(new Array(x),!1),N=Q.arrayFill(new Array(x),!1),v=s*u*y,k=nt.IndexDatatype.createTypedArray(v,6*(v+p+1-(s+u)*y)),w=m.normal?new Float32Array(3*x):void 0,F=m.tangent?new Float32Array(3*x):void 0,P=m.bitangent?new Float32Array(3*x):void 0,R=m.st?new Float32Array(2*x):void 0,g=new Array(d),U=new Array(d);for(L=0;L<d;L++)g[L]=dt(c[L]),U[L]=ft(c[L]);for(var S=new Array(C),B=new Array(C),V=0;V<C;V++)B[V]=ft(f[V]),S[V]=dt(f[V]);for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=e.x*g[L]*B[V],b[l++]=e.y*g[L]*S[V],b[l++]=e.z*U[L];var M,T,D,G,W=x/2;if(_)for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=a.x*g[L]*B[V],b[l++]=a.y*g[L]*S[V],b[l++]=a.z*U[L],z[W]=!0,0<L&&L!==d-1&&0!==V&&V!==C-1&&(N[W]=!0),W++;for(l=0,L=1;L<d-2;L++)for(M=L*C,T=(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=T+V+1,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=M+V;if(_)for(var Y=d*C,L=1;L<d-2;L++)for(M=Y+L*C,T=Y+(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=M+V,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=T+V+1;if(_){if(h)for(G=d*C,L=1;L<C-2;L++)k[l++]=L,k[l++]=L+1,k[l++]=G+L+1,k[l++]=L,k[l++]=G+L+1,k[l++]=G+L;if(A)for(D=d*C-C,G=d*C*y-C,L=1;L<C-2;L++)k[l++]=D+L+1,k[l++]=D+L,k[l++]=G+L,k[l++]=D+L+1,k[l++]=G+L,k[l++]=G+L+1}if(E){for(L=1;L<d-2;L++)k[l++]=G=C*d+(D=C*L),k[l++]=D+C,k[l++]=D,k[l++]=G,k[l++]=G+C,k[l++]=D+C;for(L=1;L<d-2;L++)G=C*d+C*(L+1)-1,k[l++]=(D=C*(L+1)-1)+C,k[l++]=G,k[l++]=D,k[l++]=D+C,k[l++]=G+C,k[l++]=G}var v=new rt.GeometryAttributes,J=(m.position&&(v.position=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:b})),0),X=0,Z=0,j=0,q=x/2,H=tt.Ellipsoid.fromCartesian3(e),K=tt.Ellipsoid.fromCartesian3(a);if(m.st||m.normal||m.tangent||m.bitangent){for(L=0;L<x;L++){var O=z[L]?K:H,I=tt.Cartesian3.fromArray(b,3*L,mt),O=O.geodeticSurfaceNormal(I,st);N[L]&&tt.Cartesian3.negate(O,O),m.st&&(I=tt.Cartesian2.negate(O,ct),R[J++]=Math.atan2(I.y,I.x)/ot.CesiumMath.TWO_PI+.5,R[J++]=Math.asin(O.z)/Math.PI+.5),m.normal&&(w[X++]=O.x,w[X++]=O.y,w[X++]=O.z),(m.tangent||m.bitangent)&&(I=0,z[L]&&(I=q),I=!h&&I<=L&&L<I+2*C?tt.Cartesian3.UNIT_X:tt.Cartesian3.UNIT_Z,tt.Cartesian3.cross(I,O,I=ut),tt.Cartesian3.normalize(I,I),m.tangent&&(F[Z++]=I.x,F[Z++]=I.y,F[Z++]=I.z),m.bitangent)&&(O=tt.Cartesian3.cross(O,I,lt),tt.Cartesian3.normalize(O,O),P[j++]=O.x,P[j++]=O.y,P[j++]=O.z)}m.st&&(v.st=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:R})),m.normal&&(v.normal=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),m.tangent&&(v.tangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:F})),m.bitangent&&(v.bitangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:P}))}return at.defined(t._offsetAttribute)&&(p=b.length,_=new Uint8Array(p/3),A=t._offsetAttribute===Q.GeometryOffsetAttribute.NONE?0:1,Q.arrayFill(_,A),v.applyOffset=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new it.Geometry({attributes:v,indices:k,primitiveType:it.PrimitiveType.TRIANGLES,boundingSphere:$.BoundingSphere.fromEllipsoid(H),offsetAttribute:t._offsetAttribute})}}},d.getUnitEllipsoid=function(){return a=at.defined(a)?a:d.createGeometry(new d({radii:new tt.Cartesian3(1,1,1),vertexFormat:f.VertexFormat.POSITION_ONLY}))},t.EllipsoidGeometry=d});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define(["exports","./GeometryOffsetAttribute-b02d5bb9","./Transforms-5aeb1d5e","./Cartesian2-078e6458","./ComponentDatatype-e44126e4","./when-ae2e0b60","./Check-f996273c","./GeometryAttribute-ccf4e0b6","./GeometryAttributes-5ce4955a","./IndexDatatype-516320ea","./Math-5bbcea10","./VertexFormat-90d15264"],function(t,Q,$,tt,et,at,e,it,rt,nt,ot,f){"use strict";var mt=new tt.Cartesian3,st=new tt.Cartesian3,ut=new tt.Cartesian3,lt=new tt.Cartesian3,ct=new tt.Cartesian3,l=new tt.Cartesian3(1,1,1),ft=Math.cos,dt=Math.sin;function d(t){t=at.defaultValue(t,at.defaultValue.EMPTY_OBJECT);var e=at.defaultValue(t.radii,l),a=at.defaultValue(t.innerRadii,e),i=at.defaultValue(t.minimumClock,0),r=at.defaultValue(t.maximumClock,ot.CesiumMath.TWO_PI),n=at.defaultValue(t.minimumCone,0),o=at.defaultValue(t.maximumCone,ot.CesiumMath.PI),m=Math.round(at.defaultValue(t.stackPartitions,64)),s=Math.round(at.defaultValue(t.slicePartitions,64)),u=at.defaultValue(t.vertexFormat,f.VertexFormat.DEFAULT);this._radii=tt.Cartesian3.clone(e),this._innerRadii=tt.Cartesian3.clone(a),this._minimumClock=i,this._maximumClock=r,this._minimumCone=n,this._maximumCone=o,this._stackPartitions=m,this._slicePartitions=s,this._vertexFormat=f.VertexFormat.clone(u),this._offsetAttribute=t.offsetAttribute,this._workerName="createEllipsoidGeometry"}d.packedLength=2*tt.Cartesian3.packedLength+f.VertexFormat.packedLength+7,d.pack=function(t,e,a){return a=at.defaultValue(a,0),tt.Cartesian3.pack(t._radii,e,a),a+=tt.Cartesian3.packedLength,tt.Cartesian3.pack(t._innerRadii,e,a),a+=tt.Cartesian3.packedLength,f.VertexFormat.pack(t._vertexFormat,e,a),a+=f.VertexFormat.packedLength,e[a++]=t._minimumClock,e[a++]=t._maximumClock,e[a++]=t._minimumCone,e[a++]=t._maximumCone,e[a++]=t._stackPartitions,e[a++]=t._slicePartitions,e[a]=at.defaultValue(t._offsetAttribute,-1),e};var a,C=new tt.Cartesian3,p=new tt.Cartesian3,y=new f.VertexFormat,_={radii:C,innerRadii:p,vertexFormat:y,minimumClock:void 0,maximumClock:void 0,minimumCone:void 0,maximumCone:void 0,stackPartitions:void 0,slicePartitions:void 0,offsetAttribute:void 0};d.unpack=function(t,e,a){e=at.defaultValue(e,0);var i=tt.Cartesian3.unpack(t,e,C),r=(e+=tt.Cartesian3.packedLength,tt.Cartesian3.unpack(t,e,p)),n=(e+=tt.Cartesian3.packedLength,f.VertexFormat.unpack(t,e,y)),o=(e+=f.VertexFormat.packedLength,t[e++]),m=t[e++],s=t[e++],u=t[e++],l=t[e++],c=t[e++],t=t[e];return at.defined(a)?(a._radii=tt.Cartesian3.clone(i,a._radii),a._innerRadii=tt.Cartesian3.clone(r,a._innerRadii),a._vertexFormat=f.VertexFormat.clone(n,a._vertexFormat),a._minimumClock=o,a._maximumClock=m,a._minimumCone=s,a._maximumCone=u,a._stackPartitions=l,a._slicePartitions=c,a._offsetAttribute=-1===t?void 0:t,a):(_.minimumClock=o,_.maximumClock=m,_.minimumCone=s,_.maximumCone=u,_.stackPartitions=l,_.slicePartitions=c,_.offsetAttribute=-1===t?void 0:t,new d(_))},d.createGeometry=function(t){var e=t._radii;if(!(e.x<=0||e.y<=0||e.z<=0)){var a=t._innerRadii;if(!(a.x<=0||a.y<=0||a.z<=0)){var i=t._minimumClock,r=t._maximumClock,n=t._minimumCone,o=t._maximumCone,m=t._vertexFormat,s=t._slicePartitions+1,u=t._stackPartitions+1,l=((s=Math.round(s*Math.abs(r-i)/ot.CesiumMath.TWO_PI))<2&&(s=2),(u=Math.round(u*Math.abs(o-n)/ot.CesiumMath.PI))<2&&(u=2),0),c=[n],f=[i];for(L=0;L<u;L++)c.push(n+L*(o-n)/(u-1));for(c.push(o),V=0;V<s;V++)f.push(i+V*(r-i)/(s-1));f.push(r);var d=c.length,C=f.length,p=0,y=1,_=a.x!==e.x||a.y!==e.y||a.z!==e.z,h=!1,A=!1,E=!1,x=(_&&(y=2,0<n&&(h=!0,p+=s-1),o<Math.PI&&(A=!0,p+=s-1),(r-i)%ot.CesiumMath.TWO_PI?(E=!0,p+=2*(u-1)+1):p+=1),C*d*y),b=new Float64Array(3*x),z=Q.arrayFill(new Array(x),!1),N=Q.arrayFill(new Array(x),!1),v=s*u*y,k=nt.IndexDatatype.createTypedArray(v,6*(v+p+1-(s+u)*y)),w=m.normal?new Float32Array(3*x):void 0,F=m.tangent?new Float32Array(3*x):void 0,P=m.bitangent?new Float32Array(3*x):void 0,R=m.st?new Float32Array(2*x):void 0,g=new Array(d),U=new Array(d);for(L=0;L<d;L++)g[L]=dt(c[L]),U[L]=ft(c[L]);for(var S=new Array(C),B=new Array(C),V=0;V<C;V++)B[V]=ft(f[V]),S[V]=dt(f[V]);for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=e.x*g[L]*B[V],b[l++]=e.y*g[L]*S[V],b[l++]=e.z*U[L];var M,T,D,G,W=x/2;if(_)for(L=0;L<d;L++)for(V=0;V<C;V++)b[l++]=a.x*g[L]*B[V],b[l++]=a.y*g[L]*S[V],b[l++]=a.z*U[L],z[W]=!0,0<L&&L!==d-1&&0!==V&&V!==C-1&&(N[W]=!0),W++;for(l=0,L=1;L<d-2;L++)for(M=L*C,T=(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=T+V+1,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=M+V;if(_)for(var Y=d*C,L=1;L<d-2;L++)for(M=Y+L*C,T=Y+(L+1)*C,V=1;V<C-2;V++)k[l++]=T+V,k[l++]=M+V,k[l++]=M+V+1,k[l++]=T+V,k[l++]=M+V+1,k[l++]=T+V+1;if(_){if(h)for(G=d*C,L=1;L<C-2;L++)k[l++]=L,k[l++]=L+1,k[l++]=G+L+1,k[l++]=L,k[l++]=G+L+1,k[l++]=G+L;if(A)for(D=d*C-C,G=d*C*y-C,L=1;L<C-2;L++)k[l++]=D+L+1,k[l++]=D+L,k[l++]=G+L,k[l++]=D+L+1,k[l++]=G+L,k[l++]=G+L+1}if(E){for(L=1;L<d-2;L++)k[l++]=G=C*d+(D=C*L),k[l++]=D+C,k[l++]=D,k[l++]=G,k[l++]=G+C,k[l++]=D+C;for(L=1;L<d-2;L++)G=C*d+C*(L+1)-1,k[l++]=(D=C*(L+1)-1)+C,k[l++]=G,k[l++]=D,k[l++]=D+C,k[l++]=G+C,k[l++]=G}var v=new rt.GeometryAttributes,J=(m.position&&(v.position=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:b})),0),X=0,Z=0,j=0,q=x/2,H=tt.Ellipsoid.fromCartesian3(e),K=tt.Ellipsoid.fromCartesian3(a);if(m.st||m.normal||m.tangent||m.bitangent){for(L=0;L<x;L++){var O=z[L]?K:H,I=tt.Cartesian3.fromArray(b,3*L,mt),O=O.geodeticSurfaceNormal(I,st);N[L]&&tt.Cartesian3.negate(O,O),m.st&&(I=tt.Cartesian2.negate(O,ct),R[J++]=Math.atan2(I.y,I.x)/ot.CesiumMath.TWO_PI+.5,R[J++]=Math.asin(O.z)/Math.PI+.5),m.normal&&(w[X++]=O.x,w[X++]=O.y,w[X++]=O.z),(m.tangent||m.bitangent)&&(I=0,z[L]&&(I=q),I=!h&&I<=L&&L<I+2*C?tt.Cartesian3.UNIT_X:tt.Cartesian3.UNIT_Z,tt.Cartesian3.cross(I,O,I=ut),tt.Cartesian3.normalize(I,I),m.tangent&&(F[Z++]=I.x,F[Z++]=I.y,F[Z++]=I.z),m.bitangent)&&(O=tt.Cartesian3.cross(O,I,lt),tt.Cartesian3.normalize(O,O),P[j++]=O.x,P[j++]=O.y,P[j++]=O.z)}m.st&&(v.st=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:R})),m.normal&&(v.normal=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:w})),m.tangent&&(v.tangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:F})),m.bitangent&&(v.bitangent=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.FLOAT,componentsPerAttribute:3,values:P}))}return at.defined(t._offsetAttribute)&&(p=b.length,_=new Uint8Array(p/3),A=t._offsetAttribute===Q.GeometryOffsetAttribute.NONE?0:1,Q.arrayFill(_,A),v.applyOffset=new it.GeometryAttribute({componentDatatype:et.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:1,values:_})),new it.Geometry({attributes:v,indices:k,primitiveType:it.PrimitiveType.TRIANGLES,boundingSphere:$.BoundingSphere.fromEllipsoid(H),offsetAttribute:t._offsetAttribute})}}},d.getUnitEllipsoid=function(){return a=at.defined(a)?a:d.createGeometry(new d({radii:new tt.Cartesian3(1,1,1),vertexFormat:f.VertexFormat.POSITION_ONLY}))},t.EllipsoidGeometry=d});
|