PolylineVolumeOutlineGeometry

PolylineVolumeOutlineGeometry

new

A description of a polyline with a volume (a 2D shape extruded along a polyline).

Parameters:
Name Type Argument Default Description
options.polylinePositions Array An array of {Cartesain3} positions that define the center of the polyline volume.
options.shapePositions Number An array of {Cartesian2} positions that define the shape to be extruded along the polyline
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.cornerType Boolean <optional>
CornerType.ROUNDED Determines the style of the corners.
Example
var volumeOutline = new Cesium.PolylineVolumeOutlineGeometry({
    polylinePositions : ellipsoid.cartographicArrayToCartesianArray([
        Cesium.Cartographic.fromDegrees(-72.0, 40.0),
        Cesium.Cartographic.fromDegrees(-70.0, 35.0)
    ]),
    shapePositions : Cesium.Shapes.compute2DCircle(100000.0)
});
See:
  • PolylineVolumeOutlineGeometry#createGeometry
Source:

Members

<static> :DeveloperError

Computes the geometric representation of the outline of a polyline with a volume, including its vertices, indices, and a bounding sphere.