Potree的基本使用和示例文件包

1.什么是Potree?用来干啥?

Potree 是基于 WebGL 的开源大规模点云渲染器

是一套开源的系统,基于Three.js,对点云数据进行了多尺度的管理,在数据传输和可视化上都做了优化。官网地址,简单的说就是加载大规模电云的。

2.怎么使用Potree。如何应用Potree到项目中

百度网盘示例自取,因为是HTML网页要直接打开就得时候火狐浏览器并配置跨域,不然就直接丢到服务里面去。

链接:https://pan.baidu.com/s/1Mt57A--mtVPnOSrLv4QBCw
提取码:tree

复制这段内容后打开百度网盘手机App,操作更方便哦

点开examples下的page.html,

 

随意选取一个点云即可查看效果

3。Potree中使用测距测面工具

1
2
3
var measuringTool = viewer.measuringTool;
var profileTool = viewer.profileTool;
var volumeTool = viewer.volumeTool;

   1,角度计算

        // measuringTool.startInsertion({  // 角度计算
        //     showDistances: false,
        //     showAngles: true,
        //     showArea: false,
        //     closed: true,
        //     maxMarkers: 3,
        //     name: 'Angle'
        // }

2,位置获取

复制代码
        // measuringTool.startInsertion({  // 位置获取
        //     showDistances: false,
        //     showAngles: false,
        //     showCoordinates: true,
        //     showArea: false,
        //     closed: true,
        //     maxMarkers: 1,
        //     name: 'Point'
        // });
复制代码

 

 

 3.测距

        // measuringTool.startInsertion({  // 测距
        //     showDistances: true,
        //     showArea: false,
        //     closed: false,
        //     name: 'Distance'
        // });

 

 

 4, 测高

1
2
3
4
5
6
7
8
// measuringTool.startInsertion({  // 测高
//  showDistances: false,
//  showHeight: true,
//  showArea: false,
//  closed: false,
//  maxMarkers: 2,
//  name: 'Height'
// });

  

 

 

 5,画圆

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// measuringTool.startInsertion({  // 三点画圆
//  showDistances: false,
//  showHeight: false,
//  showArea: false,
//  showCircle: true,
//  showEdges: false,
//  closed: false,
//  maxMarkers: 3,
//  name: 'Circle'
// });
// measuringTool.startInsertion({  // 弧度画圆
//  showDistances: false,
//  showHeight: false,
//  showArea: false,
//  showCircle: false,
//  showEdges: false,
//  showAzimuth: true,
//  closed: false,
//  maxMarkers: 2,
//  name: 'Azimuth'
// });

  

 

 6,测面积

1
2
3
4
5
6
// measuringTool.startInsertion({  // 测面
//  showDistances: true,
//  showArea: true,
//  closed: true,
//  name: 'Area'
// });

  

 

 7.画路径

profileTool.startInsertion(); // 路径

 

 8,清除所用元素

1
viewer.scene.removeAllMeasurements();

  

posted @   fanjiajia  阅读(4168)  评论(0编辑  收藏  举报
编辑推荐:
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
点击右上角即可分享
微信分享提示