SimplePolylineGeometry
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.
// A polyline with two connected line segments
const polyline = new SimplePolylineGeometry({
positions : Cartesian3.fromDegreesArray([
0.0, 0.0,
5.0, 0.0,
5.0, 5.0
])
});
const geometry = SimplePolylineGeometry.createGeometry(polyline);
Content copied to clipboard