+ do pcl components checks

This commit is contained in:
wmayer
2014-08-28 01:51:58 +02:00
parent c043ec75d9
commit 3fd87a62b4
6 changed files with 40 additions and 24 deletions

View File

@@ -79,7 +79,7 @@ static PyObject * approxSurface(PyObject *self, PyObject *args)
} PY_CATCH;
}
#if defined(PCL_FOUND)
#if defined(HAVE_PCL_SURFACE)
static PyObject *
triangulate(PyObject *self, PyObject *args)
{
@@ -101,7 +101,7 @@ triangulate(PyObject *self, PyObject *args)
/* registration table */
struct PyMethodDef ReverseEngineering_methods[] = {
{"approxSurface" , approxSurface, 1},
#if defined(PCL_FOUND)
#if defined(HAVE_PCL_SURFACE)
{"triangulate" , triangulate, 1},
#endif
{NULL, NULL} /* end of table marker */

View File

@@ -4,9 +4,9 @@ else(MSVC)
add_definitions(-DHAVE_LIMITS_H -DHAVE_CONFIG_H)
endif(MSVC)
if (PCL_FOUND)
add_definitions(-DPCL_FOUND)
endif(PCL_FOUND)
if (PCL_SURFACE_FOUND AND PCL_FEATURES_FOUND AND PCL_KDTREE_FOUND)
add_definitions(-DHAVE_PCL_SURFACE)
endif ()
include_directories(
${CMAKE_SOURCE_DIR}/src

View File

@@ -30,7 +30,7 @@
#include <Mod/Mesh/App/Core/MeshKernel.h>
// http://svn.pointclouds.org/pcl/tags/pcl-1.5.1/test/
#if defined(PCL_FOUND)
#if defined(HAVE_PCL_SURFACE)
#include <pcl/pcl_config.h>
#include <pcl/point_types.h>
#include <pcl/features/normal_3d.h>
@@ -165,5 +165,5 @@ void SurfaceTriangulation::perform()
//std::vector<int> states = gp3.getPointStates();
}
#endif // PCL_FOUND
#endif // HAVE_PCL_SURFACE