Skip to content

Commit b321b6f

Browse files
author
Jeshurun Hembd
committed
PR feedback part 2
1 parent 7f81c43 commit b321b6f

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

packages/engine/Source/Core/Cesium3DTilesTerrainData.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -858,7 +858,7 @@ const scratchUv2 = new Cartesian2();
858858
const scratchBary = new Cartesian3();
859859

860860
/**
861-
* Computes the terrain height at a specified longitude and latitude.
861+
* Computes the terrain height at a specified longitude and latitude. Returns 0.0 if the position is outside the mesh.
862862
* @private
863863
* @param {TerrainMesh} mesh The terrain mesh.
864864
* @param {Rectangle} rectangle The rectangle covered by this terrain data.
@@ -923,6 +923,7 @@ function interpolateMeshHeight(mesh, rectangle, longitude, latitude) {
923923
}
924924

925925
// Position does not lie in any triangle in this mesh.
926+
// This should not happen often since we start by clamping to the rectangle.
926927
return 0.0;
927928
}
928929

packages/engine/Source/Core/TerrainProvider.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import CesiumMath from "./Math.js";
1515
* @see CesiumTerrainProvider
1616
* @see VRTheWorldTerrainProvider
1717
* @see GoogleEarthEnterpriseTerrainProvider
18+
* @see ArcGISTiledElevationTerrainProvider
1819
* @see Cesium3DTilesTerrainProvider
1920
*/
2021
function TerrainProvider() {
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
legacyId: Globe Materials – 3D Tiles Terrain.html
22
title: Globe Materials – 3D Tiles Terrain
3-
description: Apply materials to the globe.
3+
description: Load a 3D Tiles tileset as terrain, and apply globe material properties to style the terrain.
44
labels:
5+
- 3D Tiles
6+
- Terrain
57
- Showcases
68
thumbnail: thumbnail.jpg

0 commit comments

Comments
 (0)