CGAL::pca_estimate_normals() estimates normal directions at all points of an input point set by linear least squares fitting of a plane over their k nearest neighbors. The result is an unoriented normal for each input point.
The output of the normal estimation algorithm highly depends on the k parameter. The number of neighbors controls the size of the point subset considered for plane fitting at each input point. As this parameter is application-specific we do not provide any default value. For noise-free point sets this value can be set to a small number, e.g., 18. Larger values (e.g., 30 or more) lead to smoother normal fields and are more time consuming. We thus recommend using them only for noisy data sets.
#include <CGAL/pca_estimate_normals.h>
| ||||||||
|
| |||||||
Estimates normal directions of the [first, beyond) range of points by linear least squares fitting of a plane over the k nearest neighbors. The output normals are randomly oriented.
|
CGAL::jet_estimate_normals
CGAL::mst_orient_normals
See normals_example.cpp.