> I have a plane (estimated with pcl::SACSegmentation<pcl::PointXYZ>) and I
> want to draw a part of this plane. I have the upper left und the lower right
> point for the rectangle.
> I found no function to draw directly a rectangle into a
> Is there an easy way to draw a rectangle? It would be nice to color it with
> RGBA, but this is just nice to have.
> And is there an easy way to give a line not just rgb but also an alpha
> View this message in context: http://www.pcl-users.org/Draw-Rectangle-in-PCLVisalizer-tp4028107.html > Sent from the Point Cloud Library (PCL) Users mailing list mailing list archive at Nabble.com.
> [hidden email] / http://pointclouds.org > http://pointclouds.org/mailman/listinfo/pcl-users >
Now I tried addPolygon and addCube. Both don't do what I need.
I don't understand why you can give model coefficients to the polygon when you also need contours.
There is a bug in the visualisation. I draw a rectangle (Edges are 1/1, 1/-1, -1/1, -1/-1, z-position is 1) and look from it along the positive z-axis, then one line is missing. When I rotate and look along the z-axis in negative direction, the rectangle is displayed correct.
Both methods (polygon or cube with z_min == z_max) only draw the contours. Is it possible to draw a filled polygon?