#include<iostream>
#include<open3d/Open3D.h>
int main()
{
open3d::visualization::Visualizer visuslizer;
std::string path = "smmf.ply";
std::shared_ptr<open3d::geometry::PointCloud>pointcloud = open3d::io::CreatePointCloudFromFile(path);
if (!pointcloud)
{
printf("failed to load pointcloud\n");
return -1;
}
visuslizer.CreateVisualizerWindow("open3D", 640, 480);
visuslizer.AddGeometry(pointcloud);
visuslizer.Run();
visuslizer.DestroyVisualizerWindow();
return 0;
}
Open3D 读取显示点云
最新推荐文章于 2024-09-10 09:10:34 发布