当前位置:网站首页>Cesium快速上手4-Polylines图元使用讲解
Cesium快速上手4-Polylines图元使用讲解
2022-08-10 14:59:00 【在人间负债^】
Cesium快速上手4-Polylines图元使用讲解
1. Polyline & Cesium.PolylineCollection
http://localhost:8080/Apps/Sandcastle/index.html?src=development%2FPolylines.html&label=Development
// A simple polyline with two points.
const polyline = polylines.add({
positions: Cesium.PolylinePipeline.generateCartesianArc({
positions: Cesium.Cartesian3.fromDegreesArray([
-120.0,
40.0,
-110.0,
30.0,
]),
}),
material: Cesium.Material.fromType("Color", {
color: new Cesium.Color(1.0, 1.0, 1.0, 1.0),
}),
});
2. PolylineGeometry
http://localhost:8080/Apps/Sandcastle/gallery/development%2FPolyline.html
3. SimplePolylineGeometry
http://localhost:8080/Apps/Sandcastle/index.html?src=development%2FSimple%20Polyline.html&label=Development
特点:SimplePolylineGeometry没有width属性
4. GroundPolylineGeometry
http://localhost:8080/Apps/Sandcastle/gallery/development%2FGround%20Polyline%20Material.html
http://localhost:8080/Apps/Sandcastle/gallery/development%2FPolylines%20On%20Terrain.html
注意:必须用GroundPolylinePrimitive来创建,而不能用GroundPrimitive创建
5. 综合比较
PolylineCollection可以同时渲染多条折线,性能较高;其他类型都是单独渲染某个折线的,会导致多了的话,渲染性能受影响。
边栏推荐
猜你喜欢
SWIG教程《一》
Redis -- Nosql
scala集合
Community News——Congratulations to Dolphin Scheduling China User Group for 9 new "Community Administrators"
QOS功能介绍
2022年网络安全培训火了,缺口达95%,揭开网络安全岗位神秘面纱
【MindSpore易点通机器人-02】设计与技术选型
MySQL Principle and Optimization: Update Optimization
使用Uiautomator2进行APP自动化测试
领域驱动模型设计与微服务架构落地-从项目去剖析领域驱动
随机推荐
Boss raises salary!Look at my WPF Loading!!!
Go Context基本使用
司空见惯 - 股市狠狠下跌后,何時能反弹?
易基因|深度综述:m6A RNA甲基化在大脑发育和疾病中的表观转录调控作用
微信小程序,自定义输入框与导航胶囊对其
老板加薪!看我做的WPF Loading!!!
程序调试介绍及其使用
CSP-J1 CSP-S1 初赛 第1轮(2022.08.09)
Digital Collection Platform System Development Practice
pytest框架优化
Analysys and the Alliance of Small and Medium Banks jointly released the Hainan Digital Economy Index, so stay tuned!
NFT digital collection development issue - digital collection platform
数据类型与整型存储
systemui状态栏添加新图标
systemui屏蔽通知栏
fatal error C1083 Unable to open include file 'io.h' No such file
Flask框架——MongoEngine使用MongoDB数据库
QOS function introduction
王学岗—————————哔哩哔哩直播-手写哔哩哔哩硬编码录屏推流(硬编)(26节课)
MySQL 原理与优化:Update 优化