代码之家  ›  专栏  ›  技术社区  ›  Stéphane Laurent

基于区域的CGAL平滑已关闭,但未执行平滑

  •  0
  • Stéphane Laurent  · 技术社区  · 3 年前

    我或多或少地复制了 this CGAL example ,主要是除了

     PMP::smooth_mesh(mesh, PMP::parameters::number_of_iterations(nb_iterations)
                                             .use_safety_constraints(false) 
                                             .edge_is_constrained_map(eif));
    

    我将基于区域的平滑设置为false,因为我没有 谷神星 库:

      PMP::smooth_mesh(mesh,
                       PMP::parameters::number_of_iterations(niters)
                           .use_area_smoothing(false)
                           .use_Delaunay_flips(false)
                           .use_safety_constraints(false)
                           .edge_is_constrained_map(eif));
    

    但是,在尝试我的代码时,会抛出以下消息:

    基于区域的平滑需要Ceres库,而不是 可获得的将不进行此类平滑处理!

    我一开始就不明白 use_area_smoothing(false) .如何告诉CGAL我不想要基于区域的平滑?

    0 回复  |  直到 3 年前
        1
  •  2
  •   Mael    3 年前

    没有办法禁用它。这种过度冗长是一个错误,最近在以下拉取请求中修复了它: https://github.com/CGAL/cgal/pull/6502

    它将是即将发布的CGAL 5.5的一部分;在此之前,您可以在本地应用该修补程序。