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);
Content copied to clipboard