当前位置:网站首页>Cesium add light sweep
Cesium add light sweep
2022-07-28 01:21:00 【Yue Yan Shao Falcon】
var viewer=ysc.createNormalCesium("cesiumContainer",{
globalImagery:" Sky map "// Sky map image
});
var data={
circle:[0.003,117,35,30]// The first parameter 0.003 It's radius , The second and third respectively represent the coordinates of the base center , The fourth represents how many points are cut . How many faces are formed . The more you get, the more you get stuck Try not to affect the effect of the actual project , The less, the better. .
,observer:[117.01,35.01,500]// Observation points , That is, the light source
,positionList:[ // We won't increase the height here . Otherwise it would be too much trouble // Take the center of the circle as the reference to obtain the offset value , The coordinates of the center of the circle [117,35], Simply dot and draw a square If you draw a round picture , You can also get more
[117,35],// initial position
[117.01,35], // The next point
[117.01,35.01],
[117,35.01],
[117,35],// Come back
]
,material:Cesium.Color.RED.withAlpha(0.5)// The material of light
,number:100// The smaller the number, the faster
};
var entityCList= ysc.createLightScan(viewer,data); // Returns an array of all faces If you need to clear the painting , Clear through this
// eliminate
// for(var i=0;i< entityCList.length;i++){
// viewer.entities.remove(entityCList[i]);
// }
//**** Here are the extra Yes, but not ***//
// Cube column Indicates the platform
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(data.observer[0],data.observer[1],data.observer[2]/2),
name:"",
box : {
dimensions : new Cesium.Cartesian3(100.0, 100.0,data.observer[2]),
outline : true,
outlineColor : Cesium.Color.WHITE,
outlineWidth : 2,
material : Cesium.Color.fromRandom({alpha : 0.5})
}
});
// A blue ray
var glowingLine = viewer.entities.add({
name : 'Glowing blue line on the surface',
polyline : {
positions : Cesium.Cartesian3.fromDegreesArray(
[
data.positionList[0][0],data.positionList[0][1],
data.positionList[1][0],data.positionList[1][1],
data.positionList[2][0],data.positionList[2][1],
data.positionList[3][0],data.positionList[3][1],
data.positionList[4][0],data.positionList[4][1],
]),
width : 10,
material : new Cesium.PolylineGlowMaterialProperty({ // Luminous line
glowPower : 0.2,
color : Cesium.Color.BLUE
})
}
});
viewer.zoomTo(viewer.entities)边栏推荐
- File system mount
- dataworks 传输数据到mysql 中文乱码是什么原因
- 站在数字零售转型的十字路口,我们需要用新的角度来看待它
- Brief analysis of advantages, disadvantages and development of SAP modules
- oracle分组取最大值
- Hierarchy of file system
- Xinyi information technology, a domestic NB IOT chip manufacturer, received 200million yuan of a+ round financing
- 糟糕程序员的20个坏习惯
- Use of postman
- 美光起诉联电窃密案宣判:联电被罚1亿元新台币,三名员工被判刑!
猜你喜欢

Starfish Os打造的元宇宙生态,跟MetaBell的合作只是开始

Safety detection risk

Code random notes_ Hash_ 1002 find common characters

ABAP CDs table function introduction and examples

字节月薪28K,分享一波我的自动化测试经验....

二维数组相关知识

【C语言】文件操作

Software process that testers need to know

EWM receiving ECC delivery note verification logic problem

Oxygen temperature and humidity module
随机推荐
Circular structure of shell system learning
站在数字零售转型的十字路口,我们需要用新的角度来看待它
Vandermond convolution learning notes
闻泰科技收购安世半导体剩余股权获得无条件通过
Gazebo control example
4月全球智能手机出货同比下滑41%,华为首次超三星成全球第一
3年经验想拿20K,居然面了半个月都没拿到?
node-red与TDengine交互
Redis缓存穿透击穿和雪崩
Anfulai embedded weekly report no. 275: 2022.07.18--2022.07.24
From functional testing to automated testing, my monthly salary has exceeded 30k+, and I have 6 years of testing experience.
The cooperation between starfish OS and metabell is just the beginning
Swoole websocket service
Swoole内存-table详解
File system mount
HarmonyOS 3正式发布:鸿蒙手机流畅安全,鸿蒙终端常用常新
Support Wu xiongang! Arm Chinese management sent an open letter: shocked and angry at the unwarranted allegations!
At the meeting on June 19, SMIC may set the fastest listing record in China!
Swoole Task任务使用
吴雄昂发内部信:Arm的指控是莫须有的,现有成果不允许有任何损害!