mirror of https://github.com/CesiumGS/cesium.git
PR feedback part 2
This commit is contained in:
parent
7f81c437f4
commit
b321b6fadc
|
|
@ -858,7 +858,7 @@ const scratchUv2 = new Cartesian2();
|
|||
const scratchBary = new Cartesian3();
|
||||
|
||||
/**
|
||||
* Computes the terrain height at a specified longitude and latitude.
|
||||
* Computes the terrain height at a specified longitude and latitude. Returns 0.0 if the position is outside the mesh.
|
||||
* @private
|
||||
* @param {TerrainMesh} mesh The terrain mesh.
|
||||
* @param {Rectangle} rectangle The rectangle covered by this terrain data.
|
||||
|
|
@ -923,6 +923,7 @@ function interpolateMeshHeight(mesh, rectangle, longitude, latitude) {
|
|||
}
|
||||
|
||||
// Position does not lie in any triangle in this mesh.
|
||||
// This should not happen often since we start by clamping to the rectangle.
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@ import CesiumMath from "./Math.js";
|
|||
* @see CesiumTerrainProvider
|
||||
* @see VRTheWorldTerrainProvider
|
||||
* @see GoogleEarthEnterpriseTerrainProvider
|
||||
* @see ArcGISTiledElevationTerrainProvider
|
||||
* @see Cesium3DTilesTerrainProvider
|
||||
*/
|
||||
function TerrainProvider() {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
legacyId: Globe Materials – 3D Tiles Terrain.html
|
||||
title: Globe Materials – 3D Tiles Terrain
|
||||
description: Apply materials to the globe.
|
||||
description: Load a 3D Tiles tileset as terrain, and apply globe material properties to style the terrain.
|
||||
labels:
|
||||
- 3D Tiles
|
||||
- Terrain
|
||||
- Showcases
|
||||
thumbnail: thumbnail.jpg
|
||||
|
|
|
|||
Loading…
Reference in New Issue