Class: TerrainClipPlan

TerrainClipPlan

用于配置淹没分析相关功能。

     const terrainClipPlan = new TerrainClipPlan(window.viewer, {
      height: 200,
      splitNum: 1000,
      bottomImg: '/polysoil',  //图片路径
      wallImg: '/polystone'   //图片路径
    })
    const positions= [
       new Position(119.481231, 28.440357, 0),
       new Position(119.481998, 28.441117, 0),
       new Position(119.482421, 28.440803, 0),
       new Position(119.481627, 28.439996, 0)
    ]
    terrainClipPlan.updateData(positions)

new TerrainClipPlan(viewer, options)

app/analysis/clip/TerrainClipPlan.js, line 27

可选参数设置

Name Type Description
viewer Cesium.viewer

cesium中的viewer

options *

地形剖切参数

Name Type Description
position Array

剖切坐标数组

height Number

高度

bottomImg String

剖切底面材质

wallImg String

剖切墙面材质

splitNum Number

分割数量

Classes

TerrainClipPlan

Methods

clear()

app/analysis/clip/TerrainClipPlan.js, line 118

添加tileset剖切

updateData(positions)

app/analysis/clip/TerrainClipPlan.js, line 74

添加tileset剖切

Name Type Description
positions Array.<Position>

坐标串