|
Point Cloud Library (PCL) 1.15.1
|
MeshConstruction represents a base surface reconstruction class. More...
#include <pcl/surface/reconstruction.h>
Public Types | |
| using | Ptr = shared_ptr<MeshConstruction<PointInT> > |
| using | ConstPtr = shared_ptr<const MeshConstruction<PointInT> > |
| Public Types inherited from pcl::PCLSurfaceBase< PointInT > | |
| using | Ptr = shared_ptr<PCLSurfaceBase<PointInT> > |
| using | ConstPtr = shared_ptr<const PCLSurfaceBase<PointInT> > |
| using | KdTree = pcl::search::Search<PointInT> |
| using | KdTreePtr = typename KdTree::Ptr |
| Public Types inherited from pcl::PCLBase< PointInT > | |
| using | PointCloud |
| using | PointCloudPtr |
| using | PointCloudConstPtr |
| using | PointIndicesPtr |
| using | PointIndicesConstPtr |
Public Member Functions | |
| MeshConstruction ()=default | |
| Constructor. | |
| ~MeshConstruction () override=default | |
| Destructor. | |
| void | reconstruct (pcl::PolygonMesh &output) override |
| Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>. | |
| virtual void | reconstruct (std::vector< pcl::Vertices > &polygons) |
| Base method for mesh construction for all points given in <setInputCloud (), setIndices ()>. | |
| Public Member Functions inherited from pcl::PCLSurfaceBase< PointInT > | |
| PCLSurfaceBase () | |
| Empty constructor. | |
| ~PCLSurfaceBase () override=default | |
| Empty destructor. | |
| void | setSearchMethod (const KdTreePtr &tree) |
| Provide an optional pointer to a search object. | |
| KdTreePtr | getSearchMethod () |
| Get a pointer to the search method used. | |
| Public Member Functions inherited from pcl::PCLBase< PointInT > | |
| PCLBase () | |
| Empty constructor. | |
| PCLBase (const PCLBase &base) | |
| Copy constructor. | |
| virtual | ~PCLBase ()=default |
| Destructor. | |
| virtual void | setInputCloud (const PointCloudConstPtr &cloud) |
| Provide a pointer to the input dataset. | |
| PointCloudConstPtr const | getInputCloud () const |
| Get a pointer to the input point cloud dataset. | |
| virtual void | setIndices (const IndicesPtr &indices) |
| Provide a pointer to the vector of indices that represents the input data. | |
| virtual void | setIndices (const IndicesConstPtr &indices) |
| Provide a pointer to the vector of indices that represents the input data. | |
| virtual void | setIndices (const PointIndicesConstPtr &indices) |
| Provide a pointer to the vector of indices that represents the input data. | |
| virtual void | setIndices (std::size_t row_start, std::size_t col_start, std::size_t nb_rows, std::size_t nb_cols) |
| Set the indices for the points laying within an interest region of the point cloud. | |
| IndicesPtr | getIndices () |
| Get a pointer to the vector of indices used. | |
| IndicesConstPtr const | getIndices () const |
| Get a pointer to the vector of indices used. | |
| const PointInT & | operator[] (std::size_t pos) const |
| Override PointCloud operator[] to shorten code. | |
Protected Member Functions | |
| virtual void | performReconstruction (pcl::PolygonMesh &output)=0 |
| Abstract surface reconstruction method. | |
| virtual void | performReconstruction (std::vector< pcl::Vertices > &polygons)=0 |
| Abstract surface reconstruction method. | |
| Protected Member Functions inherited from pcl::PCLSurfaceBase< PointInT > | |
| virtual std::string | getClassName () const |
| Abstract class get name method. | |
| Protected Member Functions inherited from pcl::PCLBase< PointInT > | |
| bool | initCompute () |
| This method should get called before starting the actual computation. | |
| bool | deinitCompute () |
| This method should get called after finishing the actual computation. | |
Protected Attributes | |
| bool | check_tree_ {true} |
| A flag specifying whether or not the derived reconstruction algorithm needs the search object tree. | |
| Protected Attributes inherited from pcl::PCLSurfaceBase< PointInT > | |
| KdTreePtr | tree_ |
| A pointer to the spatial search object. | |
| Protected Attributes inherited from pcl::PCLBase< PointInT > | |
| PointCloudConstPtr | input_ |
| The input point cloud dataset. | |
| IndicesPtr | indices_ |
| A pointer to the vector of point indices to use. | |
| bool | use_indices_ |
| Set to true if point indices are used. | |
| bool | fake_indices_ |
| If no set of indices are given, we construct a set of fake indices that mimic the input PointCloud. | |
MeshConstruction represents a base surface reconstruction class.
All mesh constructing methods that take in a point cloud and generate a surface that uses the original data as vertices should inherit from this class.
Definition at line 186 of file reconstruction.h.
| using pcl::MeshConstruction< PointInT >::ConstPtr = shared_ptr<const MeshConstruction<PointInT> > |
Definition at line 190 of file reconstruction.h.
| using pcl::MeshConstruction< PointInT >::Ptr = shared_ptr<MeshConstruction<PointInT> > |
Definition at line 189 of file reconstruction.h.
|
default |
Constructor.
|
overridedefault |
Destructor.
|
protectedpure virtual |
Abstract surface reconstruction method.
| [out] | output | the output polygonal mesh |
Implemented in pcl::ConcaveHull< PointInT >, pcl::ConvexHull< PointInT >, and pcl::OrganizedFastMesh< PointInT >.
Referenced by reconstruct().
|
protectedpure virtual |
Abstract surface reconstruction method.
| [out] | polygons | the resultant polygons, as a set of vertices. The Vertices structure contains an array of point indices. |
Implemented in pcl::ConcaveHull< PointInT >, pcl::ConvexHull< PointInT >, and pcl::OrganizedFastMesh< PointInT >.
|
overridevirtual |
Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>.
| [out] | output | the resultant reconstructed surface model |
NOTE: passing in boost shared pointer with * as const& should be OK here
Implements pcl::PCLSurfaceBase< PointInT >.
Definition at line 132 of file reconstruction.hpp.
References pcl::PolygonMesh::cloud, pcl::PCLPointCloud2::data, pcl::PolygonMesh::header, pcl::PCLPointCloud2::height, pcl::PCLBase< PointInT >::initCompute(), pcl::PCLBase< PointInT >::input_, and pcl::PCLPointCloud2::width.
|
virtual |
Base method for mesh construction for all points given in <setInputCloud (), setIndices ()>.
| [out] | polygons | the resultant polygons, as a set of vertices. The Vertices structure contains an array of point indices. |
Definition at line 172 of file reconstruction.hpp.
References check_tree_, pcl::PCLBase< PointInT >::deinitCompute(), pcl::PCLBase< PointInT >::indices_, pcl::PCLBase< PointInT >::initCompute(), pcl::PCLBase< PointInT >::input_, performReconstruction(), and pcl::PCLSurfaceBase< PointInT >::tree_.
|
protected |
A flag specifying whether or not the derived reconstruction algorithm needs the search object tree.
Definition at line 228 of file reconstruction.h.
Referenced by pcl::OrganizedFastMesh< PointInT >::OrganizedFastMesh(), and reconstruct().