fromPositions

A description of a polygon outline from an array of positions.

// create a polygon from points
const polygon = PolygonOutlineGeometry.fromPositions({
positions : Cartesian3.fromDegreesArray([
-72.0, 40.0,
-70.0, 35.0,
-75.0, 30.0,
-70.0, 30.0,
-68.0, 40.0
])
});
const geometry = PolygonOutlineGeometry.createGeometry(polygon);

See also