CGAL::compute_average_spacing

转自:http://www.cgal.org/Manual/latest/doc_html/cgal_manual/Point_set_processing_3_ref/Function_compute_average_spacing.html#Cross_link_anchor_1647

Definition

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>

template<typename InputIterator, typename PointPMap, typename Kernel>
Kernel::FT
compute_average_spacing ( InputIterator first,
InputIterator beyond,
PointPMap point_pmap,
unsigned int k,
Kernel kernel)
    Computes average spacing from k nearest neighbors.
Precondition:  k >= 2.
Template Parameters: 
InputIterator: iterator over input points. PointPMap: is a model of boost::ReadablePropertyMap with a value_type = Point_3<Kernel>. It can be omitted if InputIterator value_type is convertible to Point_3<Kernel>. Kernel: Geometric traits class. It can be omitted and deduced automatically from PointPMap value_type.
Returns:  average spacing (scalar).
Parameters: 
first: iterator over the first input point. beyond: past-the-end iterator over the input points. point_pmap: property map InputIterator -> Point_3. k: number of neighbors. kernel: geometric traits.

Example

See average_spacing_example.cpp.

 

阅读更多
个人分类: CGAL
上一篇CGAL::Poisson_reconstruction_function&lt;GeomTraits&gt;
下一篇Surface_3
想对作者说点什么? 我来说一句

CGAL 参考手册(PDF版本)

2012年01月20日 32.9MB 下载

cgal学习手册

2012年07月06日 21.93MB 下载

没有更多推荐了,返回首页

关闭
关闭