A description of a corridor. Corridor geometry can be rendered with both Primitive and GroundPrimitive.
alias CorridorGeometry
The options object takes the following properties
{Cartesian3[]} options.positions An array of positions that define the center of the corridor.
{Number} options.width The distance between the edges of the corridor in meters.
{Ellipsoid} [options.ellipsoid=Ellipsoid.WGS84] The ellipsoid to be used as a reference.
{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.height=0] The distance in meters between the ellipsoid surface and the positions.
{Number} [options.extrudedHeight] The distance in meters between the ellipsoid surface and the extruded face.
{VertexFormat} [options.vertexFormat=VertexFormat.DEFAULT] The vertex attributes to be computed.
{CornerType} [options.cornerType=CornerType.ROUNDED] Determines the style of the corners.
A description of a corridor. Corridor geometry can be rendered with both Primitive and GroundPrimitive.
alias CorridorGeometry
var corridor = new Cesium.CorridorGeometry({ vertexFormat : Cesium.VertexFormat.POSITION_ONLY, positions : Cesium.Cartesian3.fromDegreesArray([-72.0, 40.0, -70.0, 35.0]), width : 100000 });
Packable demo Sandcastle Corridor Demo
CorridorGeometry.createGeometry