Skip to content

Instantly share code, notes, and snippets.

@CMun
CMun / Patch (workaround) for normal_3d.h
Created April 3, 2014 09:19
Patch and test data for PCL issue "Wrong normal estimation under certain circumstances"
Index: normal_3d.h
===================================================================
--- normal_3d.h (revision 8666)
+++ normal_3d.h (working copy)
@@ -268,8 +268,12 @@
computePointNormal (const pcl::PointCloud<PointInT> &cloud, const std::vector<int> &indices,
float &nx, float &ny, float &nz, float &curvature)
{
+ compute3DCentroid (cloud, indices, xyz_centroid_);
+