为什么estimate_global_k_neighbor_scale()确定的global k scale是6?

问题描述 投票:0回答:0
typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel;
typedef Kernel::FT FT;
typedef Kernel::Point_3 Point_3;
//populate points. The code is skipped for brevity.  
std::size_t k_scale = CGAL::estimate_global_k_neighbor_scale(points);

我的输入点如下所示。

0 0 0
1 0 0
2 0 0
3 0 0
4 0 0
5 0 0
6 0 0
7 0 0
8 0 0
9 0 0

k scale 的值为6。我的理解是k_scale 只是表示曲线/曲面所必需的邻居数。由于这是一条直线,我期待 1 或 2(如果包括当前点)。我认为它可能正在寻找一个表面,因为输入是 3d 点。所以,我调用了 2d 点的方法,结果仍然是 6.

cgal
© www.soinside.com 2019 - 2024. All rights reserved.