add

Adds the specified ClippingPolygon to the collection to be used to selectively disable rendering on the inside of each polygon. Use ClippingPolygonCollection.unionClippingRegions to modify how modify the clipping behavior of multiple polygons.

const polygons = new ClippingPolygonCollection();

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

polygons.add(new ClippingPolygon({
positions: positions
}));

Return

The added ClippingPolygon.

Parameters

polygon

The ClippingPolygon to add to the collection.

See also