PointCloudLibrary / PointCloudLibrary/pcl
problems about using PCLVisualizer to display polygons
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 11.1k
- Forks
- 4.7k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 6
Description
I'd like to use addpolygon() to show planar patches. An certain polygon surface can display but after some rotation it will disappear. I also tried to use addplane() and got the same result.
Your Environment
- Operating System and version: Ubuntu 16.04
- Compiler:gcc 7.0
- PCL Version:1.7
Context
Expected Behavior
Current Behavior
Code to Reproduce
pcl::visualization::PCLVisualizer pViewer("planes");
pViewer.addCoordinateSystem (1.0);
Eigen::Vector4f planarCoeff(p.plane.normal()(0), p.plane.normal()(1), p.plane.normal()(2), p.plane.offset());
pcl::PlanarPolygonpcl::PointXYZ planeHull(hull.points, planarCoeff);
std::string planeName = "polygon";
pViewer.addPolygonpcl::PointXYZ(hull.makeShared(), dist(rd)%255, dist(rd)%255, dist(rd)%255, planeName);
pViewer.setShapeRenderingProperties(pcl::visualization::PCL_VISUALIZER_REPRESENTATION, pcl::visualization::PCL_VISUALIZER_REPRESENTATION_SURFACE, planeName);
pViewer.setShapeRenderingProperties(pcl::visualization::PCL_VISUALIZER_OPACITY, 1.0, planeName);
Possible Solution
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the supplied PCLVisualizer snippet, especially addPolygon and addPlane, and reproduce the disappearing planar surface on Ubuntu 16.04 with PCL 1.7 and gcc 7.0. Investigate why rotation makes the polygon disappear; done when the cause is identified and the behavior is corrected or its limitation is documented.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-vision
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100