FrustumGeometry表示金字塔锥形体,用于创建可视化的金字塔视锥体模型。
new Cesium.FrustumGeometry(options)
类型: Object
以下为options对象的属性:
var viewer = new Cesium.Viewer('cesiumContainer');
var frustum = new Cesium.FrustumGeometry({
radii : new Cesium.Cartesian6(1000000.0, 1000000.0, 500000.0, 500000.0, 500000.0, 0.0),
stackPartitions : 6,
slicePartitions : 5
});
var geometry = Cesium.FrustumGeometry.createGeometry(frustum);
viewer.scene.primitives.add(new Cesium.Primitive({
geometryInstances: new Cesium.GeometryInstance({
geometry: geometry
}),
appearance: new Cesium.MaterialAppearance({
material: Cesium.Material.fromType('Stripe')
})
}));