cgal泊​​松表面重建

时间:2018-09-07 17:52:11

标签: computational-geometry cgal

我在Linux上使用sudo apt-get install libcgal-dev安装了CGAL。 编译时,即使所有其他与CGAL相关的标头都正常加载,我仍然收到错误fatal error: CGAL/poisson_surface_reconstruction.h: No such file or directory

在liccgal-dev中不包括泊松表面重建吗?谁能建议将点云转换为多面体网格的替代方法?

下面显示了我使用的所有标头(没有泊松曲面重建,其余标头都很好编译)

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <CGAL/poisson_surface_reconstruction.h>

` 下面是我的CMakeLists.txt:

`     cmake_minimum_required(版本2.8.3)     项目(mapless_oa)

## Compile as C++11, supported in ROS Kinetic and newer
add_compile_options(-std=c++11)

## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
geometry_msgs
roscpp
rospy
sensor_msgs
std_msgs
laser_geometry
tf
pcl_ros
)

catkin_package(
#  INCLUDE_DIRS include
#  LIBRARIES mapless_oa
#  CATKIN_DEPENDS geometry_msgs roscpp rospy sensor_msgs std_msgs
#  DEPENDS system_lib
)

###########
## Build ##
###########

## Specify additional locations of header files
## Your package locations should be listed before other locations
include_directories(
# include
  ${catkin_INCLUDE_DIRS}
)
add_executable(laser2pc src/laser2pc.cpp)
add_executable(ptcld2convex src/ptcld2convex.cpp )

target_link_libraries(laser2pc ${catkin_LIBRARIES})
target_link_libraries(ptcld2convex ${catkin_LIBRARIES} CGAL gmp mpfr)

} `

0 个答案:

没有答案
相关问题