Skip to content

Commit

Permalink
remove unnecessary comment
Browse files Browse the repository at this point in the history
Signed-off-by: a-maumau <[email protected]>
  • Loading branch information
a-maumau committed Jun 13, 2024
1 parent f8ce6ca commit e567388
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,6 @@ void push_back_contour(
pcl::PointCloud<pcl::PointXYZ> shrink_vertices(
const pcl::PointCloud<pcl::PointXYZ> & vertices, float rate)
{
// Eigen::Vector3f center = Eigen::Vector3f::Zero();
// for (const pcl::PointXYZ p : vertices) center += p.getVector3fMap();
Eigen::Vector3f center = std::accumulate(
vertices.begin(), vertices.end(), Eigen::Vector3f::Zero().eval(),
[](const Eigen::Vector3f& acc, const pcl::PointXYZ& p) { return acc + p.getVector3fMap(); }
Expand Down

0 comments on commit e567388

Please sign in to comment.