-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
Description
Hi,
I would like to reopen issue 969 (http://dev.pointclouds.org/issues/969) regarding the
choice of a color interpolation method for PolygonMesh (not flat as default).
The solution proposed by Alexandru to use
setShapeRenderingProperties(pcl::visualization::PCL_VISUALIZER_SHADING, pcl::visualization::PCL_VISUALIZER_SHADING_PHONG, "my_mesh_id");
does not work with a PolygonMesh.
The ID of a PolygonMesh is not added to the attribute shape_actor_map_ of PCLVisualizer when addPolygonMesh
is called, and thus when calling setShapeRenderingProperties
the function quit with error message
"[setShapeRenderingProperties] Could not find any shape with id <%s>" in pcl/visualization/src/pcl_visualizer.cpp line 1435.
Is there a reason why the id of a PolygonMesh is added to the attribute cloud_actor_map_
and not shape_actor_map_
?
(cf. addPolygonMesh in pcl/visualization/include/pcl/visualization/impl/pcl_visualizer.hpp line 1514)
Thanks,
Romain Brégier