42#include <pcl/pcl_base.h>
43#include <pcl/PolygonMesh.h>
44#include <pcl/search/search.h>
58 template <
typename Po
intInT>
116 template <
typename Po
intInT>
151 std::vector<pcl::Vertices> &polygons);
170 std::vector<pcl::Vertices> &polygons) = 0;
185 template <
typename Po
intInT>
223 reconstruct (std::vector<pcl::Vertices> &polygons);
244#include <pcl/surface/impl/reconstruction.hpp>
Iterator class for point clouds with or without given indices.
MeshConstruction represents a base surface reconstruction class.
MeshConstruction()
Constructor.
virtual void performReconstruction(pcl::PolygonMesh &output)=0
Abstract surface reconstruction method.
void reconstruct(pcl::PolygonMesh &output) override
Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>
virtual void performReconstruction(std::vector< pcl::Vertices > &polygons)=0
Abstract surface reconstruction method.
~MeshConstruction()
Destructor.
bool check_tree_
A flag specifying whether or not the derived reconstruction algorithm needs the search object tree.
PointCloudConstPtr input_
The input point cloud dataset.
IndicesPtr indices_
A pointer to the vector of point indices to use.
bool initCompute()
This method should get called before starting the actual computation.
bool deinitCompute()
This method should get called after finishing the actual computation.
typename KdTree::Ptr KdTreePtr
KdTreePtr getSearchMethod()
Get a pointer to the search method used.
KdTreePtr tree_
A pointer to the spatial search object.
virtual std::string getClassName() const
Abstract class get name method.
PCLSurfaceBase()
Empty constructor.
~PCLSurfaceBase()
Empty destructor.
virtual void reconstruct(pcl::PolygonMesh &output)=0
Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>
void setSearchMethod(const KdTreePtr &tree)
Provide an optional pointer to a search object.
SurfaceReconstruction represents a base surface reconstruction class.
virtual void performReconstruction(pcl::PolygonMesh &output)=0
Abstract surface reconstruction method.
bool check_tree_
A flag specifying whether or not the derived reconstruction algorithm needs the search object tree.
void reconstruct(pcl::PolygonMesh &output) override
Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>
~SurfaceReconstruction()
Destructor.
SurfaceReconstruction()
Constructor.
virtual void performReconstruction(pcl::PointCloud< PointInT > &points, std::vector< pcl::Vertices > &polygons)=0
Abstract surface reconstruction method.
shared_ptr< pcl::search::Search< PointInT > > Ptr