RectangleGeometry

A description of a cartographic rectangle on an ellipsoid centered at the origin. Rectangle geometry can be rendered with both Primitive and GroundPrimitive.

// 1. create a rectangle
const rectangle = new RectangleGeometry({
ellipsoid : Ellipsoid.default,
rectangle : Rectangle.fromDegrees(-80.0, 39.0, -74.0, 42.0),
height : 10000.0
});
const geometry = RectangleGeometry.createGeometry(rectangle);

// 2. create an extruded rectangle without a top
const rectangle = new RectangleGeometry({
ellipsoid : Ellipsoid.default,
rectangle : Rectangle.fromDegrees(-80.0, 39.0, -74.0, 42.0),
height : 10000.0,
extrudedHeight: 300000
});
const geometry = RectangleGeometry.createGeometry(rectangle);

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard
Link copied to clipboard