A description of a polyline with a volume (a 2D shape extruded along a polyline).
alias PolylineVolumeGeometry
The options object takes the following properties
{Cartesian3[]} options.polylinePositions An array of Cartesian3 positions that define the center of the polyline volume.
{Cartesian2[]} options.shapePositions An array of Cartesian2 positions that define the shape to be extruded along the polyline
{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.
{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 polyline with a volume (a 2D shape extruded along a polyline).
alias PolylineVolumeGeometry
function computeCircle(radius) { var positions = []; for (var i = 0; i < 360; i++) { var radians = Cesium.Math.toRadians(i); positions.push(new Cesium.Cartesian2(radius * Math.cos(radians), radius * Math.sin(radians))); } return positions; } var volume = new Cesium.PolylineVolumeGeometry({ vertexFormat : Cesium.VertexFormat.POSITION_ONLY, polylinePositions : Cesium.Cartesian3.fromDegreesArray([ -72.0, 40.0, -70.0, 35.0 ]), shapePositions : computeCircle(100000.0) });
PolylineVolumeGeometry#createGeometry demo Sandcastle Polyline Volume Demo