1.安装cmake
快速通道:
链接:https://pan.baidu.com/s/1gZYAlGRRj4UVGgaTBaZXjg?pwd=1klo
提取码:1klo
--来自百度网盘超级会员V4的分享
![](https://img-blog.csdnimg.cn/img_convert/d8ec7b9e85417585f419aea3ddb5dbf7.png)
![](https://img-blog.csdnimg.cn/img_convert/ad8f102b63ab43cb81d9d4bdcb9d81ce.png)
![](https://img-blog.csdnimg.cn/img_convert/bec6d3384abb50b669f619a07c5dcde6.png)
![](https://img-blog.csdnimg.cn/img_convert/90e49b1d2dda1762b50a2734599985e6.png)
警告不用管
![](https://img-blog.csdnimg.cn/img_convert/f4afcbc3ee95e268de568c884b99d223.png)
![](https://img-blog.csdnimg.cn/img_convert/3ea9928ebca8812c6738084b36a3cb32.png)
![](https://img-blog.csdnimg.cn/img_convert/74e574b9cb78fdfd4213d1f60f13bc09.png)
![](https://img-blog.csdnimg.cn/img_convert/6adc0bdf15740abc5e450474b10d6730.png)
编译中
![](https://img-blog.csdnimg.cn/img_convert/745e205185daab13d3f6f50f2f438bd7.png)
成功就是61
![](https://img-blog.csdnimg.cn/img_convert/6af1c2c248ad8553582aa0eb876eccf4.png)
![](https://img-blog.csdnimg.cn/img_convert/c49d4c30fc0b8e24ea4e2f1b3cab7892.png)
![](https://img-blog.csdnimg.cn/img_convert/8a3a9ad18c10e2e0c0d7864246524192.png)
开始配置 cmake 那时候选的路径
![](https://img-blog.csdnimg.cn/img_convert/8612608796595c392649a60912aa6def.png)
![](https://img-blog.csdnimg.cn/img_convert/1bcd95cc0faf6aee35a0897bb4a46a99.png)
![](https://img-blog.csdnimg.cn/img_convert/133d2e1b509d83d469f384fb3a9e37bd.png)
glew.lib
glfw3.lib
jsoncpp.lib
Open3D.lib
png.lib
qhullcpp.lib
qhullstatic_r.lib
tinyfiledialogs.lib
tinyobjloader.lib
turbojpeg-static.lib
zlib.lib
OpenGL32.lib
![](https://img-blog.csdnimg.cn/img_convert/d14e14237ac3914675a19ae7460c513b.png)
![](https://img-blog.csdnimg.cn/img_convert/5334a5ae1a4ac3c2f3b3951a81a90d0c.png)
#include <iostream>
#include <random>
#include <Open3D/Open3D.h>
using namespace std;
int main(int argc, char* argv[])
{
// -------------------------生成点云-----------------------------
auto noise_cloud = std::make_shared<open3d::geometry::PointCloud>();
int N = 10000;
noise_cloud->points_.resize(N);
std::normal_distribution<> norm{ 0, 0.002 };
std::random_device rd;
std::default_random_engine rng{ rd() };
for (size_t i = 0; i < N; ++i)
{
noise_cloud->points_[i][0] = norm(rng);
noise_cloud->points_[i][1] = norm(rng);
noise_cloud->points_[i][2] = norm(rng);
}
open3d::io::WritePointCloudToPCD("Gaiss_noise.pcd", *noise_cloud, false);
open3d::visualization::DrawGeometries({ noise_cloud }, "PointCloud", 1600, 900);
return 0;
}
快速通道:
链接:https://pan.baidu.com/s/1BnIJEaCKa_gGj37iRJkzsA?pwd=2ov2
提取码:2ov2
--来自百度网盘超级会员V4的分享