# LimitHeightAnalysis
创建限高分析
let position = [111.77443948930483, 22.16250865562027, 1000];
let clippingPlanes = new Cesium.ClippingPlaneCollection({
planes: [
new Cesium.ClippingPlane(new Cesium.Cartesian3(0.0, 0.0, -1.0), -5.0),
],
edgeWidth: 1.0,
});
buildingTileSet = viewer.scene.primitives.add(
new Cesium.Cesium3DTileset({
globalScreenSpaceErrorFactor: 1,
skipLevelOfDetail: true,
clippingPlanes: clippingPlanes,
url: "http://172.16.67.50:8082/CesiumLab/wm/tileset.json",
})
);
let limitHeight = new GeowayGlobe.LimitHeightAnalysis({
gltfUrl: "public-assets/gltf/building_0.glb",
position: [position[0], position[1]],
viewer,
clippingPlanes,
tilesets: [buildingTileSet],
});
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# LimitHeightAnalysis options 构造属性
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
gltfUrl | gltf 数据地址 | String | |
position | 数据坐标 | Array | [] |
tilesets | tilsets 集合 | Array | [] |