don't filter point cloud when estimating normals to avoid mismatch of number of points and normals

This commit is contained in:
wmayer
2017-08-24 13:05:21 +02:00
parent 51c776fec5
commit e96189c110
2 changed files with 20 additions and 2 deletions

View File

@@ -114,7 +114,22 @@ public:
"filterVoxelGrid(dim)."
);
add_keyword_method("normalEstimation",&Module::normalEstimation,
"normalEstimation(Points)."
"normalEstimation(Points,[KSearch=0, SearchRadius=0]) -> Normals\n"
"KSearch is an int and used to search the k-nearest neighbours in\n"
"the k-d tree. Alternatively, SearchRadius (a float) can be used\n"
"as spatial distance to determine the neighbours of a point\n"
"Example:\n"
"\n"
"import ReverseEngineering as Reen\n"
"pts=App.ActiveDocument.ActiveObject.Points\n"
"nor=Reen.normalEstimation(pts,KSearch=5)\n"
"\n"
"f=App.ActiveDocument.addObject('Points::FeaturePython','Normals')\n"
"f.addProperty('Points::PropertyNormalList','Normal')\n"
"f.Points=pts\n"
"f.Normal=nor\n"
"f.ViewObject.Proxy=0\n"
"f.ViewObject.DisplayMode=1\n"
);
#endif
#if defined(HAVE_PCL_SEGMENTATION)