当前位置:网站首页>使用Meshlab对CAD模型采样点云,并在PCL中显示
使用Meshlab对CAD模型采样点云,并在PCL中显示
2022-06-11 05:54:00 【光电的一只菜鸡】
使用的版本为solidworks 2016+meshlab 2016.12+PCL 1.8.0
solidworks部分
绘制想要渲染成点云数据的模型
另存为的时候选择STL文件
mashlab部分
2.1 File->import mesh->保存的stl文件
选择ok
点击就可以看到模型的坐标系
2.2修改坐标系
Filters->normal, curvatures and orientation->transform:rotation(旋转)//translate, center, set origin(平移)
根据包围盒的坐标修改自己想要的坐标系
2.3蒙特卡诺滤波
Filters->sampling-> montecarlo sampling
保存的时候选择ply的点云格式 就可以使用PCL打开了
pcl::PointCloud<pcl::PointXYZ>::Ptr chip(new pcl::PointCloud<pcl::PointXYZ>);
if (pcl::io::loadPLYFile<pcl::PointXYZ>("1.ply", *chip) == -1) //* load the file
{
PCL_ERROR("Couldn't read file test_pcd.pcd \n");
return (-1);
}
else {
cout << "chip's size is" << chip->size() << endl;
}
边栏推荐
- Linux Installation redis
- Managing VHDS using batch
- NDK learning notes (x) POSIX socket for connectionless communication
- Installing MySQL for Linux
- Do we really need conference headphones?
- The artistic director and production designer of Disney's Mandalorian revealed the virtual scene production behind it
- What is a thread pool?
- Quartz2d drawing technology
- Detailed steps for installing mysql-5.6.16 64 bit green version
- Méthode de la partie du tableau
猜你喜欢

Error reporting injection of SQL injection

Do we really need conference headphones?

"All in one" is a platform to solve all needs, and the era of operation and maintenance monitoring 3.0 has come

Review Servlet

What should the cross-border e-commerce evaluation team do?

Control your phone with genymotion scratch

Do you know the functions of getbit and setbit in redis?

Super details to teach you how to use Jenkins to realize automatic jar package deployment

数据接入平台方案实现(游族网络)

Cocoatouch framework and building application interface
随机推荐
Get the value of program exit
AltiumDesigner2020导入3D Body-SOLIDWORKS三维模型
VSCode插件开发
Free get | full function version of version control software
ThymeleafEngine模板引擎
Sqli-libs range 23-24 filtration and secondary injection practice
Principle of copyonwritearraylist copy on write
数组部分方法
URL in flask_ for
NLP-D46-nlp比赛D15
[daily exercise] 217 Duplicate element exists
Array partial method
Metabase源码二次开发之Clojure 安装
Goodbye 2021 Hello 2022
Solution to slow connection speed of ojdbc under Linux system
Gilde failed to go to the listener to call back the reason record when loading the Gaussian blur image
修复【无 Internet, 安全】问题
qmake 实现QT工程pro脚本转vs解决方案
Installing MySQL for Linux
Global case | how an airline with a history of 100 years can expand and transform to promote innovation in the aviation industry