-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Open
Labels
kind: bugType of issueType of issuemodule: surfaceneeds: feedbackSpecify why not closed/merged yetSpecify why not closed/merged yet
Description
Describe the bug
I use GreedyProjectionTriangulation to create trainglular mesh from a point cloud. However, there are many triangles' normal direction are in opposite direction compared to the others. I have try to change input parameters but it always has the same issue.
Context
try to reconstruct surface from a scanning point cloud.
Expected behavior
All traingles' normal direction should be consistent in reconstructed mesh.
Current Behavior
Many triangles' normal direction are in opposite direction compared to the others.
What happens instead of the expected behavior?
To Reproduce
- load surf_moving.pcd in attached zip file.
- The point cloud is point normal cloud.
- use the code snippets for GreedyProjectionTriangulation
- The result is shown as surf_moving.ply
Screenshots/Code snippets
pcl::GreedyProjectionTriangulation<pcl::PointNormal> gp3;
pcl::PolygonMesh mesh;
gp3.setMu(2.5);
gp3.setMaximumNearestNeighbors(100);
gp3.setMaximumSurfaceAngle(M_PI / 4); // 45 degrees
gp3.setMinimumAngle(M_PI / 18); // 10 degrees
gp3.setMaximumAngle(2 * M_PI / 3); // 120 degrees
gp3.setNormalConsistency(false);
gp3.setInputCloud(cloud_normals);
gp3.setSearchMethod(tree);
gp3.reconstruct(mesh);
Your Environment (please complete the following information):
- OS: Windows 10
- Compiler: Visual Studio 2017 C++
- PCL Version 1.9
Metadata
Metadata
Assignees
Labels
kind: bugType of issueType of issuemodule: surfaceneeds: feedbackSpecify why not closed/merged yetSpecify why not closed/merged yet