mars3d-cesium 1.93.0 → 1.94.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Build/Cesium/Cesium.d.ts +256 -247
- package/Build/Cesium/Cesium.js +10 -10
- package/Build/Cesium/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/Build/Cesium/ThirdParty/google-earth-dbroot-parser.js +1 -1
- package/Build/Cesium/Workers/AttributeCompression-4c4a8822.js +1 -0
- package/Build/Cesium/Workers/AttributeCompression-7a823eb1.js +1 -0
- package/Build/Cesium/Workers/AxisAlignedBoundingBox-6808e68a.js +1 -0
- package/Build/Cesium/Workers/AxisAlignedBoundingBox-dd1e93db.js +1 -0
- package/Build/Cesium/Workers/{AxisAlignedBoundingBox-5ba8fa79.js → AxisAlignedBoundingBox-ef345290.js} +1 -1
- package/Build/Cesium/Workers/{BoundingRectangle-00ff5b29.js → BoundingRectangle-0c088b10.js} +1 -1
- package/Build/Cesium/Workers/BoundingRectangle-13e74a41.js +1 -0
- package/Build/Cesium/Workers/BoundingRectangle-ffeef844.js +1 -0
- package/Build/Cesium/Workers/BoxGeometry-3d4876d9.js +1 -0
- package/Build/Cesium/Workers/{BoxGeometry-769f040a.js → BoxGeometry-7949613c.js} +1 -1
- package/Build/Cesium/Workers/BoxGeometry-c0d41d4f.js +1 -0
- package/Build/Cesium/Workers/{Color-451a8720.js → Color-12d5ab6e.js} +1 -1
- package/Build/Cesium/Workers/Color-75e74066.js +1 -0
- package/Build/Cesium/Workers/Color-af5a56ba.js +1 -0
- package/Build/Cesium/Workers/ComponentDatatype-07fbb0d4.js +1 -0
- package/Build/Cesium/Workers/CoplanarPolygonGeometryLibrary-0d63b099.js +1 -0
- package/Build/Cesium/Workers/{CoplanarPolygonGeometryLibrary-5f6be5a7.js → CoplanarPolygonGeometryLibrary-63ae199f.js} +1 -1
- package/Build/Cesium/Workers/CoplanarPolygonGeometryLibrary-bc611400.js +1 -0
- package/Build/Cesium/Workers/CorridorGeometryLibrary-0169e68d.js +1 -0
- package/Build/Cesium/Workers/{CorridorGeometryLibrary-0cda5b97.js → CorridorGeometryLibrary-02577142.js} +1 -1
- package/Build/Cesium/Workers/CorridorGeometryLibrary-a3fffc69.js +1 -0
- package/Build/Cesium/Workers/CylinderGeometry-068eebd3.js +1 -0
- package/Build/Cesium/Workers/{CylinderGeometry-723ca1ba.js → CylinderGeometry-9ab4b6de.js} +1 -1
- package/Build/Cesium/Workers/CylinderGeometry-9b5e6460.js +1 -0
- package/Build/Cesium/Workers/CylinderGeometryLibrary-3c958a1d.js +1 -0
- package/Build/Cesium/Workers/{EllipseGeometry-43f9e5b7.js → EllipseGeometry-712fea19.js} +1 -1
- package/Build/Cesium/Workers/EllipseGeometry-7f98d885.js +1 -0
- package/Build/Cesium/Workers/EllipseGeometry-eeb1db07.js +1 -0
- package/Build/Cesium/Workers/EllipseGeometryLibrary-0ff34d76.js +1 -0
- package/Build/Cesium/Workers/EllipseGeometryLibrary-70ca3053.js +1 -0
- package/Build/Cesium/Workers/{EllipseGeometryLibrary-2b119a38.js → EllipseGeometryLibrary-eedf4d0b.js} +1 -1
- package/Build/Cesium/Workers/{EllipseOutlineGeometry-5a39395e.js → EllipseOutlineGeometry-7c871752.js} +1 -1
- package/Build/Cesium/Workers/EllipseOutlineGeometry-a5a2b688.js +1 -0
- package/Build/Cesium/Workers/EllipseOutlineGeometry-abf90a31.js +1 -0
- package/Build/Cesium/Workers/EllipsoidGeodesic-1ab9765d.js +1 -0
- package/Build/Cesium/Workers/EllipsoidGeodesic-7d405754.js +1 -0
- package/Build/Cesium/Workers/EllipsoidGeometry-591d0b9b.js +1 -0
- package/Build/Cesium/Workers/{EllipsoidGeometry-418f414a.js → EllipsoidGeometry-699fe483.js} +1 -1
- package/Build/Cesium/Workers/EllipsoidGeometry-954ef938.js +1 -0
- package/Build/Cesium/Workers/EllipsoidOutlineGeometry-08ca8d96.js +1 -0
- package/Build/Cesium/Workers/{EllipsoidOutlineGeometry-1081cab8.js → EllipsoidOutlineGeometry-650c7702.js} +1 -1
- package/Build/Cesium/Workers/EllipsoidOutlineGeometry-79998e39.js +1 -0
- package/Build/Cesium/Workers/EllipsoidRhumbLine-001b8738.js +1 -0
- package/Build/Cesium/Workers/EllipsoidRhumbLine-7b6199fa.js +1 -0
- package/Build/Cesium/Workers/EllipsoidTangentPlane-1cf39c37.js +1 -0
- package/Build/Cesium/Workers/{EllipsoidTangentPlane-01395a15.js → EllipsoidTangentPlane-1cf43e5d.js} +1 -1
- package/Build/Cesium/Workers/EllipsoidTangentPlane-330be9cc.js +1 -0
- package/Build/Cesium/Workers/EncodedCartesian3-8da855cc.js +1 -0
- package/Build/Cesium/Workers/EncodedCartesian3-ee8e4156.js +1 -0
- package/Build/Cesium/Workers/{FrustumGeometry-a1fefbf4.js → FrustumGeometry-1ce1d73a.js} +1 -1
- package/Build/Cesium/Workers/FrustumGeometry-1e1111d8.js +1 -0
- package/Build/Cesium/Workers/FrustumGeometry-9856383f.js +1 -0
- package/Build/Cesium/Workers/GeometryAttribute-71155085.js +1 -0
- package/Build/Cesium/Workers/{GeometryAttribute-b7edcc35.js → GeometryAttribute-7a46074b.js} +1 -1
- package/Build/Cesium/Workers/GeometryAttribute-d50ea0de.js +1 -0
- package/Build/Cesium/Workers/GeometryInstance-5555f2e4.js +1 -0
- package/Build/Cesium/Workers/GeometryInstance-86b030a6.js +1 -0
- package/Build/Cesium/Workers/GeometryPipeline-20b6a6da.js +1 -0
- package/Build/Cesium/Workers/{GeometryPipeline-311a1f9e.js → GeometryPipeline-57ae8a09.js} +1 -1
- package/Build/Cesium/Workers/GeometryPipeline-b15e7fd0.js +1 -0
- package/Build/Cesium/Workers/IndexDatatype-0b020dfb.js +1 -0
- package/Build/Cesium/Workers/IntersectionTests-4547e13f.js +1 -0
- package/Build/Cesium/Workers/IntersectionTests-93a038e3.js +1 -0
- package/Build/Cesium/Workers/{IntersectionTests-94cb8698.js → IntersectionTests-f15438d8.js} +1 -1
- package/Build/Cesium/Workers/Matrix2-1509208a.js +1 -0
- package/Build/Cesium/Workers/Matrix2-1ba2543c.js +1 -0
- package/Build/Cesium/Workers/{OrientedBoundingBox-0f36ec8f.js → OrientedBoundingBox-06b4fccc.js} +1 -1
- package/Build/Cesium/Workers/OrientedBoundingBox-966209b7.js +1 -0
- package/Build/Cesium/Workers/OrientedBoundingBox-fa9056b2.js +1 -0
- package/Build/Cesium/Workers/Plane-e3daa19b.js +1 -0
- package/Build/Cesium/Workers/Plane-faef0199.js +1 -0
- package/Build/Cesium/Workers/PolygonGeometryLibrary-2a7b65e7.js +1 -0
- package/Build/Cesium/Workers/{PolygonGeometryLibrary-a64b67ab.js → PolygonGeometryLibrary-6c1ecc39.js} +1 -1
- package/Build/Cesium/Workers/PolygonGeometryLibrary-cb0bc5e9.js +1 -0
- package/Build/Cesium/Workers/PolygonPipeline-32699305.js +1 -0
- package/Build/Cesium/Workers/{PolygonPipeline-1015dc5c.js → PolygonPipeline-968b19bd.js} +1 -1
- package/Build/Cesium/Workers/PolygonPipeline-a182ab3c.js +1 -0
- package/Build/Cesium/Workers/PolylinePipeline-39d7619d.js +1 -0
- package/Build/Cesium/Workers/PolylinePipeline-4f5c4291.js +1 -0
- package/Build/Cesium/Workers/{PolylinePipeline-256ec228.js → PolylinePipeline-9b252c2a.js} +1 -1
- package/Build/Cesium/Workers/PolylineVolumeGeometryLibrary-62034f07.js +1 -0
- package/Build/Cesium/Workers/PolylineVolumeGeometryLibrary-bd0bbdaf.js +1 -0
- package/Build/Cesium/Workers/{PolylineVolumeGeometryLibrary-c9777b58.js → PolylineVolumeGeometryLibrary-e9dd8941.js} +1 -1
- package/Build/Cesium/Workers/{PrimitivePipeline-9bc85f23.js → PrimitivePipeline-7f75b0aa.js} +1 -1
- package/Build/Cesium/Workers/PrimitivePipeline-8cf7c60b.js +1 -0
- package/Build/Cesium/Workers/PrimitivePipeline-e1f3eb3d.js +1 -0
- package/Build/Cesium/Workers/RectangleGeometryLibrary-12a48ca5.js +1 -0
- package/Build/Cesium/Workers/{RectangleGeometryLibrary-dfe005a4.js → RectangleGeometryLibrary-18de78ad.js} +1 -1
- package/Build/Cesium/Workers/RectangleGeometryLibrary-a44974f6.js +1 -0
- package/Build/Cesium/Workers/TerrainEncoding-341cc7d2.js +1 -0
- package/Build/Cesium/Workers/TerrainEncoding-365ddcc9.js +1 -0
- package/Build/Cesium/Workers/{TerrainEncoding-7f4829f1.js → TerrainEncoding-aa1bedce.js} +1 -1
- package/Build/Cesium/Workers/Transforms-bf323bcf.js +39 -0
- package/Build/Cesium/Workers/Transforms-c84edde7.js +39 -0
- package/Build/Cesium/Workers/Transforms-fdc0a95d.js +39 -0
- package/Build/Cesium/Workers/WallGeometryLibrary-0cfe87c2.js +1 -0
- package/Build/Cesium/Workers/WallGeometryLibrary-55f64681.js +1 -0
- package/Build/Cesium/Workers/{WallGeometryLibrary-0ff0aa92.js → WallGeometryLibrary-ff159f75.js} +1 -1
- package/Build/Cesium/Workers/WebMercatorProjection-2d827489.js +1 -0
- package/Build/Cesium/Workers/WebMercatorProjection-7e95daf8.js +1 -0
- package/Build/Cesium/Workers/arrayRemoveDuplicates-7d5d09a3.js +1 -0
- package/Build/Cesium/Workers/combineGeometry.js +1 -1
- package/Build/Cesium/Workers/createBoxGeometry.js +1 -1
- package/Build/Cesium/Workers/createBoxOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createCircleGeometry.js +1 -1
- package/Build/Cesium/Workers/createCircleOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createCoplanarPolygonGeometry.js +1 -1
- package/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createCorridorGeometry.js +1 -1
- package/Build/Cesium/Workers/createCorridorOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createCylinderGeometry.js +1 -1
- package/Build/Cesium/Workers/createCylinderOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createEllipseGeometry.js +1 -1
- package/Build/Cesium/Workers/createEllipseOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createEllipsoidGeometry.js +1 -1
- package/Build/Cesium/Workers/createEllipsoidOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createFrustumGeometry.js +1 -1
- package/Build/Cesium/Workers/createFrustumOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createGeometry.js +1 -1
- package/Build/Cesium/Workers/createGroundPolylineGeometry.js +1 -1
- package/Build/Cesium/Workers/createPlaneGeometry.js +1 -1
- package/Build/Cesium/Workers/createPlaneOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolygonGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolygonOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolylineGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolylineVolumeGeometry.js +1 -1
- package/Build/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createRectangleGeometry.js +1 -1
- package/Build/Cesium/Workers/createRectangleOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createSimplePolylineGeometry.js +1 -1
- package/Build/Cesium/Workers/createSphereGeometry.js +1 -1
- package/Build/Cesium/Workers/createSphereOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/createVectorTileClampedPolylines.js +1 -1
- package/Build/Cesium/Workers/createVectorTileGeometries.js +1 -1
- package/Build/Cesium/Workers/createVectorTilePoints.js +1 -1
- package/Build/Cesium/Workers/createVectorTilePolygons.js +1 -1
- package/Build/Cesium/Workers/createVectorTilePolylines.js +1 -1
- package/Build/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +1 -1
- package/Build/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
- package/Build/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +1 -1
- package/Build/Cesium/Workers/createWallGeometry.js +1 -1
- package/Build/Cesium/Workers/createWallOutlineGeometry.js +1 -1
- package/Build/Cesium/Workers/decodeDraco.js +1 -1
- package/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +1 -1
- package/LICENSE.md +26 -84
- package/package.json +2 -1
- package/Build/Cesium/Workers/Transforms-06c05e21.js +0 -39
package/Build/Cesium/Cesium.d.ts
CHANGED
|
@@ -4576,6 +4576,7 @@ export class ConstantSpline {
|
|
|
4576
4576
|
* @param [options.stRotation = 0.0] - The rotation of the texture coordinates, in radians. A positive rotation is counter-clockwise.
|
|
4577
4577
|
* @param [options.vertexFormat = VertexFormat.DEFAULT] - The vertex attributes to be computed.
|
|
4578
4578
|
* @param [options.ellipsoid = Ellipsoid.WGS84] - The ellipsoid to be used as a reference.
|
|
4579
|
+
* @param [options.textureCoordinates] - Texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points.
|
|
4579
4580
|
*/
|
|
4580
4581
|
export class CoplanarPolygonGeometry {
|
|
4581
4582
|
constructor(options: {
|
|
@@ -4583,6 +4584,7 @@ export class CoplanarPolygonGeometry {
|
|
|
4583
4584
|
stRotation?: number;
|
|
4584
4585
|
vertexFormat?: VertexFormat;
|
|
4585
4586
|
ellipsoid?: Ellipsoid;
|
|
4587
|
+
textureCoordinates?: PolygonHierarchy;
|
|
4586
4588
|
});
|
|
4587
4589
|
/**
|
|
4588
4590
|
* The number of elements used to pack the object into an array.
|
|
@@ -4607,12 +4609,14 @@ export class CoplanarPolygonGeometry {
|
|
|
4607
4609
|
* @param [options.vertexFormat = VertexFormat.DEFAULT] - The vertex attributes to be computed.
|
|
4608
4610
|
* @param [options.stRotation = 0.0] - The rotation of the texture coordinates, in radians. A positive rotation is counter-clockwise.
|
|
4609
4611
|
* @param [options.ellipsoid = Ellipsoid.WGS84] - The ellipsoid to be used as a reference.
|
|
4612
|
+
* @param [options.textureCoordinates] - Texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points.
|
|
4610
4613
|
*/
|
|
4611
4614
|
static fromPositions(options: {
|
|
4612
4615
|
positions: Cartesian3[];
|
|
4613
4616
|
vertexFormat?: VertexFormat;
|
|
4614
4617
|
stRotation?: number;
|
|
4615
4618
|
ellipsoid?: Ellipsoid;
|
|
4619
|
+
textureCoordinates?: PolygonHierarchy;
|
|
4616
4620
|
}): CoplanarPolygonGeometry;
|
|
4617
4621
|
/**
|
|
4618
4622
|
* Stores the provided instance into the provided array.
|
|
@@ -13010,6 +13014,7 @@ const geometry = Cesium.PolygonGeometry.createGeometry(extrudedPolygon);
|
|
|
13010
13014
|
* @param [options.closeTop = true] - When false, leaves off the top of an extruded polygon open.
|
|
13011
13015
|
* @param [options.closeBottom = true] - When false, leaves off the bottom of an extruded polygon open.
|
|
13012
13016
|
* @param [options.arcType = ArcType.GEODESIC] - The type of line the polygon edges must follow. Valid options are {@link ArcType.GEODESIC} and {@link ArcType.RHUMB}.
|
|
13017
|
+
* @param [options.textureCoordinates] - Texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points. Has no effect for ground primitives.
|
|
13013
13018
|
*/
|
|
13014
13019
|
export class PolygonGeometry {
|
|
13015
13020
|
constructor(options: {
|
|
@@ -13024,6 +13029,7 @@ export class PolygonGeometry {
|
|
|
13024
13029
|
closeTop?: boolean;
|
|
13025
13030
|
closeBottom?: boolean;
|
|
13026
13031
|
arcType?: ArcType;
|
|
13032
|
+
textureCoordinates?: PolygonHierarchy;
|
|
13027
13033
|
});
|
|
13028
13034
|
/**
|
|
13029
13035
|
* The number of elements used to pack the object into an array.
|
|
@@ -13055,6 +13061,7 @@ export class PolygonGeometry {
|
|
|
13055
13061
|
* @param [options.closeTop = true] - When false, leaves off the top of an extruded polygon open.
|
|
13056
13062
|
* @param [options.closeBottom = true] - When false, leaves off the bottom of an extruded polygon open.
|
|
13057
13063
|
* @param [options.arcType = ArcType.GEODESIC] - The type of line the polygon edges must follow. Valid options are {@link ArcType.GEODESIC} and {@link ArcType.RHUMB}.
|
|
13064
|
+
* @param [options.textureCoordinates] - Texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points. Has no effect for ground primitives.
|
|
13058
13065
|
*/
|
|
13059
13066
|
static fromPositions(options: {
|
|
13060
13067
|
positions: Cartesian3[];
|
|
@@ -13068,6 +13075,7 @@ export class PolygonGeometry {
|
|
|
13068
13075
|
closeTop?: boolean;
|
|
13069
13076
|
closeBottom?: boolean;
|
|
13070
13077
|
arcType?: ArcType;
|
|
13078
|
+
textureCoordinates?: PolygonHierarchy;
|
|
13071
13079
|
}): PolygonGeometry;
|
|
13072
13080
|
/**
|
|
13073
13081
|
* Stores the provided instance into the provided array.
|
|
@@ -22454,7 +22462,7 @@ export class ModelVisualizer {
|
|
|
22454
22462
|
constructor(scene: Scene, entityCollection: EntityCollection);
|
|
22455
22463
|
/**
|
|
22456
22464
|
* Updates models created this visualizer to match their
|
|
22457
|
-
|
|
22465
|
+
* Entity counterpart at the given time.
|
|
22458
22466
|
* @param time - The time to update to.
|
|
22459
22467
|
* @returns This function always returns true.
|
|
22460
22468
|
*/
|
|
@@ -22893,7 +22901,7 @@ export namespace PolygonGraphics {
|
|
|
22893
22901
|
* @property [heightReference = HeightReference.NONE] - A Property specifying what the height is relative to.
|
|
22894
22902
|
* @property [extrudedHeight] - A numeric Property specifying the altitude of the polygon's extruded face relative to the ellipsoid surface.
|
|
22895
22903
|
* @property [extrudedHeightReference = HeightReference.NONE] - A Property specifying what the extrudedHeight is relative to.
|
|
22896
|
-
* @property [stRotation = 0.0] - A numeric property specifying the rotation of the polygon texture counter-clockwise from north.
|
|
22904
|
+
* @property [stRotation = 0.0] - A numeric property specifying the rotation of the polygon texture counter-clockwise from north. Only has an effect if textureCoordinates is not defined.
|
|
22897
22905
|
* @property [granularity = Cesium.Math.RADIANS_PER_DEGREE] - A numeric Property specifying the angular distance between each latitude and longitude point.
|
|
22898
22906
|
* @property [fill = true] - A boolean Property specifying whether the polygon is filled with the provided material.
|
|
22899
22907
|
* @property [material = Color.WHITE] - A Property specifying the material used to fill the polygon.
|
|
@@ -22908,6 +22916,7 @@ export namespace PolygonGraphics {
|
|
|
22908
22916
|
* @property [distanceDisplayCondition] - A Property specifying at what distance from the camera that this polygon will be displayed.
|
|
22909
22917
|
* @property [classificationType = ClassificationType.BOTH] - An enum Property specifying whether this polygon will classify terrain, 3D Tiles, or both when on the ground.
|
|
22910
22918
|
* @property [zIndex = 0] - A property specifying the zIndex used for ordering ground geometry. Only has an effect if the polygon is constant and neither height or extrudedHeight are specified.
|
|
22919
|
+
* @property [textureCoordinates] - A Property specifying texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points. Has no effect for ground primitives.
|
|
22911
22920
|
*/
|
|
22912
22921
|
type ConstructorOptions = {
|
|
22913
22922
|
show?: Property | boolean;
|
|
@@ -22931,6 +22940,7 @@ export namespace PolygonGraphics {
|
|
|
22931
22940
|
distanceDisplayCondition?: Property | DistanceDisplayCondition;
|
|
22932
22941
|
classificationType?: Property | ClassificationType;
|
|
22933
22942
|
zIndex?: ConstantProperty | number;
|
|
22943
|
+
textureCoordinates?: Property | PolygonHierarchy;
|
|
22934
22944
|
};
|
|
22935
22945
|
}
|
|
22936
22946
|
|
|
@@ -22973,7 +22983,7 @@ export class PolygonGraphics {
|
|
|
22973
22983
|
*/
|
|
22974
22984
|
extrudedHeightReference: Property | undefined;
|
|
22975
22985
|
/**
|
|
22976
|
-
* Gets or sets the numeric property specifying the rotation of the polygon texture counter-clockwise from north.
|
|
22986
|
+
* Gets or sets the numeric property specifying the rotation of the polygon texture counter-clockwise from north. Only has an effect if textureCoordinates is not defined.
|
|
22977
22987
|
*/
|
|
22978
22988
|
stRotation: Property | undefined;
|
|
22979
22989
|
/**
|
|
@@ -23038,6 +23048,10 @@ export class PolygonGraphics {
|
|
|
23038
23048
|
* Gets or sets the zIndex Prperty specifying the ordering of ground geometry. Only has an effect if the polygon is constant and neither height or extrudedHeight are specified.
|
|
23039
23049
|
*/
|
|
23040
23050
|
zIndex: ConstantProperty | undefined;
|
|
23051
|
+
/**
|
|
23052
|
+
* A Property specifying texture coordinates as a {@link PolygonHierarchy} of {@link Cartesian2} points. Has no effect for ground primitives.
|
|
23053
|
+
*/
|
|
23054
|
+
textureCoordinates: Property | undefined;
|
|
23041
23055
|
/**
|
|
23042
23056
|
* Duplicates this instance.
|
|
23043
23057
|
* @param [result] - The object onto which to store the result.
|
|
@@ -26338,14 +26352,14 @@ export type DirectionUp = {
|
|
|
26338
26352
|
|
|
26339
26353
|
/**
|
|
26340
26354
|
* An orientation given by numeric heading, pitch, and roll
|
|
26341
|
-
* @property heading - The heading in radians
|
|
26342
|
-
* @property pitch - The pitch in radians
|
|
26343
|
-
* @property roll - The roll in meters
|
|
26355
|
+
* @property [heading = 0.0] - The heading in radians
|
|
26356
|
+
* @property [pitch = -Math.PI_OVER_TWO] - The pitch in radians
|
|
26357
|
+
* @property [roll = 0.0] - The roll in meters
|
|
26344
26358
|
*/
|
|
26345
26359
|
export type HeadingPitchRollValues = {
|
|
26346
|
-
heading
|
|
26347
|
-
pitch
|
|
26348
|
-
roll
|
|
26360
|
+
heading?: number;
|
|
26361
|
+
pitch?: number;
|
|
26362
|
+
roll?: number;
|
|
26349
26363
|
};
|
|
26350
26364
|
|
|
26351
26365
|
/**
|
|
@@ -27731,10 +27745,6 @@ const tileset = scene.primitives.add(new Cesium.Cesium3DTileset({
|
|
|
27731
27745
|
* @param [options.pointCloudShading] - Options for constructing a {@link PointCloudShading} object to control point attenuation based on geometric error and lighting.
|
|
27732
27746
|
* @param [options.lightColor] - The light color when shading models. When <code>undefined</code> the scene's light color is used instead.
|
|
27733
27747
|
* @param [options.imageBasedLighting] - The properties for managing image-based lighting for this tileset.
|
|
27734
|
-
* @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - Scales the diffuse and specular image-based lighting from the earth, sky, atmosphere and star skybox. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
27735
|
-
* @param [options.luminanceAtZenith = 0.2] - The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
27736
|
-
* @param [options.sphericalHarmonicCoefficients] - The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
27737
|
-
* @param [options.specularEnvironmentMaps] - A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
27738
27748
|
* @param [options.backFaceCulling = true] - Whether to cull back-facing geometry. When true, back face culling is determined by the glTF material's doubleSided property; when false, back face culling is disabled.
|
|
27739
27749
|
* @param [options.showOutline = true] - Whether to display the outline for models using the {@link https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Vendor/CESIUM_primitive_outline|CESIUM_primitive_outline} extension. When true, outlines are displayed. When false, outlines are not displayed.
|
|
27740
27750
|
* @param [options.vectorClassificationOnly = false] - Indicates that only the tileset's vector tiles should be used for classification.
|
|
@@ -27746,6 +27756,7 @@ const tileset = scene.primitives.add(new Cesium.Cesium3DTileset({
|
|
|
27746
27756
|
* @param [options.debugHeatmapTilePropertyName] - The tile variable to colorize as a heatmap. All rendered tiles will be colorized relative to each other's specified variable value.
|
|
27747
27757
|
* @param [options.debugFreezeFrame = false] - For debugging only. Determines if only the tiles from last frame should be used for rendering.
|
|
27748
27758
|
* @param [options.debugColorizeTiles = false] - For debugging only. When true, assigns a random color to each tile.
|
|
27759
|
+
* @param [options.enableDebugWireframe] - For debugging only. This must be true for debugWireframe to work for ModelExperimental in WebGL1. This cannot be set after the tileset has loaded.
|
|
27749
27760
|
* @param [options.debugWireframe = false] - For debugging only. When true, render's each tile's content as a wireframe.
|
|
27750
27761
|
* @param [options.debugShowBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile.
|
|
27751
27762
|
* @param [options.debugShowContentBoundingVolume = false] - For debugging only. When true, renders the bounding volume for each tile's content.
|
|
@@ -27791,10 +27802,6 @@ export class Cesium3DTileset {
|
|
|
27791
27802
|
pointCloudShading?: any;
|
|
27792
27803
|
lightColor?: Cartesian3;
|
|
27793
27804
|
imageBasedLighting?: ImageBasedLighting;
|
|
27794
|
-
imageBasedLightingFactor?: Cartesian2;
|
|
27795
|
-
luminanceAtZenith?: number;
|
|
27796
|
-
sphericalHarmonicCoefficients?: Cartesian3[];
|
|
27797
|
-
specularEnvironmentMaps?: string;
|
|
27798
27805
|
backFaceCulling?: boolean;
|
|
27799
27806
|
showOutline?: boolean;
|
|
27800
27807
|
vectorClassificationOnly?: boolean;
|
|
@@ -27806,6 +27813,7 @@ export class Cesium3DTileset {
|
|
|
27806
27813
|
debugHeatmapTilePropertyName?: string;
|
|
27807
27814
|
debugFreezeFrame?: boolean;
|
|
27808
27815
|
debugColorizeTiles?: boolean;
|
|
27816
|
+
enableDebugWireframe?: boolean;
|
|
27809
27817
|
debugWireframe?: boolean;
|
|
27810
27818
|
debugShowBoundingVolume?: boolean;
|
|
27811
27819
|
debugShowContentBoundingVolume?: boolean;
|
|
@@ -28103,8 +28111,9 @@ export class Cesium3DTileset {
|
|
|
28103
28111
|
/**
|
|
28104
28112
|
* The light color when shading models. When <code>undefined</code> the scene's light color is used instead.
|
|
28105
28113
|
<p>
|
|
28106
|
-
For example, disabling additional light sources by setting
|
|
28107
|
-
|
|
28114
|
+
For example, disabling additional light sources by setting
|
|
28115
|
+
<code>tileset.imageBasedLighting.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)</code>
|
|
28116
|
+
will make the tileset much darker. Here, increasing the intensity of the light source will make the tileset brighter.
|
|
28108
28117
|
</p>
|
|
28109
28118
|
*/
|
|
28110
28119
|
lightColor: Cartesian3;
|
|
@@ -28434,33 +28443,6 @@ export class Cesium3DTileset {
|
|
|
28434
28443
|
* The properties for managing image-based lighting on this tileset.
|
|
28435
28444
|
*/
|
|
28436
28445
|
imageBasedLighting: ImageBasedLighting;
|
|
28437
|
-
/**
|
|
28438
|
-
* Cesium adds lighting from the earth, sky, atmosphere, and star skybox. This cartesian is used to scale the final
|
|
28439
|
-
diffuse and specular lighting contribution from those sources to the final color. A value of 0.0 will disable those light sources.
|
|
28440
|
-
*/
|
|
28441
|
-
imageBasedLightingFactor: Cartesian2;
|
|
28442
|
-
/**
|
|
28443
|
-
* The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map.
|
|
28444
|
-
This is used when {@link Cesium3DTileset#specularEnvironmentMaps} and {@link Cesium3DTileset#sphericalHarmonicCoefficients} are not defined.
|
|
28445
|
-
*/
|
|
28446
|
-
luminanceAtZenith: number;
|
|
28447
|
-
/**
|
|
28448
|
-
* The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. When <code>undefined</code>, a diffuse irradiance
|
|
28449
|
-
computed from the atmosphere color is used.
|
|
28450
|
-
<p>
|
|
28451
|
-
There are nine <code>Cartesian3</code> coefficients.
|
|
28452
|
-
The order of the coefficients is: L<sub>0,0</sub>, L<sub>1,-1</sub>, L<sub>1,0</sub>, L<sub>1,1</sub>, L<sub>2,-2</sub>, L<sub>2,-1</sub>, L<sub>2,0</sub>, L<sub>2,1</sub>, L<sub>2,2</sub>
|
|
28453
|
-
</p>
|
|
28454
|
-
|
|
28455
|
-
These values can be obtained by preprocessing the environment map using the <code>cmgen</code> tool of
|
|
28456
|
-
{@link https://github.com/google/filament/releases|Google's Filament project}. This will also generate a KTX file that can be
|
|
28457
|
-
supplied to {@link Cesium3DTileset#specularEnvironmentMaps}.
|
|
28458
|
-
*/
|
|
28459
|
-
sphericalHarmonicCoefficients: Cartesian3[];
|
|
28460
|
-
/**
|
|
28461
|
-
* A URL to a KTX file that contains a cube map of the specular lighting and the convoluted specular mipmaps.
|
|
28462
|
-
*/
|
|
28463
|
-
specularEnvironmentMaps: string;
|
|
28464
28446
|
/**
|
|
28465
28447
|
* Indicates that only the tileset's vector tiles should be used for classification.
|
|
28466
28448
|
*/
|
|
@@ -28587,10 +28569,10 @@ Evaluates an expression defined using the
|
|
|
28587
28569
|
color : 'vec4(${Temperature})',
|
|
28588
28570
|
pointSize : '${Temperature} * 2.0'
|
|
28589
28571
|
});
|
|
28590
|
-
* @param [style] -
|
|
28572
|
+
* @param [style] - An object defining a style.
|
|
28591
28573
|
*/
|
|
28592
28574
|
export class Cesium3DTileStyle {
|
|
28593
|
-
constructor(style?:
|
|
28575
|
+
constructor(style?: any);
|
|
28594
28576
|
/**
|
|
28595
28577
|
* Gets the object defining the style using the
|
|
28596
28578
|
{@link https://github.com/CesiumGS/3d-tiles/tree/main/specification/Styling|3D Tiles Styling language}.
|
|
@@ -33125,12 +33107,6 @@ export class ImageryProvider {
|
|
|
33125
33107
|
static loadImage(imageryProvider: ImageryProvider, url: Resource | string): Promise<ImageryTypes | CompressedTextureBuffer> | undefined;
|
|
33126
33108
|
}
|
|
33127
33109
|
|
|
33128
|
-
/**
|
|
33129
|
-
* This enumeration is deprecated. Use {@link SplitPosition} instead.
|
|
33130
|
-
*/
|
|
33131
|
-
export enum ImagerySplitDirection {
|
|
33132
|
-
}
|
|
33133
|
-
|
|
33134
33110
|
export namespace IonImageryProvider {
|
|
33135
33111
|
/**
|
|
33136
33112
|
* Initialization options for the TileMapServiceImageryProvider constructor
|
|
@@ -34839,13 +34815,9 @@ relative to a local origin.
|
|
|
34839
34815
|
* @param [options.silhouetteColor = Color.RED] - The silhouette color. If more than 256 models have silhouettes enabled, there is a small chance that overlapping models will have minor artifacts.
|
|
34840
34816
|
* @param [options.silhouetteSize = 0.0] - The size of the silhouette in pixels.
|
|
34841
34817
|
* @param [options.clippingPlanes] - The {@link ClippingPlaneCollection} used to selectively disable rendering the model.
|
|
34842
|
-
* @param [options.dequantizeInShader = true] - Determines if a {@link https://github.com/google/draco|Draco} encoded model is dequantized on the GPU. This decreases total memory usage for encoded models.
|
|
34818
|
+
* @param [options.dequantizeInShader = true] - Determines if a {@link https://github.com/google/draco|Draco} encoded model is dequantized on the GPU. This decreases total memory usage for encoded models. Deprecated in CesiumJS 1.94, will be removed in CesiumJS 1.95.
|
|
34843
34819
|
* @param [options.lightColor] - The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
34844
34820
|
* @param [options.imageBasedLighting] - The properties for managing image-based lighting on this model.
|
|
34845
|
-
* @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - Scales diffuse and specular image-based lighting from the earth, sky, atmosphere and star skybox. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
34846
|
-
* @param [options.luminanceAtZenith = 0.2] - The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
34847
|
-
* @param [options.sphericalHarmonicCoefficients] - The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
34848
|
-
* @param [options.specularEnvironmentMaps] - A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
34849
34821
|
* @param [options.credit] - A credit for the data source, which is displayed on the canvas.
|
|
34850
34822
|
* @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
|
|
34851
34823
|
* @param [options.backFaceCulling = true] - Whether to cull back-facing geometry. When true, back face culling is determined by the material's doubleSided property; when false, back face culling is disabled. Back faces are not culled if {@link Model#color} is translucent or {@link Model#silhouetteSize} is greater than 0.0.
|
|
@@ -34881,10 +34853,6 @@ export class Model {
|
|
|
34881
34853
|
dequantizeInShader?: boolean;
|
|
34882
34854
|
lightColor?: Cartesian3;
|
|
34883
34855
|
imageBasedLighting?: ImageBasedLighting;
|
|
34884
|
-
imageBasedLightingFactor?: Cartesian2;
|
|
34885
|
-
luminanceAtZenith?: number;
|
|
34886
|
-
sphericalHarmonicCoefficients?: Cartesian3[];
|
|
34887
|
-
specularEnvironmentMaps?: string;
|
|
34888
34856
|
credit?: Credit | string;
|
|
34889
34857
|
showCreditsOnScreen?: boolean;
|
|
34890
34858
|
backFaceCulling?: boolean;
|
|
@@ -35069,8 +35037,9 @@ export class Model {
|
|
|
35069
35037
|
/**
|
|
35070
35038
|
* The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
35071
35039
|
<p>
|
|
35072
|
-
For example, disabling additional light sources by setting
|
|
35073
|
-
model
|
|
35040
|
+
For example, disabling additional light sources by setting
|
|
35041
|
+
<code>model.imageBasedLighting.imageBasedLightingFactor = new Cesium.Cartesian2(0.0, 0.0)</code>
|
|
35042
|
+
will make the model much darker. Here, increasing the intensity of the light source will make the model brighter.
|
|
35074
35043
|
</p>
|
|
35075
35044
|
*/
|
|
35076
35045
|
lightColor: Cartesian3;
|
|
@@ -35078,33 +35047,6 @@ export class Model {
|
|
|
35078
35047
|
* The properties for managing image-based lighting on this model.
|
|
35079
35048
|
*/
|
|
35080
35049
|
imageBasedLighting: ImageBasedLighting;
|
|
35081
|
-
/**
|
|
35082
|
-
* Cesium adds lighting from the earth, sky, atmosphere, and star skybox. This cartesian is used to scale the final
|
|
35083
|
-
diffuse and specular lighting contribution from those sources to the final color. A value of 0.0 will disable those light sources.
|
|
35084
|
-
*/
|
|
35085
|
-
imageBasedLightingFactor: Cartesian2;
|
|
35086
|
-
/**
|
|
35087
|
-
* The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map.
|
|
35088
|
-
This is used when {@link Model#specularEnvironmentMaps} and {@link Model#sphericalHarmonicCoefficients} are not defined.
|
|
35089
|
-
*/
|
|
35090
|
-
luminanceAtZenith: number;
|
|
35091
|
-
/**
|
|
35092
|
-
* The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. When <code>undefined</code>, a diffuse irradiance
|
|
35093
|
-
computed from the atmosphere color is used.
|
|
35094
|
-
<p>
|
|
35095
|
-
There are nine <code>Cartesian3</code> coefficients.
|
|
35096
|
-
The order of the coefficients is: L<sub>0,0</sub>, L<sub>1,-1</sub>, L<sub>1,0</sub>, L<sub>1,1</sub>, L<sub>2,-2</sub>, L<sub>2,-1</sub>, L<sub>2,0</sub>, L<sub>2,1</sub>, L<sub>2,2</sub>
|
|
35097
|
-
</p>
|
|
35098
|
-
|
|
35099
|
-
These values can be obtained by preprocessing the environment map using the <code>cmgen</code> tool of
|
|
35100
|
-
{@link https://github.com/google/filament/releases|Google's Filament project}. This will also generate a KTX file that can be
|
|
35101
|
-
supplied to {@link Model#specularEnvironmentMaps}.
|
|
35102
|
-
*/
|
|
35103
|
-
sphericalHarmonicCoefficients: Cartesian3[];
|
|
35104
|
-
/**
|
|
35105
|
-
* A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps.
|
|
35106
|
-
*/
|
|
35107
|
-
specularEnvironmentMaps: string;
|
|
35108
35050
|
/**
|
|
35109
35051
|
* Gets the credit that will be displayed for the model
|
|
35110
35052
|
*/
|
|
@@ -35211,13 +35153,9 @@ export class Model {
|
|
|
35211
35153
|
* @param [options.silhouetteColor = Color.RED] - The silhouette color. If more than 256 models have silhouettes enabled, there is a small chance that overlapping models will have minor artifacts.
|
|
35212
35154
|
* @param [options.silhouetteSize = 0.0] - The size of the silhouette in pixels.
|
|
35213
35155
|
* @param [options.clippingPlanes] - The {@link ClippingPlaneCollection} used to selectively disable rendering the model.
|
|
35214
|
-
* @param [options.dequantizeInShader = true] - Determines if a {@link https://github.com/google/draco|Draco} encoded model is dequantized on the GPU. This decreases total memory usage for encoded models.
|
|
35156
|
+
* @param [options.dequantizeInShader = true] - Determines if a {@link https://github.com/google/draco|Draco} encoded model is dequantized on the GPU. This decreases total memory usage for encoded models. Deprecated in CesiumJS 1.94, will be removed in CesiumJS 1.95.
|
|
35215
35157
|
* @param [options.lightColor] - The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
35216
35158
|
* @param [options.imageBasedLighting] - The properties for managing image-based lighting for this tileset.
|
|
35217
|
-
* @param [options.imageBasedLightingFactor = new Cartesian2(1.0, 1.0)] - Scales diffuse and specular image-based lighting from the earth, sky, atmosphere and star skybox. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
35218
|
-
* @param [options.luminanceAtZenith = 0.2] - The sun's luminance at the zenith in kilo candela per meter squared to use for this model's procedural environment map. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
35219
|
-
* @param [options.sphericalHarmonicCoefficients] - The third order spherical harmonic coefficients used for the diffuse color of image-based lighting. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
35220
|
-
* @param [options.specularEnvironmentMaps] - A URL to a KTX2 file that contains a cube map of the specular lighting and the convoluted specular mipmaps. Deprecated in Cesium 1.92, will be removed in Cesium 1.94.
|
|
35221
35159
|
* @param [options.credit] - A credit for the model, which is displayed on the canvas.
|
|
35222
35160
|
* @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
|
|
35223
35161
|
* @param [options.backFaceCulling = true] - Whether to cull back-facing geometry. When true, back face culling is determined by the material's doubleSided property; when false, back face culling is disabled. Back faces are not culled if {@link Model#color} is translucent or {@link Model#silhouetteSize} is greater than 0.0.
|
|
@@ -35252,10 +35190,6 @@ export class Model {
|
|
|
35252
35190
|
dequantizeInShader?: boolean;
|
|
35253
35191
|
lightColor?: Cartesian3;
|
|
35254
35192
|
imageBasedLighting?: ImageBasedLighting;
|
|
35255
|
-
imageBasedLightingFactor?: Cartesian2;
|
|
35256
|
-
luminanceAtZenith?: number;
|
|
35257
|
-
sphericalHarmonicCoefficients?: Cartesian3[];
|
|
35258
|
-
specularEnvironmentMaps?: string;
|
|
35259
35193
|
credit?: Credit | string;
|
|
35260
35194
|
showCreditsOnScreen?: boolean;
|
|
35261
35195
|
backFaceCulling?: boolean;
|
|
@@ -35417,6 +35351,30 @@ export class ModelAnimation {
|
|
|
35417
35351
|
* Determines if and how the animation is looped.
|
|
35418
35352
|
*/
|
|
35419
35353
|
readonly loop: ModelAnimationLoop;
|
|
35354
|
+
/**
|
|
35355
|
+
* If this is defined, it will be used to compute the local animation time
|
|
35356
|
+
instead of the scene's time.
|
|
35357
|
+
*/
|
|
35358
|
+
animationTime: ModelAnimation.AnimationTimeCallback;
|
|
35359
|
+
}
|
|
35360
|
+
|
|
35361
|
+
export namespace ModelAnimation {
|
|
35362
|
+
/**
|
|
35363
|
+
* A function used to compute the local animation time for a ModelAnimation.
|
|
35364
|
+
* @example
|
|
35365
|
+
* // Use real time for model animation (assuming animateWhilePaused was set to true)
|
|
35366
|
+
function animationTime(duration) {
|
|
35367
|
+
return Date.now() / 1000 / duration;
|
|
35368
|
+
}
|
|
35369
|
+
* @example
|
|
35370
|
+
* // Offset the phase of the animation, so it starts halfway through its cycle.
|
|
35371
|
+
function animationTime(duration, seconds) {
|
|
35372
|
+
return seconds / duration + 0.5;
|
|
35373
|
+
}
|
|
35374
|
+
* @param duration - The animation's original duration in seconds.
|
|
35375
|
+
* @param seconds - The seconds since the animation started, in scene time.
|
|
35376
|
+
*/
|
|
35377
|
+
type AnimationTimeCallback = (duration: number, seconds: number) => number;
|
|
35420
35378
|
}
|
|
35421
35379
|
|
|
35422
35380
|
/**
|
|
@@ -35442,6 +35400,13 @@ export class ModelAnimationCollection {
|
|
|
35442
35400
|
});
|
|
35443
35401
|
*/
|
|
35444
35402
|
animationRemoved: Event;
|
|
35403
|
+
/**
|
|
35404
|
+
* When true, the animation will play even when the scene time is paused. However,
|
|
35405
|
+
whether animation takes place will depend on the animationTime functions assigned
|
|
35406
|
+
to the model's animations. By default, this is based on scene time, so models using
|
|
35407
|
+
the default will not animate regardless of this setting.
|
|
35408
|
+
*/
|
|
35409
|
+
animateWhilePaused: boolean;
|
|
35445
35410
|
/**
|
|
35446
35411
|
* The number of animations in the collection.
|
|
35447
35412
|
*/
|
|
@@ -35495,6 +35460,7 @@ export class ModelAnimationCollection {
|
|
|
35495
35460
|
* @param [options.multiplier = 1.0] - Values greater than <code>1.0</code> increase the speed that the animation is played relative to the scene clock speed; values less than <code>1.0</code> decrease the speed.
|
|
35496
35461
|
* @param [options.reverse = false] - When <code>true</code>, the animation is played in reverse.
|
|
35497
35462
|
* @param [options.loop = ModelAnimationLoop.NONE] - Determines if and how the animation is looped.
|
|
35463
|
+
* @param [options.animationTime] - If defined, computes the local animation time for this animation.
|
|
35498
35464
|
* @returns The animation that was added to the collection.
|
|
35499
35465
|
*/
|
|
35500
35466
|
add(options: {
|
|
@@ -35507,6 +35473,7 @@ export class ModelAnimationCollection {
|
|
|
35507
35473
|
multiplier?: number;
|
|
35508
35474
|
reverse?: boolean;
|
|
35509
35475
|
loop?: ModelAnimationLoop;
|
|
35476
|
+
animationTime?: ModelAnimation.AnimationTimeCallback;
|
|
35510
35477
|
}): ModelAnimation;
|
|
35511
35478
|
/**
|
|
35512
35479
|
* Creates and adds an animation with the specified initial properties to the collection
|
|
@@ -35527,6 +35494,7 @@ export class ModelAnimationCollection {
|
|
|
35527
35494
|
* @param [options.multiplier = 1.0] - Values greater than <code>1.0</code> increase the speed that the animations play relative to the scene clock speed; values less than <code>1.0</code> decrease the speed.
|
|
35528
35495
|
* @param [options.reverse = false] - When <code>true</code>, the animations are played in reverse.
|
|
35529
35496
|
* @param [options.loop = ModelAnimationLoop.NONE] - Determines if and how the animations are looped.
|
|
35497
|
+
* @param [options.animationTime] - If defined, computes the local animation time for all of the animations.
|
|
35530
35498
|
* @returns An array of {@link ModelAnimation} objects, one for each animation added to the collection. If there are no glTF animations, the array is empty.
|
|
35531
35499
|
*/
|
|
35532
35500
|
addAll(options?: {
|
|
@@ -35537,6 +35505,7 @@ export class ModelAnimationCollection {
|
|
|
35537
35505
|
multiplier?: number;
|
|
35538
35506
|
reverse?: boolean;
|
|
35539
35507
|
loop?: ModelAnimationLoop;
|
|
35508
|
+
animationTime?: ModelAnimation.AnimationTimeCallback;
|
|
35540
35509
|
}): ModelAnimation[];
|
|
35541
35510
|
/**
|
|
35542
35511
|
* Removes an animation from the collection.
|
|
@@ -35793,7 +35762,8 @@ the Model from your source data type.
|
|
|
35793
35762
|
* @param [options.maximumScale] - The maximum scale size of a model. An upper limit for minimumPixelSize.
|
|
35794
35763
|
* @param [options.clampAnimations = true] - Determines if the model's animations should hold a pose over frames where no keyframes are specified.
|
|
35795
35764
|
* @param [options.debugShowBoundingVolume = false] - For debugging only. Draws the bounding sphere for each draw command in the model.
|
|
35796
|
-
* @param [options.
|
|
35765
|
+
* @param [options.enableDebugWireframe = false] - For debugging only. This must be set to true for debugWireframe to work in WebGL1. This cannot be set after the model has loaded.
|
|
35766
|
+
* @param [options.debugWireframe = false] - For debugging only. Draws the model in wireframe. Will only work for WebGL1 if enableDebugWireframe is set to true.
|
|
35797
35767
|
* @param [options.cull = true] - Whether or not to cull the model using frustum/horizon culling. If the model is part of a 3D Tiles tileset, this property will always be false, since the 3D Tiles culling system is used.
|
|
35798
35768
|
* @param [options.opaquePass = Pass.OPAQUE] - The pass to use in the {@link DrawCommand} for the opaque portions of the model.
|
|
35799
35769
|
* @param [options.allowPicking = true] - When <code>true</code>, each primitive is pickable with {@link Scene#pick}.
|
|
@@ -35813,6 +35783,7 @@ the Model from your source data type.
|
|
|
35813
35783
|
* @param [options.shadows = ShadowMode.ENABLED] - Determines whether the model casts or receives shadows from light sources.
|
|
35814
35784
|
* @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
|
|
35815
35785
|
* @param [options.splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this model.
|
|
35786
|
+
* @param [options.projectTo2D = false] - Whether to accurately project the model's positions in 2D. If this is false, the model will not show up in 2D / CV mode. This disables minimumPixelSize and prevents future modification to its model matrix. This also cannot be set after the model has loaded.
|
|
35816
35787
|
*/
|
|
35817
35788
|
export class ModelExperimental {
|
|
35818
35789
|
constructor(options: {
|
|
@@ -35823,6 +35794,7 @@ export class ModelExperimental {
|
|
|
35823
35794
|
maximumScale?: number;
|
|
35824
35795
|
clampAnimations?: boolean;
|
|
35825
35796
|
debugShowBoundingVolume?: boolean;
|
|
35797
|
+
enableDebugWireframe?: boolean;
|
|
35826
35798
|
debugWireframe?: boolean;
|
|
35827
35799
|
cull?: boolean;
|
|
35828
35800
|
opaquePass?: boolean;
|
|
@@ -35843,6 +35815,7 @@ export class ModelExperimental {
|
|
|
35843
35815
|
shadows?: ShadowMode;
|
|
35844
35816
|
showCreditsOnScreen?: boolean;
|
|
35845
35817
|
splitDirection?: SplitDirection;
|
|
35818
|
+
projectTo2D?: boolean;
|
|
35846
35819
|
});
|
|
35847
35820
|
/**
|
|
35848
35821
|
* When <code>true</code>, this model is ready to render, i.e., the external binary, image,
|
|
@@ -35890,9 +35863,9 @@ export class ModelExperimental {
|
|
|
35890
35863
|
*/
|
|
35891
35864
|
colorBlendAmount: number;
|
|
35892
35865
|
/**
|
|
35893
|
-
* Gets the model's bounding sphere in
|
|
35894
|
-
|
|
35895
|
-
|
|
35866
|
+
* Gets the model's bounding sphere in world space. This does not take into account
|
|
35867
|
+
glTF animations, skins, or morph targets. It also does not account for
|
|
35868
|
+
{@link ModelExperimental#minimumPixelSize}.
|
|
35896
35869
|
*/
|
|
35897
35870
|
readonly boundingSphere: BoundingSphere;
|
|
35898
35871
|
/**
|
|
@@ -35948,8 +35921,9 @@ export class ModelExperimental {
|
|
|
35948
35921
|
/**
|
|
35949
35922
|
* The light color when shading the model. When <code>undefined</code> the scene's light color is used instead.
|
|
35950
35923
|
<p>
|
|
35951
|
-
Disabling additional light sources by setting
|
|
35952
|
-
model
|
|
35924
|
+
Disabling additional light sources by setting
|
|
35925
|
+
<code>model.imageBasedLighting.imageBasedLightingFactor = new Cartesian2(0.0, 0.0)</code>
|
|
35926
|
+
will make the model much darker. Here, increasing the intensity of the light source will make the model brighter.
|
|
35953
35927
|
</p>
|
|
35954
35928
|
*/
|
|
35955
35929
|
lightColor: Cartesian3;
|
|
@@ -36030,7 +36004,7 @@ export class ModelExperimental {
|
|
|
36030
36004
|
<p>
|
|
36031
36005
|
The model can be a traditional glTF asset with a .gltf extension or a Binary glTF using the .glb extension.
|
|
36032
36006
|
* @param options - Object with the following properties:
|
|
36033
|
-
* @param options.
|
|
36007
|
+
* @param options.url - The url to the .gltf or .glb file.
|
|
36034
36008
|
* @param [options.basePath = ''] - The base path that paths in the glTF JSON are relative to.
|
|
36035
36009
|
* @param [options.modelMatrix = Matrix4.IDENTITY] - The 4x4 transformation matrix that transforms the model from model to world coordinates.
|
|
36036
36010
|
* @param [options.scale = 1.0] - A uniform scale applied to this model.
|
|
@@ -36039,7 +36013,8 @@ export class ModelExperimental {
|
|
|
36039
36013
|
* @param [options.incrementallyLoadTextures = true] - Determine if textures may continue to stream in after the model is loaded.
|
|
36040
36014
|
* @param [options.releaseGltfJson = false] - When true, the glTF JSON is released once the glTF is loaded. This is is especially useful for cases like 3D Tiles, where each .gltf model is unique and caching the glTF JSON is not effective.
|
|
36041
36015
|
* @param [options.debugShowBoundingVolume = false] - For debugging only. Draws the bounding sphere for each draw command in the model.
|
|
36042
|
-
* @param [options.
|
|
36016
|
+
* @param [options.enableDebugWireframe = false] - For debugging only. This must be set to true for debugWireframe to work in WebGL1. This cannot be set after the model has loaded.
|
|
36017
|
+
* @param [options.debugWireframe = false] - For debugging only. Draws the model in wireframe. Will only work for WebGL1 if enableDebugWireframe is set to true.
|
|
36043
36018
|
* @param [options.cull = true] - Whether or not to cull the model using frustum/horizon culling. If the model is part of a 3D Tiles tileset, this property will always be false, since the 3D Tiles culling system is used.
|
|
36044
36019
|
* @param [options.opaquePass = Pass.OPAQUE] - The pass to use in the {@link DrawCommand} for the opaque portions of the model.
|
|
36045
36020
|
* @param [options.upAxis = Axis.Y] - The up-axis of the glTF model.
|
|
@@ -36061,10 +36036,11 @@ export class ModelExperimental {
|
|
|
36061
36036
|
* @param [options.shadows = ShadowMode.ENABLED] - Determines whether the model casts or receives shadows from light sources.
|
|
36062
36037
|
* @param [options.showCreditsOnScreen = false] - Whether to display the credits of this model on screen.
|
|
36063
36038
|
* @param [options.splitDirection = SplitDirection.NONE] - The {@link SplitDirection} split to apply to this model.
|
|
36039
|
+
* @param [options.projectTo2D = false] - Whether to accurately project the model's positions in 2D. If this is false, the model will not show up in 2D / CV mode. This disables minimumPixelSize and prevents future modification to its model matrix. This also cannot be set after the model has loaded.
|
|
36064
36040
|
* @returns The newly created model.
|
|
36065
36041
|
*/
|
|
36066
36042
|
static fromGltf(options: {
|
|
36067
|
-
|
|
36043
|
+
url: string | Resource;
|
|
36068
36044
|
basePath?: string | Resource;
|
|
36069
36045
|
modelMatrix?: Matrix4;
|
|
36070
36046
|
scale?: number;
|
|
@@ -36073,6 +36049,7 @@ export class ModelExperimental {
|
|
|
36073
36049
|
incrementallyLoadTextures?: boolean;
|
|
36074
36050
|
releaseGltfJson?: boolean;
|
|
36075
36051
|
debugShowBoundingVolume?: boolean;
|
|
36052
|
+
enableDebugWireframe?: boolean;
|
|
36076
36053
|
debugWireframe?: boolean;
|
|
36077
36054
|
cull?: boolean;
|
|
36078
36055
|
opaquePass?: boolean;
|
|
@@ -36095,6 +36072,7 @@ export class ModelExperimental {
|
|
|
36095
36072
|
shadows?: ShadowMode;
|
|
36096
36073
|
showCreditsOnScreen?: boolean;
|
|
36097
36074
|
splitDirection?: SplitDirection;
|
|
36075
|
+
projectTo2D?: boolean;
|
|
36098
36076
|
}): ModelExperimental;
|
|
36099
36077
|
}
|
|
36100
36078
|
|
|
@@ -36205,6 +36183,30 @@ export class ModelExperimentalAnimation {
|
|
|
36205
36183
|
* Determines if and how the animation is looped.
|
|
36206
36184
|
*/
|
|
36207
36185
|
readonly loop: ModelAnimationLoop;
|
|
36186
|
+
/**
|
|
36187
|
+
* If this is defined, it will be used to compute the local animation time
|
|
36188
|
+
instead of the scene's time.
|
|
36189
|
+
*/
|
|
36190
|
+
animationTime: ModelExperimentalAnimation.AnimationTimeCallback;
|
|
36191
|
+
}
|
|
36192
|
+
|
|
36193
|
+
export namespace ModelExperimentalAnimation {
|
|
36194
|
+
/**
|
|
36195
|
+
* A function used to compute the local animation time for a ModelExperimentalAnimation.
|
|
36196
|
+
* @example
|
|
36197
|
+
* // Use real time for model animation (assuming animateWhilePaused was set to true)
|
|
36198
|
+
function animationTime(duration) {
|
|
36199
|
+
return Date.now() / 1000 / duration;
|
|
36200
|
+
}
|
|
36201
|
+
* @example
|
|
36202
|
+
* // Offset the phase of the animation, so it starts halfway through its cycle.
|
|
36203
|
+
function animationTime(duration, seconds) {
|
|
36204
|
+
return seconds / duration + 0.5;
|
|
36205
|
+
}
|
|
36206
|
+
* @param duration - The animation's original duration in seconds.
|
|
36207
|
+
* @param seconds - The seconds since the animation started, in scene time.
|
|
36208
|
+
*/
|
|
36209
|
+
type AnimationTimeCallback = (duration: number, seconds: number) => number;
|
|
36208
36210
|
}
|
|
36209
36211
|
|
|
36210
36212
|
/**
|
|
@@ -36230,6 +36232,13 @@ export class ModelExperimentalAnimationCollection {
|
|
|
36230
36232
|
});
|
|
36231
36233
|
*/
|
|
36232
36234
|
animationRemoved: Event;
|
|
36235
|
+
/**
|
|
36236
|
+
* When true, the animation will play even when the scene time is paused. However,
|
|
36237
|
+
whether animation takes place will depend on the animationTime functions assigned
|
|
36238
|
+
to the model's animations. By default, this is based on scene time, so models using
|
|
36239
|
+
the default will not animate regardless of this setting.
|
|
36240
|
+
*/
|
|
36241
|
+
animateWhilePaused: boolean;
|
|
36233
36242
|
/**
|
|
36234
36243
|
* The number of animations in the collection.
|
|
36235
36244
|
*/
|
|
@@ -36287,6 +36296,7 @@ export class ModelExperimentalAnimationCollection {
|
|
|
36287
36296
|
* @param [options.multiplier = 1.0] - Values greater than <code>1.0</code> increase the speed that the animation is played relative to the scene clock speed; values less than <code>1.0</code> decrease the speed.
|
|
36288
36297
|
* @param [options.reverse = false] - When <code>true</code>, the animation is played in reverse.
|
|
36289
36298
|
* @param [options.loop = ModelAnimationLoop.NONE] - Determines if and how the animation is looped.
|
|
36299
|
+
* @param [options.animationTime] - If defined, computes the local animation time for this animation.
|
|
36290
36300
|
* @returns The animation that was added to the collection.
|
|
36291
36301
|
*/
|
|
36292
36302
|
add(options: {
|
|
@@ -36299,7 +36309,8 @@ export class ModelExperimentalAnimationCollection {
|
|
|
36299
36309
|
multiplier?: number;
|
|
36300
36310
|
reverse?: boolean;
|
|
36301
36311
|
loop?: ModelAnimationLoop;
|
|
36302
|
-
|
|
36312
|
+
animationTime?: ModelExperimentalAnimation.AnimationTimeCallback;
|
|
36313
|
+
}): ModelExperimentalAnimation;
|
|
36303
36314
|
/**
|
|
36304
36315
|
* Creates and adds animations with the specified initial properties to the collection
|
|
36305
36316
|
for all animations in the model.
|
|
@@ -36319,6 +36330,7 @@ export class ModelExperimentalAnimationCollection {
|
|
|
36319
36330
|
* @param [options.multiplier = 1.0] - Values greater than <code>1.0</code> increase the speed that the animations play relative to the scene clock speed; values less than <code>1.0</code> decrease the speed.
|
|
36320
36331
|
* @param [options.reverse = false] - When <code>true</code>, the animations are played in reverse.
|
|
36321
36332
|
* @param [options.loop = ModelAnimationLoop.NONE] - Determines if and how the animations are looped.
|
|
36333
|
+
* @param [options.animationTime] - If defined, computes the local animation time for all of the animations.
|
|
36322
36334
|
* @returns An array of {@link ModelExperimentalAnimation} objects, one for each animation added to the collection. If there are no glTF animations, the array is empty.
|
|
36323
36335
|
*/
|
|
36324
36336
|
addAll(options?: {
|
|
@@ -36329,6 +36341,7 @@ export class ModelExperimentalAnimationCollection {
|
|
|
36329
36341
|
multiplier?: number;
|
|
36330
36342
|
reverse?: boolean;
|
|
36331
36343
|
loop?: ModelAnimationLoop;
|
|
36344
|
+
animationTime?: ModelExperimentalAnimation.AnimationTimeCallback;
|
|
36332
36345
|
}): ModelExperimentalAnimation[];
|
|
36333
36346
|
/**
|
|
36334
36347
|
* Removes an animation from the collection.
|
|
@@ -38695,88 +38708,88 @@ export enum PostProcessStageSampleMode {
|
|
|
38695
38708
|
|
|
38696
38709
|
/**
|
|
38697
38710
|
* A primitive represents geometry in the {@link Scene}. The geometry can be from a single {@link GeometryInstance}
|
|
38698
|
-
as shown in example 1 below, or from an array of instances, even if the geometry is from different
|
|
38699
|
-
geometry types, e.g., an {@link RectangleGeometry} and an {@link EllipsoidGeometry} as shown in Code Example 2.
|
|
38700
|
-
<p>
|
|
38701
|
-
A primitive combines geometry instances with an {@link Appearance} that describes the full shading, including
|
|
38702
|
-
{@link Material} and {@link RenderState}. Roughly, the geometry instance defines the structure and placement,
|
|
38703
|
-
and the appearance defines the visual characteristics. Decoupling geometry and appearance allows us to mix
|
|
38704
|
-
and match most of them and add a new geometry or appearance independently of each other.
|
|
38705
|
-
</p>
|
|
38706
|
-
<p>
|
|
38707
|
-
Combining multiple instances into one primitive is called batching, and significantly improves performance for static data.
|
|
38708
|
-
Instances can be individually picked; {@link Scene#pick} returns their {@link GeometryInstance#id}. Using
|
|
38709
|
-
per-instance appearances like {@link PerInstanceColorAppearance}, each instance can also have a unique color.
|
|
38710
|
-
</p>
|
|
38711
|
-
<p>
|
|
38712
|
-
{@link Geometry} can either be created and batched on a web worker or the main thread. The first two examples
|
|
38713
|
-
show geometry that will be created on a web worker by using the descriptions of the geometry. The third example
|
|
38714
|
-
shows how to create the geometry on the main thread by explicitly calling the <code>createGeometry</code> method.
|
|
38715
|
-
</p>
|
|
38711
|
+
* as shown in example 1 below, or from an array of instances, even if the geometry is from different
|
|
38712
|
+
* geometry types, e.g., an {@link RectangleGeometry} and an {@link EllipsoidGeometry} as shown in Code Example 2.
|
|
38713
|
+
* <p>
|
|
38714
|
+
* A primitive combines geometry instances with an {@link Appearance} that describes the full shading, including
|
|
38715
|
+
* {@link Material} and {@link RenderState}. Roughly, the geometry instance defines the structure and placement,
|
|
38716
|
+
* and the appearance defines the visual characteristics. Decoupling geometry and appearance allows us to mix
|
|
38717
|
+
* and match most of them and add a new geometry or appearance independently of each other.
|
|
38718
|
+
* </p>
|
|
38719
|
+
* <p>
|
|
38720
|
+
* Combining multiple instances into one primitive is called batching, and significantly improves performance for static data.
|
|
38721
|
+
* Instances can be individually picked; {@link Scene#pick} returns their {@link GeometryInstance#id}. Using
|
|
38722
|
+
* per-instance appearances like {@link PerInstanceColorAppearance}, each instance can also have a unique color.
|
|
38723
|
+
* </p>
|
|
38724
|
+
* <p>
|
|
38725
|
+
* {@link Geometry} can either be created and batched on a web worker or the main thread. The first two examples
|
|
38726
|
+
* show geometry that will be created on a web worker by using the descriptions of the geometry. The third example
|
|
38727
|
+
* shows how to create the geometry on the main thread by explicitly calling the <code>createGeometry</code> method.
|
|
38728
|
+
* </p>
|
|
38716
38729
|
* @example
|
|
38717
38730
|
* // 1. Draw a translucent ellipse on the surface with a checkerboard pattern
|
|
38718
|
-
const instance = new Cesium.GeometryInstance({
|
|
38719
|
-
|
|
38720
|
-
|
|
38721
|
-
|
|
38722
|
-
|
|
38723
|
-
|
|
38724
|
-
|
|
38725
|
-
|
|
38726
|
-
|
|
38727
|
-
});
|
|
38728
|
-
scene.primitives.add(new Cesium.Primitive({
|
|
38729
|
-
|
|
38730
|
-
|
|
38731
|
-
|
|
38732
|
-
|
|
38733
|
-
}));
|
|
38731
|
+
* const instance = new Cesium.GeometryInstance({
|
|
38732
|
+
* geometry : new Cesium.EllipseGeometry({
|
|
38733
|
+
* center : Cesium.Cartesian3.fromDegrees(-100.0, 20.0),
|
|
38734
|
+
* semiMinorAxis : 500000.0,
|
|
38735
|
+
* semiMajorAxis : 1000000.0,
|
|
38736
|
+
* rotation : Cesium.Math.PI_OVER_FOUR,
|
|
38737
|
+
* vertexFormat : Cesium.VertexFormat.POSITION_AND_ST
|
|
38738
|
+
* }),
|
|
38739
|
+
* id : 'object returned when this instance is picked and to get/set per-instance attributes'
|
|
38740
|
+
* });
|
|
38741
|
+
* scene.primitives.add(new Cesium.Primitive({
|
|
38742
|
+
* geometryInstances : instance,
|
|
38743
|
+
* appearance : new Cesium.EllipsoidSurfaceAppearance({
|
|
38744
|
+
* material : Cesium.Material.fromType('Checkerboard')
|
|
38745
|
+
* })
|
|
38746
|
+
* }));
|
|
38734
38747
|
* @example
|
|
38735
38748
|
* // 2. Draw different instances each with a unique color
|
|
38736
|
-
const rectangleInstance = new Cesium.GeometryInstance({
|
|
38737
|
-
|
|
38738
|
-
|
|
38739
|
-
|
|
38740
|
-
|
|
38741
|
-
|
|
38742
|
-
|
|
38743
|
-
|
|
38744
|
-
|
|
38745
|
-
});
|
|
38746
|
-
const ellipsoidInstance = new Cesium.GeometryInstance({
|
|
38747
|
-
|
|
38748
|
-
|
|
38749
|
-
|
|
38750
|
-
|
|
38751
|
-
|
|
38752
|
-
|
|
38753
|
-
|
|
38754
|
-
|
|
38755
|
-
|
|
38756
|
-
|
|
38757
|
-
});
|
|
38758
|
-
scene.primitives.add(new Cesium.Primitive({
|
|
38759
|
-
|
|
38760
|
-
|
|
38761
|
-
}));
|
|
38749
|
+
* const rectangleInstance = new Cesium.GeometryInstance({
|
|
38750
|
+
* geometry : new Cesium.RectangleGeometry({
|
|
38751
|
+
* rectangle : Cesium.Rectangle.fromDegrees(-140.0, 30.0, -100.0, 40.0),
|
|
38752
|
+
* vertexFormat : Cesium.PerInstanceColorAppearance.VERTEX_FORMAT
|
|
38753
|
+
* }),
|
|
38754
|
+
* id : 'rectangle',
|
|
38755
|
+
* attributes : {
|
|
38756
|
+
* color : new Cesium.ColorGeometryInstanceAttribute(0.0, 1.0, 1.0, 0.5)
|
|
38757
|
+
* }
|
|
38758
|
+
* });
|
|
38759
|
+
* const ellipsoidInstance = new Cesium.GeometryInstance({
|
|
38760
|
+
* geometry : new Cesium.EllipsoidGeometry({
|
|
38761
|
+
* radii : new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
|
|
38762
|
+
* vertexFormat : Cesium.VertexFormat.POSITION_AND_NORMAL
|
|
38763
|
+
* }),
|
|
38764
|
+
* modelMatrix : Cesium.Matrix4.multiplyByTranslation(Cesium.Transforms.eastNorthUpToFixedFrame(
|
|
38765
|
+
* Cesium.Cartesian3.fromDegrees(-95.59777, 40.03883)), new Cesium.Cartesian3(0.0, 0.0, 500000.0), new Cesium.Matrix4()),
|
|
38766
|
+
* id : 'ellipsoid',
|
|
38767
|
+
* attributes : {
|
|
38768
|
+
* color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.AQUA)
|
|
38769
|
+
* }
|
|
38770
|
+
* });
|
|
38771
|
+
* scene.primitives.add(new Cesium.Primitive({
|
|
38772
|
+
* geometryInstances : [rectangleInstance, ellipsoidInstance],
|
|
38773
|
+
* appearance : new Cesium.PerInstanceColorAppearance()
|
|
38774
|
+
* }));
|
|
38762
38775
|
* @example
|
|
38763
38776
|
* // 3. Create the geometry on the main thread.
|
|
38764
|
-
scene.primitives.add(new Cesium.Primitive({
|
|
38765
|
-
|
|
38766
|
-
|
|
38767
|
-
|
|
38768
|
-
|
|
38769
|
-
|
|
38770
|
-
|
|
38771
|
-
|
|
38772
|
-
|
|
38773
|
-
|
|
38774
|
-
|
|
38775
|
-
|
|
38776
|
-
|
|
38777
|
-
|
|
38778
|
-
|
|
38779
|
-
}));
|
|
38777
|
+
* scene.primitives.add(new Cesium.Primitive({
|
|
38778
|
+
* geometryInstances : new Cesium.GeometryInstance({
|
|
38779
|
+
* geometry : Cesium.EllipsoidGeometry.createGeometry(new Cesium.EllipsoidGeometry({
|
|
38780
|
+
* radii : new Cesium.Cartesian3(500000.0, 500000.0, 1000000.0),
|
|
38781
|
+
* vertexFormat : Cesium.VertexFormat.POSITION_AND_NORMAL
|
|
38782
|
+
* })),
|
|
38783
|
+
* modelMatrix : Cesium.Matrix4.multiplyByTranslation(Cesium.Transforms.eastNorthUpToFixedFrame(
|
|
38784
|
+
* Cesium.Cartesian3.fromDegrees(-95.59777, 40.03883)), new Cesium.Cartesian3(0.0, 0.0, 500000.0), new Cesium.Matrix4()),
|
|
38785
|
+
* id : 'ellipsoid',
|
|
38786
|
+
* attributes : {
|
|
38787
|
+
* color : Cesium.ColorGeometryInstanceAttribute.fromColor(Cesium.Color.AQUA)
|
|
38788
|
+
* }
|
|
38789
|
+
* }),
|
|
38790
|
+
* appearance : new Cesium.PerInstanceColorAppearance(),
|
|
38791
|
+
* asynchronous : false
|
|
38792
|
+
* }));
|
|
38780
38793
|
* @param [options] - Object with the following properties:
|
|
38781
38794
|
* @param [options.geometryInstances] - The geometry instances - or a single geometry instance - to render.
|
|
38782
38795
|
* @param [options.appearance] - The appearance used to render the primitive.
|
|
@@ -38812,67 +38825,67 @@ export class Primitive {
|
|
|
38812
38825
|
});
|
|
38813
38826
|
/**
|
|
38814
38827
|
* The geometry instances rendered with this primitive. This may
|
|
38815
|
-
|
|
38816
|
-
|
|
38817
|
-
|
|
38818
|
-
|
|
38819
|
-
|
|
38828
|
+
* be <code>undefined</code> if <code>options.releaseGeometryInstances</code>
|
|
38829
|
+
* is <code>true</code> when the primitive is constructed.
|
|
38830
|
+
* <p>
|
|
38831
|
+
* Changing this property after the primitive is rendered has no effect.
|
|
38832
|
+
* </p>
|
|
38820
38833
|
*/
|
|
38821
38834
|
readonly geometryInstances: GeometryInstance[] | GeometryInstance;
|
|
38822
38835
|
/**
|
|
38823
38836
|
* The {@link Appearance} used to shade this primitive. Each geometry
|
|
38824
|
-
|
|
38825
|
-
|
|
38826
|
-
|
|
38837
|
+
* instance is shaded with the same appearance. Some appearances, like
|
|
38838
|
+
* {@link PerInstanceColorAppearance} allow giving each instance unique
|
|
38839
|
+
* properties.
|
|
38827
38840
|
*/
|
|
38828
38841
|
appearance: Appearance;
|
|
38829
38842
|
/**
|
|
38830
38843
|
* The {@link Appearance} used to shade this primitive when it fails the depth test. Each geometry
|
|
38831
|
-
|
|
38832
|
-
|
|
38833
|
-
|
|
38834
|
-
|
|
38835
|
-
|
|
38836
|
-
|
|
38837
|
-
|
|
38838
|
-
|
|
38839
|
-
|
|
38840
|
-
|
|
38841
|
-
|
|
38842
|
-
|
|
38843
|
-
|
|
38844
|
+
* instance is shaded with the same appearance. Some appearances, like
|
|
38845
|
+
* {@link PerInstanceColorAppearance} allow giving each instance unique
|
|
38846
|
+
* properties.
|
|
38847
|
+
*
|
|
38848
|
+
* <p>
|
|
38849
|
+
* When using an appearance that requires a color attribute, like PerInstanceColorAppearance,
|
|
38850
|
+
* add a depthFailColor per-instance attribute instead.
|
|
38851
|
+
* </p>
|
|
38852
|
+
*
|
|
38853
|
+
* <p>
|
|
38854
|
+
* Requires the EXT_frag_depth WebGL extension to render properly. If the extension is not supported,
|
|
38855
|
+
* there may be artifacts.
|
|
38856
|
+
* </p>
|
|
38844
38857
|
*/
|
|
38845
38858
|
depthFailAppearance: Appearance;
|
|
38846
38859
|
/**
|
|
38847
38860
|
* The 4x4 transformation matrix that transforms the primitive (all geometry instances) from model to world coordinates.
|
|
38848
|
-
|
|
38849
|
-
|
|
38850
|
-
|
|
38851
|
-
|
|
38852
|
-
|
|
38853
|
-
|
|
38854
|
-
|
|
38861
|
+
* When this is the identity matrix, the primitive is drawn in world coordinates, i.e., Earth's WGS84 coordinates.
|
|
38862
|
+
* Local reference frames can be used by providing a different transformation matrix, like that returned
|
|
38863
|
+
* by {@link Transforms.eastNorthUpToFixedFrame}.
|
|
38864
|
+
*
|
|
38865
|
+
* <p>
|
|
38866
|
+
* This property is only supported in 3D mode.
|
|
38867
|
+
* </p>
|
|
38855
38868
|
* @example
|
|
38856
38869
|
* const origin = Cesium.Cartesian3.fromDegrees(-95.0, 40.0, 200000.0);
|
|
38857
|
-
|
|
38870
|
+
* p.modelMatrix = Cesium.Transforms.eastNorthUpToFixedFrame(origin);
|
|
38858
38871
|
*/
|
|
38859
38872
|
modelMatrix: Matrix4;
|
|
38860
38873
|
/**
|
|
38861
38874
|
* Determines if the primitive will be shown. This affects all geometry
|
|
38862
|
-
|
|
38875
|
+
* instances in the primitive.
|
|
38863
38876
|
*/
|
|
38864
38877
|
show: boolean;
|
|
38865
38878
|
/**
|
|
38866
38879
|
* When <code>true</code>, the renderer frustum culls and horizon culls the primitive's commands
|
|
38867
|
-
|
|
38868
|
-
|
|
38880
|
+
* based on their bounding volume. Set this to <code>false</code> for a small performance gain
|
|
38881
|
+
* if you are manually culling the primitive.
|
|
38869
38882
|
*/
|
|
38870
38883
|
cull: boolean;
|
|
38871
38884
|
/**
|
|
38872
38885
|
* This property is for debugging only; it is not for production use nor is it optimized.
|
|
38873
|
-
|
|
38874
|
-
|
|
38875
|
-
|
|
38886
|
+
* <p>
|
|
38887
|
+
* Draws the bounding sphere for each draw command in the primitive.
|
|
38888
|
+
* </p>
|
|
38876
38889
|
*/
|
|
38877
38890
|
debugShowBoundingVolume: boolean;
|
|
38878
38891
|
/**
|
|
@@ -38905,8 +38918,8 @@ export class Primitive {
|
|
|
38905
38918
|
readonly compressVertices: boolean;
|
|
38906
38919
|
/**
|
|
38907
38920
|
* Determines if the primitive is complete and ready to render. If this property is
|
|
38908
|
-
|
|
38909
|
-
|
|
38921
|
+
* true, the primitive will be rendered the next time that {@link Primitive#update}
|
|
38922
|
+
* is called.
|
|
38910
38923
|
*/
|
|
38911
38924
|
readonly ready: boolean;
|
|
38912
38925
|
/**
|
|
@@ -38915,42 +38928,42 @@ export class Primitive {
|
|
|
38915
38928
|
readonly readyPromise: Promise<Primitive>;
|
|
38916
38929
|
/**
|
|
38917
38930
|
* Called when {@link Viewer} or {@link CesiumWidget} render the scene to
|
|
38918
|
-
|
|
38919
|
-
|
|
38920
|
-
|
|
38921
|
-
|
|
38922
|
-
|
|
38931
|
+
* get the draw commands needed to render this primitive.
|
|
38932
|
+
* <p>
|
|
38933
|
+
* Do not call this function directly. This is documented just to
|
|
38934
|
+
* list the exceptions that may be propagated when the scene is rendered:
|
|
38935
|
+
* </p>
|
|
38923
38936
|
*/
|
|
38924
38937
|
update(): void;
|
|
38925
38938
|
/**
|
|
38926
38939
|
* Returns the modifiable per-instance attributes for a {@link GeometryInstance}.
|
|
38927
38940
|
* @example
|
|
38928
38941
|
* const attributes = primitive.getGeometryInstanceAttributes('an id');
|
|
38929
|
-
|
|
38930
|
-
|
|
38931
|
-
|
|
38932
|
-
|
|
38942
|
+
* attributes.color = Cesium.ColorGeometryInstanceAttribute.toValue(Cesium.Color.AQUA);
|
|
38943
|
+
* attributes.show = Cesium.ShowGeometryInstanceAttribute.toValue(true);
|
|
38944
|
+
* attributes.distanceDisplayCondition = Cesium.DistanceDisplayConditionGeometryInstanceAttribute.toValue(100.0, 10000.0);
|
|
38945
|
+
* attributes.offset = Cesium.OffsetGeometryInstanceAttribute.toValue(Cartesian3.IDENTITY);
|
|
38933
38946
|
* @param id - The id of the {@link GeometryInstance}.
|
|
38934
38947
|
* @returns The typed array in the attribute's format or undefined if the is no instance with id.
|
|
38935
38948
|
*/
|
|
38936
38949
|
getGeometryInstanceAttributes(id: any): any;
|
|
38937
38950
|
/**
|
|
38938
38951
|
* Returns true if this object was destroyed; otherwise, false.
|
|
38939
|
-
|
|
38940
|
-
|
|
38941
|
-
|
|
38942
|
-
|
|
38952
|
+
* <p>
|
|
38953
|
+
* If this object was destroyed, it should not be used; calling any function other than
|
|
38954
|
+
* <code>isDestroyed</code> will result in a {@link DeveloperError} exception.
|
|
38955
|
+
* </p>
|
|
38943
38956
|
* @returns <code>true</code> if this object was destroyed; otherwise, <code>false</code>.
|
|
38944
38957
|
*/
|
|
38945
38958
|
isDestroyed(): boolean;
|
|
38946
38959
|
/**
|
|
38947
38960
|
* Destroys the WebGL resources held by this object. Destroying an object allows for deterministic
|
|
38948
|
-
|
|
38949
|
-
|
|
38950
|
-
|
|
38951
|
-
|
|
38952
|
-
|
|
38953
|
-
|
|
38961
|
+
* release of WebGL resources, instead of relying on the garbage collector to destroy this object.
|
|
38962
|
+
* <p>
|
|
38963
|
+
* Once an object is destroyed, it should not be used; calling any function other than
|
|
38964
|
+
* <code>isDestroyed</code> will result in a {@link DeveloperError} exception. Therefore,
|
|
38965
|
+
* assign the return value (<code>undefined</code>) to the object as done in the example.
|
|
38966
|
+
* </p>
|
|
38954
38967
|
* @example
|
|
38955
38968
|
* e = e && e.destroy();
|
|
38956
38969
|
*/
|
|
@@ -39550,10 +39563,6 @@ export class Scene {
|
|
|
39550
39563
|
* Gets or sets the position of the splitter within the viewport. Valid values are between 0.0 and 1.0.
|
|
39551
39564
|
*/
|
|
39552
39565
|
splitPosition: number;
|
|
39553
|
-
/**
|
|
39554
|
-
* Gets or sets the position of the Imagery splitter within the viewport. Valid values are between 0.0 and 1.0.
|
|
39555
|
-
*/
|
|
39556
|
-
imagerySplitPosition: number;
|
|
39557
39566
|
/**
|
|
39558
39567
|
* The distance from the camera at which to disable the depth test of billboards, labels and points
|
|
39559
39568
|
to, for example, prevent clipping against terrain. When set to zero, the depth test should always
|