CGAL:hausdorff 距离错误分配
CGAL : hausdorff distance bad alloc
我正在尝试在 CGAL::Surface_mesh_3 数据结构网格上使用 approximate_Hausdorff_distance,但是经过 +- 30 秒的计算,我每次都得到错误的分配。两个网格包含不超过 2k 点
代码取自 PMP 示例:
std::cout << "Approximated Hausdorff distance: "
<< CGAL::Polygon_mesh_processing::approximate_Hausdorff_distance
<TAG>(mesh1, mesh2,
CGAL::Polygon_mesh_processing::parameters::number_of_points_per_area_unit(4000))
<< std::endl;
正如我在cgal-discuss 邮件列表上回复你的,问题可能是参数PMP::parameters::number_of_points_per_area_unit(4000)
,好像你的网格有很大的面积会产生很多点。如果不是这种情况,请 post a bug report 以便我们可以重现和修复。
我正在尝试在 CGAL::Surface_mesh_3 数据结构网格上使用 approximate_Hausdorff_distance,但是经过 +- 30 秒的计算,我每次都得到错误的分配。两个网格包含不超过 2k 点
代码取自 PMP 示例:
std::cout << "Approximated Hausdorff distance: "
<< CGAL::Polygon_mesh_processing::approximate_Hausdorff_distance
<TAG>(mesh1, mesh2,
CGAL::Polygon_mesh_processing::parameters::number_of_points_per_area_unit(4000))
<< std::endl;
正如我在cgal-discuss 邮件列表上回复你的,问题可能是参数PMP::parameters::number_of_points_per_area_unit(4000)
,好像你的网格有很大的面积会产生很多点。如果不是这种情况,请 post a bug report 以便我们可以重现和修复。