new Flat(sdk, tileset, options)
模型压平
Parameters:
Name | Type | Description |
---|---|---|
sdk |
||
tileset |
Cesium.Cesium3DTileset | 三维模型 |
options |
Object | |
attr.id |
string | id |
attr.positions |
Array.<Cesium.Cartesian3> | 压平面坐标 |
Methods
-
<async> flyTo()
-
飞到
-
addRegion(attr)
-
添加压平面
Parameters:
Name Type Description attr
Object 参数 Properties
Name Type Description positions
Array.<Cesium.Cartesian3> 压平面坐标 height
Number 压平深度,当前不支持单独设置 id
Number 唯一标识 -
removeRegionById(id)
-
根据id删除压平的面
Parameters:
Name Type Description id
String 唯一标识 -
destroy()
-
销毁
-
getIsinPolygonFun()
-
根据数组长度,构建 判断点是否在面内 的压平函数