CGAL::compute_average_spacing() computes the average spacing of all points from the input set to their k nearest neighbors. This value depends on the k parameter which can be set to 6 for isotropically sampled surfaces.
#include <CGAL/compute_average_spacing.h>
| ||||||||||
|
| |||||||||
Computes average spacing from k nearest neighbors.
|
See average_spacing_example.cpp.