A geodesic polygon to be used with
ClippingPlaneCollection
for selectively hiding regions in a model, a 3D tileset, or the globe.
参数名称 | 类型 | 描述信息 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
Object with the following properties:
|
使用示例:
const positions = Cesium.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 Cesium.ClippingPolygon({
positions: positions
});
成员(属性)
readonly ellipsoid : Ellipsoid
Returns the ellipsoid used to project the polygon onto surfaces when clipping.
Returns the total number of positions in the polygon, include any holes.
readonly positions : Array.<Cartesian3>
Returns the outer ring of positions.
方法
static Cesium.ClippingPolygon.clone(polygon, result) → ClippingPolygon
Clones the ClippingPolygon without setting its ownership.
参数名称 | 类型 | 描述信息 |
---|---|---|
polygon |
ClippingPolygon | The ClippingPolygon to be cloned |
result |
ClippingPolygon | 可选 The object on which to store the cloned parameters. |
返回值:
a clone of the input ClippingPolygon
Compares the provided ClippingPolygons and returns
true
if they are equal, false
otherwise.
参数名称 | 类型 | 描述信息 |
---|---|---|
left |
Plane | The first polygon. |
right |
Plane | The second polygon. |
返回值:
true
if left and right are equal, false
otherwise.
computeRectangle(result) → 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.
参数名称 | 类型 | 描述信息 |
---|---|---|
result |
Rectangle | 可选 An object in which to store the result. |
返回值:
The result rectangle