text stringlengths 0 8.81k |
|---|
extension |
string |
The extension to remove. |
Returns: |
The extension data removed from gltf.extensions. |
sampleTerrain(terrainProvider, level, positions, rejectOnTileFail) → Promise.<Array.<Cartographic>> |
engine/Source/Core/sampleTerrain.js 4 |
Initiates a terrain height query for an array of Cartographic positions by |
requesting tiles from a terrain provider, sampling, and interpolating. The interpolation |
matches the triangles used to render the terrain at the specified level. The query |
happens asynchronously, so this function returns a promise that is resolved when |
the query completes. Each point height is modified in place. If a height can not be |
determined because no terrain data is available for the specified level at that location, |
or another error occurs, the height is set to undefined. As is typical of the |
Cartographic type, the supplied height is a height above the reference ellipsoid |
(such as Ellipsoid.WGS84) rather than an altitude above mean sea level. In other |
words, it will not necessarily be 0.0 if sampled in the ocean. This function needs the |
terrain level of detail as input, if you need to get the altitude of the terrain as precisely |
as possible (i.e. with maximum level of detail) use sampleTerrainMostDetailed. |
Name |
Type |
Default |
Description |
terrainProvider |
TerrainProvider |
The terrain provider from which to query heights. |
level |
number |
The terrain level-of-detail from which to query terrain heights. |
positions |
Array.<Cartographic> |
The positions to update with terrain heights. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.