当前位置:网站首页>Cesium Quick Start 4-Polylines primitive usage explanation
Cesium Quick Start 4-Polylines primitive usage explanation
2022-08-10 15:32:00 【Debt in the world^】
Cesium快速上手4-PolylinesExplanation of the use of primitives
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. 综合比较
PolylineCollectionMultiple polylines can be rendered at the same time,性能较高;Other types render a polyline separately,Will lead to more words,Rendering performance is affected.
边栏推荐
- 【芯片】人人皆可免费造芯?谷歌开源芯片计划已释放90nm、130nm和180nm工艺设计套件
- scala basics
- JS入门到精通完整版
- Network engineer's backpack (EDC summary recommendation)
- Zijin Example
- Meaning and names of 12 nautical miles, 24 nautical miles and 200 nautical miles
- Mini Program-Voice broadcast function
- 基于inotify实现落盘文件的跨进程实时读写交互
- 紫金示例
- Yann LeCun转推:参数减少50倍,性能还更好,MetaAI推出Atlas信息检索模型
猜你喜欢
随机推荐
使用 ABAP 正则表达式解析 uuid 的值
富爸爸穷爸爸之读书笔记
Pagoda panel open Redis to specify the network machine
【数仓设计】企业数仓为什么要进行分层?(六大好处)
无线网络、HTTP缓存、IPv6
Data Types and Integer Storage
$‘\r‘: command not found
从全球价值链视角看,京东云数智供应链对未来经济有何影响?
一文让你快速了解大小端概念!
[Data warehouse design] Why should enterprise data warehouses be layered?(six benefits)
推荐几款最好用的MySQL开源客户端,建议收藏!
Appium for APP automation testing
APP automation testing with Uiautomator2
易基因|深度综述:m6A RNA甲基化在大脑发育和疾病中的表观转录调控作用
全志V853开发板移植基于 LVGL 的 2048 小游戏
老板加薪!看我做的WPF Loading!!!
Systemui status bar to add a new icon
【MindSpore易点通机器人-02】设计与技术选型
Community News——Congratulations to Dolphin Scheduling China User Group for 9 new "Community Administrators"
Understanding_Data_Types_in_Go









