Skip to content

Commit

Permalink
Merge pull request #1064 from taketwo/fix-1055
Browse files Browse the repository at this point in the history
Use PointCloudColorHandlerRGBAField for PointXYZRGBA clouds by default
  • Loading branch information
jspricke committed Jan 6, 2015
2 parents 1b5ec20 + 63b3993 commit 14ce14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visualization/include/pcl/visualization/pcl_visualizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ namespace pcl
addPointCloud (const pcl::PointCloud<pcl::PointXYZRGBA>::ConstPtr &cloud,
const std::string &id = "cloud", int viewport = 0)
{
pcl::visualization::PointCloudColorHandlerRGBField<pcl::PointXYZRGBA> color_handler (cloud);
pcl::visualization::PointCloudColorHandlerRGBAField<pcl::PointXYZRGBA> color_handler (cloud);
return (addPointCloud<pcl::PointXYZRGBA> (cloud, color_handler, id, viewport));
}

Expand Down Expand Up @@ -930,7 +930,7 @@ namespace pcl
updatePointCloud (const pcl::PointCloud<pcl::PointXYZRGBA>::ConstPtr &cloud,
const std::string &id = "cloud")
{
pcl::visualization::PointCloudColorHandlerRGBField<pcl::PointXYZRGBA> color_handler (cloud);
pcl::visualization::PointCloudColorHandlerRGBAField<pcl::PointXYZRGBA> color_handler (cloud);
return (updatePointCloud<pcl::PointXYZRGBA> (cloud, color_handler, id));
}

Expand Down

0 comments on commit 14ce14d

Please sign in to comment.