+ do pcl components checks
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user