PolylineVolumeOutlineGeometry

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

function computeCircle(radius) {
const positions = [];
for (let i = 0; i < 360; i++) {
const radians = Math.toRadians(i);
positions.push(new Cartesian2(radius * Math.cos(radians), radius * Math.sin(radians)));
}
return positions;
}

const volumeOutline = new PolylineVolumeOutlineGeometry({
polylinePositions : Cartesian3.fromDegreesArray([
-72.0, 40.0,
-70.0, 35.0
]),
shapePositions : computeCircle(100000.0)
});

See also

Constructors

Types

Link copied to clipboard
external object Companion
Link copied to clipboard
external interface ConstructorOptions

Properties

Link copied to clipboard
external val packedLength: Int

The number of elements used to pack the object into an array.