CGAL:Hausdorff距离不良Alloc



我试图在cgal :: surface_mesh_3数据结构网格上使用近似值_hausdorff_distance,但是在计算的 -30秒后,我每次都会得到糟糕的Alloc。两个网格都包含不超过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邮件列表中回复您时,问题可能是Paramater PMP::parameters::number_of_points_per_area_unit(4000),好像您的网格有一个巨大的区域,会生成很多点。如果不是这种情况,请发布错误报告,以便我们可以复制和修复。

最新更新