PolylineGeometry

A description of a polyline modeled as a line strip; the first two positions define a line segment, and each additional position defines a line segment from the previous position. The polyline is capable of displaying with a material.

// A polyline with two connected line segments
const polyline = new PolylineGeometry({
positions : Cartesian3.fromDegreesArray([
0.0, 0.0,
5.0, 0.0,
5.0, 5.0
]),
width : 10.0
});
const geometry = PolylineGeometry.createGeometry(polyline);

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion
Link copied to clipboard

Properties

Link copied to clipboard

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