当前位置:网站首页>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.
边栏推荐
猜你喜欢
随机推荐
SYM32——RTC实时时钟程序讲解
Appium进行APP自动化测试
scala 基础篇
const修饰的指针变量(详解)
fastposter v2.9.1 programmer must-have poster generator
阿里五位MySQL封神大佬耗17个月总结出53章性能优化法则
TestLink导出用例转换工具
PyTorch multi-machine multi-card training: DDP combat and skills
电商秒杀项目收获(二)
领域驱动模型设计与微服务架构落地-从项目去剖析领域驱动
老板加薪!看我做的WPF Loading!!!
Custom picker scroll selector style
scala集合
SWIG教程《四》-go语言的封装
10 advanced functions of scala
redhat替换yum源时redhat.repo无法删除或无法禁用的问题解决方法
MySQL Principle and Optimization: Update Optimization
640. Solving Equations: Simple Simulation Problems
司空见惯 - 股市狠狠下跌后,何時能反弹?
E. Cross Swapping(并查集变形/好题)