new PolylineVolumeOutlineGeometry
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. |
Throws:
-
DeveloperError : options.polylinePositions is required.
-
DeveloperError : options.shapePositions is required.
Example
var volumeOutline = new PolylineVolumeOutlineGeometry({ polylinePositions : ellipsoid.cartographicArrayToCartesianArray([ Cartographic.fromDegrees(-72.0, 40.0), Cartographic.fromDegrees(-70.0, 35.0) ]), shapePositions : Shapes.compute2DCircle(100000.0) });
- PolylineVolumeOutlineGeometry#createGeometry
See:
Source:
Members
-
<static> brScratch :DeveloperError
-
Computes the geometric representation of the outline of a polyline with a volume, including its vertices, indices, and a bounding sphere.