围墙扩散工具
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Object | 场景视图对象 | |||||||||||||||||||||
positions |
Array.<Cartesian3> | 坐标数组,必须是闭环,世界坐标Cartesian3 | |||||||||||||||||||||
options |
Object |
包含以下属性
|
Example:
var polylineWall = [
114.40061, 30.46756,
114.40226, 30.46756,
114.40226, 30.46706,
114.40165, 30.46662,
114.40145, 30.4660,
114.4006, 30.46608,
114.40061, 30.46756
];
var positions = Cesium.Cartesian3.fromDegreesArray(polylineWall);
var wallSpreadTool = new Cesium.WallSpreadTool(viewer,positions,options);
wallSpreadTool.add();