当前位置:网站首页>Use meshlab to sample the point cloud of CAD model and display it in PCL
Use meshlab to sample the point cloud of CAD model and display it in PCL
2022-06-11 06:16:00 【A vegetable chicken of photoelectricity】
The version used is solidworks 2016+meshlab 2016.12+PCL 1.8.0
solidworks part
Draw the model you want to render as point cloud data
Select when saving as STL file
mashlab part
2.1 File->import mesh-> The saved stl file
choice ok
Click to see the coordinate system of the model
2.2 Modify the coordinate system
Filters->normal, curvatures and orientation->transform:rotation( rotate )//translate, center, set origin( translation )
Modify the coordinate system you want according to the coordinates of the bounding box
2.3 Monte Carlo filter
Filters->sampling-> montecarlo sampling
When saving, choose ply Point cloud format for You can use PCL Open the
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;
}
边栏推荐
- What is a planning BOM?
- A multi classification model suitable for discrete value classification -- softmax regression
- How to use perforce helix core with CI build server
- Qmake implementation of QT project Pro script to vs solution
- Can Amazon, express, lazada and shrimp skin platforms use the 911+vm environment to carry out production number, maintenance number, supplement order and other operations?
- All questions and answers of database SQL practice niuke.com
- Summarize the five most common BlockingQueue features
- 11. Gesture recognition
- This point of arrow function
- Eureka集群搭建
猜你喜欢

The artistic director and production designer of Disney's Mandalorian revealed the virtual scene production behind it

ThymeleafEngine模板引擎

Free get | full function version of version control software

Squid agent

Shandong University machine learning experiment VI k-means

C语言大战“扫雷”

Verilog realizes binocular camera image data acquisition and Modelsim simulation, and finally matlab performs image display

Login and registration based on servlet, JSP and MySQL

Sqoop installation tutorial

Pycharm usage experience
随机推荐
FPGA Design -- ping pong operation implementation and Modelsim simulation
jenkins-不同风格的项目构建
URL in flask_ for
Sword finger offer 50: the first character that appears only once
[must see for game development] 3-step configuration p4ignore + wonderful Q & A analysis (reprinted from user articles)
jenkins-凭证管理
"All in one" is a platform to solve all needs, and the era of operation and maintenance monitoring 3.0 has come
FPGA设计中提高工作频率及降低功耗题目合集
[daily exercise] 217 Duplicate element exists
C语言大战“扫雷”
[reading this article is enough!!! Easy to understand] confidence level understanding (95% confidence level and confidence interval)
Chapter 2 of machine learning [series] logistic regression model
go的fmt包使用和字符串的格式化
Stock K-line drawing
“All in ONE”一个平台解决所有需求,运维监控3.0时代已来
[usual practice] explore the insertion position
Graphsage paper reading
autojs,读取一行删除一行,停止自己外的脚本
Array partial method
The classification effect of converting video classification data set to picture classification data set on vgg16