43 #ifndef PCL_CONCAVE_HULL_H
44 #define PCL_CONCAVE_HULL_H
55 template<
typename Po
intInT>
56 class ConcaveHull :
public MeshConstruction<PointInT>
59 using PCLBase<PointInT>::input_;
60 using PCLBase<PointInT>::indices_;
61 using PCLBase<PointInT>::initCompute;
62 using PCLBase<PointInT>::deinitCompute;
65 using MeshConstruction<PointInT>::reconstruct;
72 ConcaveHull () : alpha_ (0), keep_information_ (false), voronoi_centers_ (), dim_(0)
84 std::vector<pcl::Vertices> &polygons);
99 setAlpha (
double alpha)
117 voronoi_centers_ = voronoi_centers;
125 setKeepInformation (
bool value)
127 keep_information_ = value;
139 getDimension ()
const
148 setDimension (
int dimension)
150 if ((dimension == 2) || (dimension == 3))
153 PCL_ERROR (
"[pcl::%s::setDimension] Invalid input dimension specified!\n", getClassName ().c_str ());
159 getClassName ()
const
161 return (
"ConcaveHull");
173 std::vector<pcl::Vertices> &polygons);
176 performReconstruction (PolygonMesh &output);
179 performReconstruction (std::vector<pcl::Vertices> &polygons);
189 bool keep_information_;
199 #endif //#ifndef PCL_CONCAVE_HULL