CorridorOutlineGeometry

CorridorOutlineGeometry

new

A description of a corridor outline.

Parameters:
Name Type Argument Default Description
options.positions Array An array of {Cartesain3} positions that define the center of the corridor outline.
options.width Number The distance between the edges of the corridor outline.
options.ellipsoid Ellipsoid <optional>
Ellipsoid.WGS84 The ellipsoid to be used as a reference.
options.granularity Number <optional>
CesiumMath.RADIANS_PER_DEGREE The distance, in radians, between each latitude and longitude. Determines the number of positions in the buffer.
options.height Number <optional>
0 The distance between the ellipsoid surface and the positions.
options.extrudedHeight Number <optional>
The distance between the ellipsoid surface and the extrusion.
options.cornerType Boolean <optional>
CornerType.ROUNDED Determines the style of the corners.
Example
var corridor = new Cesium.CorridorOutlineGeometry({
  positions : ellipsoid.cartographicArrayToCartesianArray([
        Cesium.Cartographic.fromDegrees(-72.0, 40.0),
        Cesium.Cartographic.fromDegrees(-70.0, 35.0)
    ]),
  width : 100000
});
See:
  • CorridorOutlineGeometry#createGeometry
Source:

Methods

<static>

Computes the geometric representation of a corridor, including its vertices, indices, and a bounding sphere.

Parameters:
Name Type Description
corridorOutlineGeometry CorridorOutlineGeometry A description of the corridor.
Throws:
DeveloperError : Count of unique positions must be greater than 1.
Returns:
Geometry The computed vertices and indices.