ClippingPolygon

A geodesic polygon to be used with ClippingPlaneCollection for selectively hiding regions in a model, a 3D tileset, or the globe.

const positions = Cartesian3.fromRadiansArray([
-1.3194369277314022,
0.6988062530900625,
-1.31941,
0.69879,
-1.3193955980204217,
0.6988091578771254,
-1.3193931220959367,
0.698743632490865,
-1.3194358224045408,
0.6987471965556998,
]);

const polygon = new ClippingPolygon({
positions: positions
});

See also

Constructors

Link copied to clipboard

Types

Link copied to clipboard
object Companion
Link copied to clipboard
sealed interface ConstructorOptions

Properties

Link copied to clipboard

Returns the ellipsoid used to project the polygon onto surfaces when clipping.

Link copied to clipboard
val length: Int

Returns the total number of positions in the polygon, include any holes.

Link copied to clipboard

Returns the outer ring of positions.

Functions

Link copied to clipboard
fun computeRectangle(result: Rectangle? = definedExternally): Rectangle

Computes a cartographic rectangle which encloses the polygon defined by the list of positions, including cases over the international date line and the poles.