pcl::MeshConstruction< PointInT > Class Template Reference
[Module surface]

MeshConstruction represents a base surface reconstruction class. More...

#include <pcl/surface/reconstruction.h>

Inheritance diagram for pcl::MeshConstruction< PointInT >:
Inheritance graph
[legend]
Collaboration diagram for pcl::MeshConstruction< PointInT >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef boost::shared_ptr
< MeshConstruction< PointInT > > 
Ptr
typedef boost::shared_ptr
< const MeshConstruction
< PointInT > > 
ConstPtr

Public Member Functions

 MeshConstruction ()
 Constructor.
virtual ~MeshConstruction ()
 Destructor.
virtual void reconstruct (pcl::PolygonMesh &output)
 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 ()>.

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 Attributes

bool check_tree_
 A flag specifying whether or not the derived reconstruction algorithm needs the search object tree.

Detailed Description

template<typename PointInT>
class pcl::MeshConstruction< PointInT >

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.

Note:
Reconstruction methods that generate a new surface or create new vertices in locations different than the input data should inherit from SurfaceReconstruction.
Author:
Radu B. Rusu, Michael Dixon, Alexandru E. Ichim

Definition at line 188 of file reconstruction.h.


Member Typedef Documentation

template<typename PointInT >
typedef boost::shared_ptr<const MeshConstruction<PointInT> > pcl::MeshConstruction< PointInT >::ConstPtr
template<typename PointInT >
typedef boost::shared_ptr<MeshConstruction<PointInT> > pcl::MeshConstruction< PointInT >::Ptr

Constructor & Destructor Documentation

template<typename PointInT >
pcl::MeshConstruction< PointInT >::MeshConstruction (  )  [inline]

Constructor.

Definition at line 202 of file reconstruction.h.

template<typename PointInT >
virtual pcl::MeshConstruction< PointInT >::~MeshConstruction (  )  [inline, virtual]

Destructor.

Definition at line 205 of file reconstruction.h.


Member Function Documentation

template<typename PointInT >
virtual void pcl::MeshConstruction< PointInT >::performReconstruction ( std::vector< pcl::Vertices > &  polygons  )  [protected, pure virtual]

Abstract surface reconstruction method.

Parameters:
[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 >.

template<typename PointInT >
virtual void pcl::MeshConstruction< PointInT >::performReconstruction ( pcl::PolygonMesh output  )  [protected, pure virtual]

Abstract surface reconstruction method.

Parameters:
[out] output the output polygonal mesh

Implemented in pcl::ConcaveHull< PointInT >, pcl::ConvexHull< PointInT >, and pcl::OrganizedFastMesh< PointInT >.

Referenced by pcl::MeshConstruction< PointInT >::reconstruct().

template<typename PointInT >
void pcl::MeshConstruction< PointInT >::reconstruct ( std::vector< pcl::Vertices > &  polygons  )  [inline, virtual]

Base method for mesh construction for all points given in <setInputCloud (), setIndices ()>.

Parameters:
[out] polygons the resultant polygons, as a set of vertices. The Vertices structure contains an array of point indices.

Definition at line 166 of file reconstruction.hpp.

References pcl::MeshConstruction< PointInT >::check_tree_, pcl::PCLBase< PointInT >::deinitCompute(), pcl::PCLBase< PointInT >::indices_, pcl::PCLBase< PointInT >::initCompute(), pcl::PCLBase< PointInT >::input_, pcl::MeshConstruction< PointInT >::performReconstruction(), and pcl::PCLSurfaceBase< PointInT >::tree_.

template<typename PointInT >
void pcl::MeshConstruction< PointInT >::reconstruct ( pcl::PolygonMesh output  )  [inline, virtual]

Base method for surface reconstruction for all points given in <setInputCloud (), setIndices ()>.

Parameters:
[out] output the resultant reconstructed surface model
Note:
This method copies the input point cloud data from PointCloud<T> to PCLPointCloud2, and is implemented here for backwards compatibility only!

NOTE: passing in boost shared pointer with * as const& should be OK here

Implements pcl::PCLSurfaceBase< PointInT >.

Definition at line 126 of file reconstruction.hpp.

References pcl::MeshConstruction< PointInT >::check_tree_, pcl::PolygonMesh::cloud, pcl::PCLPointCloud2::data, pcl::PCLBase< PointInT >::deinitCompute(), pcl::PolygonMesh::header, pcl::PCLPointCloud2::height, pcl::PCLBase< PointInT >::indices_, pcl::PCLBase< PointInT >::initCompute(), pcl::PCLBase< PointInT >::input_, pcl::MeshConstruction< PointInT >::performReconstruction(), pcl::PolygonMesh::polygons, pcl::toPCLPointCloud2(), pcl::PCLSurfaceBase< PointInT >::tree_, and pcl::PCLPointCloud2::width.


Member Data Documentation

template<typename PointInT >
bool pcl::MeshConstruction< PointInT >::check_tree_ [protected]

A flag specifying whether or not the derived reconstruction algorithm needs the search object tree.

Definition at line 230 of file reconstruction.h.

Referenced by pcl::OrganizedFastMesh< PointInT >::OrganizedFastMesh(), and pcl::MeshConstruction< PointInT >::reconstruct().


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends