Potree的基本使用和示例文件包
1.什么是Potree?用来干啥?
Potree 是基于 WebGL 的开源大规模点云渲染器
是一套开源的系统,基于Three.js,对点云数据进行了多尺度的管理,在数据传输和可视化上都做了优化。官网地址,简单的说就是加载大规模电云的。
2.怎么使用Potree。如何应用Potree到项目中
百度网盘示例自取,因为是HTML网页要直接打开就得时候火狐浏览器并配置跨域,不然就直接丢到服务里面去。
链接: https://pan.baidu.com/s/1PWMOyU8WHfj7KZCPmXAM3Q 提取码: 8a96 复制这段内容后打开百度网盘手机App,操作更方便哦
点开examples下的page.html,
随意选取一个点云即可查看效果
3。Potree中使用测距测面工具
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, 测高
// measuringTool.startInsertion({ // 测高 // showDistances: false, // showHeight: true, // showArea: false, // closed: false, // maxMarkers: 2, // name: 'Height' // });
5,画圆
// 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,测面积
// measuringTool.startInsertion({ // 测面 // showDistances: true, // showArea: true, // closed: true, // name: 'Area' // });
7.画路径
profileTool.startInsertion(); // 路径
8,清除所用元素
viewer.scene.removeAllMeasurements();