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.
alias WallGeometry
- The options object takes the following properties
- {Cartesian3[]} options.positions An array of Cartesian objects, which are the points of the wall.
- {Number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
- {Number[]} [options.maximumHeights] An array parallel to positions that give the maximum height of the
wall at positions. If undefined, the height of each position in used.
- {Number[]} [options.minimumHeights] An array parallel to positions that give the minimum height of the
wall at positions. If undefined, the height at each position is 0.0.
- {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid for coordinate manipulation
- {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
exception {DeveloperError} positions length must be greater than or equal to 2.
exception {DeveloperError} positions and maximumHeights must have the same length.
exception {DeveloperError} positions and minimumHeights must have the same length.
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.
alias WallGeometry
- The options object takes the following properties - {Cartesian3[]} options.positions An array of Cartesian objects, which are the points of the wall. - {Number} [options.granularity=CesiumMath.RADIANS_PER_DEGREE] The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer. - {Number[]} [options.maximumHeights] An array parallel to
positions
that give the maximum height of the wall atpositions
. If undefined, the height of each position in used. - {Number[]} [options.minimumHeights] An array parallel topositions
that give the minimum height of the wall atpositions
. If undefined, the height at each position is 0.0. - {Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid for coordinate manipulation - {VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.exception {DeveloperError} positions length must be greater than or equal to 2. exception {DeveloperError} positions and maximumHeights must have the same length. exception {DeveloperError} positions and minimumHeights must have the same length.
// create a wall that spans from ground level to 10000 meters var wall = new Cesium.WallGeometry({ positions : Cesium.Cartesian3.fromDegreesArrayHeights([ 19.0, 47.0, 10000.0, 19.0, 48.0, 10000.0, 20.0, 48.0, 10000.0, 20.0, 47.0, 10000.0, 19.0, 47.0, 10000.0 ]) }); var geometry = Cesium.WallGeometry.createGeometry(wall);
WallGeometry#fromConstantHeight demo Sandcastle Wall Demo
WallGeometry#createGeometry