A description of a polyline with a volume (a 2D shape extruded along a polyline).
alias PolylineVolumeOutlineGeometry
- The options object takes the following properties
- {Cartesian3[]} options.polylinePositions An array of positions that define the center of the polyline volume.
- {Cartesian2[]} options.shapePositions An array of 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.
- {CornerType} [options.cornerType=CornerType.ROUNDED] Determines the style of the corners.
Annotations
@RawJSType()@native()@JSName(...)
Example:
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 volumeOutline = new Cesium.PolylineVolumeOutlineGeometry({
polylinePositions : Cesium.Cartesian3.fromDegreesArray([
-72.0, 40.0,
-70.0, 35.0
]),
shapePositions : computeCircle(100000.0)
});
A description of a polyline with a volume (a 2D shape extruded along a polyline).
alias PolylineVolumeOutlineGeometry
- The options object takes the following properties - {Cartesian3[]} options.polylinePositions An array of positions that define the center of the polyline volume. - {Cartesian2[]} options.shapePositions An array of 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. - {CornerType} [options.cornerType=CornerType.ROUNDED] Determines the style of the corners.
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 volumeOutline = new Cesium.PolylineVolumeOutlineGeometry({ polylinePositions : Cesium.Cartesian3.fromDegreesArray([ -72.0, 40.0, -70.0, 35.0 ]), shapePositions : computeCircle(100000.0) });
PolylineVolumeOutlineGeometry#createGeometry