SectionPlaneGeometry

new Cesium.SectionPlaneGeometry(options)

剖面几何类
Name Type Description
options Object 剖面几何类构造参数
Name Type Default Description
positions Array.<Cartesian3> optional 位置数组
isHorizontal Boolean optional 是否生成水平面,默认为false。设置为true时,会生成水平切面,假设输入AB两点,获取A点沿AB方向上且无限接近于A点且高度一致的点C, 切面点的计算根据A点地心向量叉乘Ac向量后乘以切面深度得出。需要注意在topHeight和bottomHeight不一致时,根据切面方向的不同切面深度也会发生变化。
topHeight Number 1000 optional 上切面高度
bottomHeight Number 1000 optional 下切面高度

Methods

static Cesium.SectionPlaneGeometry.createPlaneGeometryByHeight(layers, height)SectionPlaneGeometry

根据多个MapGISM3DSet和统一的海拔高度构建一个水平的剖面几何
Name Type Description
layers Array.<MapGISM3DSet> m3d图层列表
height Number 海拔高度
Returns:
Example:
let sectionPlaneGeometry = Cesium.SectionPlaneGeometry.createPlaneGeometryByHeight([m3dLayer], -800)

static Cesium.SectionPlaneGeometry.createPlaneGeometryByPositions(topPoint1, topPoint2, bottomPoint1, bottomPoint2)SectionPlaneGeometry

根据空间中的四个点构建一个剖面几何
Name Type Description
topPoint1 Cartesian3
topPoint2 Cartesian3
bottomPoint1 Cartesian3
bottomPoint2 Cartesian3
Returns:
Example:
let sectionPlaneGeometry = Cesium.SectionPlaneGeometry.createPlaneGeometryByPositions(positions[0], positions[1], positions[2], positions[3])
获取几何对应的顶点数组对象
Name Type Description
context Context 上下文对象
Returns:
顶点数组对象