1 line
54 KiB
Plaintext
1 line
54 KiB
Plaintext
|
{"version":3,"file":"createVerticesFromQuantizedTerrainMesh.js","sources":["../../../../Source/Core/TerrainProvider.js","../../../../Source/WorkersES6/createVerticesFromQuantizedTerrainMesh.js"],"sourcesContent":["import defined from \"./defined.js\";\nimport DeveloperError from \"./DeveloperError.js\";\nimport IndexDatatype from \"./IndexDatatype.js\";\nimport CesiumMath from \"./Math.js\";\n\n/**\n * Provides terrain or other geometry for the surface of an ellipsoid. The surface geometry is\n * organized into a pyramid of tiles according to a {@link TilingScheme}. This type describes an\n * interface and is not intended to be instantiated directly.\n *\n * @alias TerrainProvider\n * @constructor\n *\n * @see EllipsoidTerrainProvider\n * @see CesiumTerrainProvider\n * @see VRTheWorldTerrainProvider\n * @see GoogleEarthEnterpriseTerrainProvider\n */\nfunction TerrainProvider() {\n DeveloperError.throwInstantiationError();\n}\n\nObject.defineProperties(TerrainProvider.prototype, {\n /**\n * Gets an event that is raised when the terrain provider encounters an asynchronous error.. By subscribing\n * to the event, you will be notified of the error and can potentially recover from it. Event listeners\n * are passed an instance of {@link TileProviderError}.\n * @memberof TerrainProvider.prototype\n * @type {Event}\n * @readonly\n */\n errorEvent: {\n get: DeveloperError.throwInstantiationError,\n },\n\n /**\n * Gets the credit to display when this terrain provider is active. Typically this is used to credit\n * the source of the terrain. This function should\n * not be called before {@link TerrainProvider#ready} returns true.\n * @memberof TerrainProvider.prototype\n * @type {Credit}\n * @readonly\n */\n credit: {\n get: DeveloperError.throwInstantiationError,\n },\n\n /**\n * Gets the tiling scheme used by the provider. This function should\n * not be called before {@link TerrainProvider#ready} returns true.\n * @memberof TerrainProvider.prototype\n * @type {TilingScheme}\n * @readonly\n */\n tilingScheme: {\n get: DeveloperError.throwInstantiationError,\n },\n\n /**\n * Gets a value indicating whether or not the provider is ready for use.\n * @memberof TerrainProvider.prototype\n * @type {Boolean}\n * @readonly\n */\n ready: {\n get: DeveloperError.throwInstantiationError,\n },\n\n /**\n * Gets a promise that resolves to true when the provider is ready for use.\n * @memberof TerrainProvider.prototype\n * @type {Promise.<Boolean>}\n * @readonly\n */\n readyPromise: {\n get: DeveloperError.throwInstantiationError,\n },\n\n /**\n * Gets a value indicating whether or not the provider includes a water mask. The water mask\n * indicates which areas of the globe are water rather than land, so they can be rendered\n * as a reflective surface with animated waves. This function should not be\n * called before {@link TerrainProvider#ready} returns true.\n * @memberof TerrainProvider.prototype\n * @type {Boolean}\n * @readonly\n */\n hasWaterMask: {\n get: DeveloperError.throwInstantiationError,\n },\n\n /**\n * Gets a value indicating whether or not the requested tiles include vertex normals.\n * This function should not be called before {@link TerrainProvider#ready} returns true.\n * @memberof TerrainProvider.prototype\n * @type {Boolean}\n * @readonly\n */\n hasVertexNormals: {\n get: DeveloperError.throwInstantiationError,\n },\n\n /**\n * Gets an object that can be used to determine availability of terrain from this provider, such as\n * at points and in rectangles. This function should not be called before\n * {@link TerrainProvider#ready} returns true. This property may be undefined if availability\n * information is not available.\n * @memberof TerrainProvider.prototype\n * @type {TileAvailability}\n * @readonly\n */\n availability: {\n get: DeveloperError.throwInstantiationError,\n },\n});\n\nconst regularGridIndicesCache = [];\n\n/**\n * Gets a list of indices for a
|