等高面

Isosurface

const positions: Cesium.Cartesian3[] = [...];
const state = {
interval: 50,
breaks: [0, 25, 50, 75, 100] as any[],
lineWidth: 2,
}
const genColors = ()=> Cesium.Color.fromRandom();
const analyser = new Isosurface(viewer.terrainProvider, {
width: 1500,
colors: genColors(8),
breakCount: 8,
});
analyser.analyse(positions, state.interval)
.then(e => {
viewer.entities.add(e);
})

Constructors

Properties

Accessors

Methods

Constructors

Properties

breakCount: number = 5

等高面断点个数

Isosurface

breaks: number[] = []

等高面断点

Isosurface

colors: Color[] = []

颜色表

Isosurface

interval: number = 50

等高面高度间隔

Isosurface

width: number = 1000

贴图宽度

Isosurface

Accessors

  • get gradeCount(): number
  • Returns number

    等高线等级数量(基于断点)

    Contour

Methods

  • 执行分析

    Parameters

    • positions: Cartesian3[]

      分析区域坐标点

    • interval: number = null

      间隔

    Returns Promise<Entity>

  • 清理

    Returns void