如何将Ceres链接到CGAL以使用平滑功能? [英] How to link Ceres to CGAL to use Smoothing functions?
问题描述
我已经构建了Ceres软件包及其依赖项,现在我正尝试使用CGAL库执行平滑操作,但是却遇到一个错误:基于区域的平滑处理需要ceres库".
I've built the Ceres package and its dependencies, now I'm trying to use the CGAL library to perform smoothing but I'm getting an error: "area-based smoothing requires ceres library".
我如何合并Ceres库?CGAL平滑示例未提及这一点,并且没有Ceres库中的任何包含项.
How am I to incorporate the Ceres library? The CGAL smoothing example doesn't mention this and does not have any includes from the Ceres library.
我在仅进行标头模式下使用CGAL而不进行编译,是否需要先编译CGAL?
I'm using CGAL in header-only mode without compilation, is it necessary to compile CGAL first?
推荐答案
在使用平滑的示例的cmake脚本中,您可以看到以下行:
In the cmake script of the examples using the smoothing, you can see the following line:
target_compile_definitions( mesh_smoothing_example PRIVATE CGAL_PMP_USE_CERES_SOLVER )
等价于在代码中添加 #define CGAL_PMP_USE_CERES_SOLVER
.
合理的原因是,如果cmake未找到该库,则该代码将被禁用.
The rational is that if the lib is not found by cmake, the code will be disabled.
我同意没有正确记录该文件.已经发布了一个问题/PR,以改善这种情况.
I agree that it is not correctly documented. An issue/PR has already been opened to improve the situation.
这篇关于如何将Ceres链接到CGAL以使用平滑功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!