RegionOperationCollection

new Cesium.RegionOperationCollection()

区域操作对象,支持开挖、遮罩、压平等功能。

Members

区域操作的数量

readonly maxVertexCount : Number

区域操作几何中最大顶点数量

Methods

添加区域操作
Name Type Description
options Object optional options具有如下属性
Name Type Description
id String | Number optional 操作ID
positions Array.<Cartesian3> optional 区域顶点坐标
operationType RegionOperationType optional 区域操作类型
operateInner Boolean optional 区域操作内部还是外部
enabled Boolean optional 区域操作是否起作用
flatenHight Number optional 压平高度,仅对operationType=FLATTEN起作用
maskColor Color optional 遮罩颜色,仅对operationType=MASKING起作用
Returns:
区域操作对象
移除所有区域操作
根据ID移除区域操作
Name Type Description
id String | Number
Returns:
是否移除成功
Need help? The fastest way to get answers is from the community and team on the Cesium Forum.