fromConstantHeights

A description of a wall, which is similar to a KML line string. A wall is defined by a series of points, which extrude down to the ground. Optionally, they can extrude downwards to a specified height.

// create a wall that spans from 10000 meters to 20000 meters
const wall = WallGeometry.fromConstantHeights({
positions : Cartesian3.fromDegreesArray([
19.0, 47.0,
19.0, 48.0,
20.0, 48.0,
20.0, 47.0,
19.0, 47.0,
]),
minimumHeight : 20000.0,
maximumHeight : 10000.0
});
const geometry = WallGeometry.createGeometry(wall);

See also