fromConstantHeights

A description of a walloutline. 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 = WallOutlineGeometry.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 = WallOutlineGeometry.createGeometry(wall);

See also