Point Cloud Library (PCL)  1.9.1-dev
List of all members | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Friends
pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT > Class Template Reference

Base class for the half-edge mesh. More...

#include <pcl/geometry/mesh_base.h>

Public Types

typedef MeshBase< DerivedT, MeshTraitsT, MeshTagT > Self
 
typedef boost::shared_ptr< SelfPtr
 
typedef boost::shared_ptr< const SelfConstPtr
 
typedef DerivedT Derived
 
typedef MeshTraitsT::VertexData VertexData
 
typedef MeshTraitsT::HalfEdgeData HalfEdgeData
 
typedef MeshTraitsT::EdgeData EdgeData
 
typedef MeshTraitsT::FaceData FaceData
 
typedef MeshTraitsT::IsManifold IsManifold
 
typedef MeshTagT MeshTag
 
typedef boost::integral_constant< bool,!boost::is_same< VertexData, pcl::geometry::NoData >::value > HasVertexData
 
typedef boost::integral_constant< bool,!boost::is_same< HalfEdgeData, pcl::geometry::NoData >::value > HasHalfEdgeData
 
typedef boost::integral_constant< bool,!boost::is_same< EdgeData, pcl::geometry::NoData >::value > HasEdgeData
 
typedef boost::integral_constant< bool,!boost::is_same< FaceData, pcl::geometry::NoData >::value > HasFaceData
 
typedef pcl::PointCloud< VertexDataVertexDataCloud
 
typedef pcl::PointCloud< HalfEdgeDataHalfEdgeDataCloud
 
typedef pcl::PointCloud< EdgeDataEdgeDataCloud
 
typedef pcl::PointCloud< FaceDataFaceDataCloud
 
typedef pcl::geometry::VertexIndex VertexIndex
 
typedef pcl::geometry::HalfEdgeIndex HalfEdgeIndex
 
typedef pcl::geometry::EdgeIndex EdgeIndex
 
typedef pcl::geometry::FaceIndex FaceIndex
 
typedef std::vector< VertexIndexVertexIndices
 
typedef std::vector< HalfEdgeIndexHalfEdgeIndices
 
typedef std::vector< EdgeIndexEdgeIndices
 
typedef std::vector< FaceIndexFaceIndices
 
typedef pcl::geometry::VertexAroundVertexCirculator< const SelfVertexAroundVertexCirculator
 
typedef pcl::geometry::OutgoingHalfEdgeAroundVertexCirculator< const SelfOutgoingHalfEdgeAroundVertexCirculator
 
typedef pcl::geometry::IncomingHalfEdgeAroundVertexCirculator< const SelfIncomingHalfEdgeAroundVertexCirculator
 
typedef pcl::geometry::FaceAroundVertexCirculator< const SelfFaceAroundVertexCirculator
 
typedef pcl::geometry::VertexAroundFaceCirculator< const SelfVertexAroundFaceCirculator
 
typedef pcl::geometry::InnerHalfEdgeAroundFaceCirculator< const SelfInnerHalfEdgeAroundFaceCirculator
 
typedef pcl::geometry::OuterHalfEdgeAroundFaceCirculator< const SelfOuterHalfEdgeAroundFaceCirculator
 
typedef pcl::geometry::FaceAroundFaceCirculator< const SelfFaceAroundFaceCirculator
 

Public Member Functions

 BOOST_CONCEPT_ASSERT ((boost::Convertible< IsManifold, bool >))
 
 MeshBase ()
 Constructor. More...
 
VertexIndex addVertex (const VertexData &vertex_data=VertexData())
 Add a vertex to the mesh. More...
 
FaceIndex addFace (const VertexIndices &vertices, const FaceData &face_data=FaceData(), const EdgeData &edge_data=EdgeData(), const HalfEdgeData &half_edge_data=HalfEdgeData())
 Add a face to the mesh. More...
 
void deleteVertex (const VertexIndex &idx_vertex)
 Mark the given vertex and all connected half-edges and faces as deleted. More...
 
void deleteEdge (const HalfEdgeIndex &idx_he)
 Mark the given half-edge, the opposite half-edge and the associated faces as deleted. More...
 
void deleteEdge (const EdgeIndex &idx_edge)
 Mark the given edge (both half-edges) and the associated faces as deleted. More...
 
void deleteFace (const FaceIndex &idx_face)
 Mark the given face as deleted. More...
 
void cleanUp ()
 Removes all mesh elements and data that are marked as deleted. More...
 
HalfEdgeIndex getOutgoingHalfEdgeIndex (const VertexIndex &idx_vertex) const
 Get the outgoing half-edge index to a given vertex. More...
 
HalfEdgeIndex getIncomingHalfEdgeIndex (const VertexIndex &idx_vertex) const
 Get the incoming half-edge index to a given vertex. More...
 
VertexIndex getTerminatingVertexIndex (const HalfEdgeIndex &idx_half_edge) const
 Get the terminating vertex index to a given half-edge. More...
 
VertexIndex getOriginatingVertexIndex (const HalfEdgeIndex &idx_half_edge) const
 Get the originating vertex index to a given half-edge. More...
 
HalfEdgeIndex getOppositeHalfEdgeIndex (const HalfEdgeIndex &idx_half_edge) const
 Get the opposite half-edge index to a given half-edge. More...
 
HalfEdgeIndex getNextHalfEdgeIndex (const HalfEdgeIndex &idx_half_edge) const
 Get the next half-edge index to a given half-edge. More...
 
HalfEdgeIndex getPrevHalfEdgeIndex (const HalfEdgeIndex &idx_half_edge) const
 Get the previous half-edge index to a given half-edge. More...
 
FaceIndex getFaceIndex (const HalfEdgeIndex &idx_half_edge) const
 Get the face index to a given half-edge. More...
 
FaceIndex getOppositeFaceIndex (const HalfEdgeIndex &idx_half_edge) const
 Get the face index to a given half-edge. More...
 
HalfEdgeIndex getInnerHalfEdgeIndex (const FaceIndex &idx_face) const
 Get the inner half-edge index to a given face. More...
 
HalfEdgeIndex getOuterHalfEdgeIndex (const FaceIndex &idx_face) const
 Get the outer half-edge inex to a given face. More...
 
VertexAroundVertexCirculator getVertexAroundVertexCirculator (const VertexIndex &idx_vertex) const
 
VertexAroundVertexCirculator getVertexAroundVertexCirculator (const HalfEdgeIndex &idx_outgoing_half_edge) const
 
OutgoingHalfEdgeAroundVertexCirculator getOutgoingHalfEdgeAroundVertexCirculator (const VertexIndex &idx_vertex) const
 
OutgoingHalfEdgeAroundVertexCirculator getOutgoingHalfEdgeAroundVertexCirculator (const HalfEdgeIndex &idx_outgoing_half_edge) const
 
IncomingHalfEdgeAroundVertexCirculator getIncomingHalfEdgeAroundVertexCirculator (const VertexIndex &idx_vertex) const
 
IncomingHalfEdgeAroundVertexCirculator getIncomingHalfEdgeAroundVertexCirculator (const HalfEdgeIndex &idx_incoming_half_edge) const
 
FaceAroundVertexCirculator getFaceAroundVertexCirculator (const VertexIndex &idx_vertex) const
 
FaceAroundVertexCirculator getFaceAroundVertexCirculator (const HalfEdgeIndex &idx_outgoing_half_edge) const
 
VertexAroundFaceCirculator getVertexAroundFaceCirculator (const FaceIndex &idx_face) const
 
VertexAroundFaceCirculator getVertexAroundFaceCirculator (const HalfEdgeIndex &idx_inner_half_edge) const
 
InnerHalfEdgeAroundFaceCirculator getInnerHalfEdgeAroundFaceCirculator (const FaceIndex &idx_face) const
 
InnerHalfEdgeAroundFaceCirculator getInnerHalfEdgeAroundFaceCirculator (const HalfEdgeIndex &idx_inner_half_edge) const
 
OuterHalfEdgeAroundFaceCirculator getOuterHalfEdgeAroundFaceCirculator (const FaceIndex &idx_face) const
 
OuterHalfEdgeAroundFaceCirculator getOuterHalfEdgeAroundFaceCirculator (const HalfEdgeIndex &idx_inner_half_edge) const
 
FaceAroundFaceCirculator getFaceAroundFaceCirculator (const FaceIndex &idx_face) const
 
FaceAroundFaceCirculator getFaceAroundFaceCirculator (const HalfEdgeIndex &idx_inner_half_edge) const
 
bool isEqualTopology (const Self &other) const
 Check if the other mesh has the same topology as this mesh. More...
 
bool isValid (const VertexIndex &idx_vertex) const
 Check if the given vertex index is a valid index into the mesh. More...
 
bool isValid (const HalfEdgeIndex &idx_he) const
 Check if the given half-edge index is a valid index into the mesh. More...
 
bool isValid (const EdgeIndex &idx_edge) const
 Check if the given edge index is a valid index into the mesh. More...
 
bool isValid (const FaceIndex &idx_face) const
 Check if the given face index is a valid index into the mesh. More...
 
bool isDeleted (const VertexIndex &idx_vertex) const
 Check if the given vertex is marked as deleted. More...
 
bool isDeleted (const HalfEdgeIndex &idx_he) const
 Check if the given half-edge is marked as deleted. More...
 
bool isDeleted (const EdgeIndex &idx_edge) const
 Check if the given edge (any of the two half-edges) is marked as deleted. More...
 
bool isDeleted (const FaceIndex &idx_face) const
 Check if the given face is marked as deleted. More...
 
bool isIsolated (const VertexIndex &idx_vertex) const
 Check if the given vertex is isolated (not connected to other elements). More...
 
bool isBoundary (const VertexIndex &idx_vertex) const
 Check if the given vertex lies on the boundary. More...
 
bool isBoundary (const HalfEdgeIndex &idx_he) const
 Check if the given half-edge lies on the bounddary. More...
 
bool isBoundary (const EdgeIndex &idx_edge) const
 Check if the given edge lies on the boundary (any of the two half-edges lies on the boundary. More...
 
template<bool CheckVerticesT>
bool isBoundary (const FaceIndex &idx_face) const
 Check if the given face lies on the boundary. More...
 
bool isBoundary (const FaceIndex &idx_face) const
 Check if the given face lies on the boundary. More...
 
bool isManifold (const VertexIndex &idx_vertex) const
 Check if the given vertex is manifold. More...
 
bool isManifold () const
 Check if the mesh is manifold. More...
 
size_t sizeVertices () const
 Get the number of the vertices. More...
 
size_t sizeHalfEdges () const
 Get the number of the half-edges. More...
 
size_t sizeEdges () const
 Get the number of the edges. More...
 
size_t sizeFaces () const
 Get the number of the faces. More...
 
bool empty () const
 Check if the mesh is empty. More...
 
bool emptyVertices () const
 Check if the vertices are empty. More...
 
bool emptyEdges () const
 Check if the edges are empty. More...
 
bool emptyFaces () const
 Check if the faces are empty. More...
 
void reserveVertices (const size_t n)
 Reserve storage space n vertices. More...
 
void reserveEdges (const size_t n)
 Reserve storage space for n edges (2*n storage space is reserved for the half-edges). More...
 
void reserveFaces (const size_t n)
 Reserve storage space for n faces. More...
 
void resizeVertices (const size_t n, const VertexData &data=VertexData())
 Resize the the vertices to n elements. More...
 
void resizeEdges (const size_t n, const EdgeData &edge_data=EdgeData(), const HalfEdgeData he_data=HalfEdgeData())
 Resize the edges to n elements (half-edges will hold 2*n elements). More...
 
void resizeFaces (const size_t n, const FaceData &data=FaceData())
 Resize the faces to n elements. More...
 
void clear ()
 Clear all mesh elements and data. More...
 
VertexDataCloudgetVertexDataCloud ()
 Get access to the stored vertex data. More...
 
VertexDataCloud getVertexDataCloud () const
 Get the stored vertex data. More...
 
bool setVertexDataCloud (const VertexDataCloud &vertex_data_cloud)
 Change the stored vertex data. More...
 
HalfEdgeDataCloudgetHalfEdgeDataCloud ()
 Get access to the stored half-edge data. More...
 
HalfEdgeDataCloud getHalfEdgeDataCloud () const
 Get the stored half-edge data. More...
 
bool setHalfEdgeDataCloud (const HalfEdgeDataCloud &half_edge_data_cloud)
 Change the stored half-edge data. More...
 
EdgeDataCloudgetEdgeDataCloud ()
 Get access to the stored edge data. More...
 
EdgeDataCloud getEdgeDataCloud () const
 Get the stored edge data. More...
 
bool setEdgeDataCloud (const EdgeDataCloud &edge_data_cloud)
 Change the stored edge data. More...
 
FaceDataCloudgetFaceDataCloud ()
 Get access to the stored face data. More...
 
FaceDataCloud getFaceDataCloud () const
 Get the stored face data. More...
 
bool setFaceDataCloud (const FaceDataCloud &face_data_cloud)
 Change the stored face data. More...
 
VertexIndex getVertexIndex (const VertexData &vertex_data) const
 Get the index associated to the given vertex data. More...
 
HalfEdgeIndex getHalfEdgeIndex (const HalfEdgeData &half_edge_data) const
 Get the index associated to the given half-edge data. More...
 
EdgeIndex getEdgeIndex (const EdgeData &edge_data) const
 Get the index associated to the given edge data. More...
 
FaceIndex getFaceIndex (const FaceData &face_data) const
 Get the index associated to the given face data. More...
 

Protected Types

typedef pcl::geometry::Vertex Vertex
 
typedef pcl::geometry::HalfEdge HalfEdge
 
typedef pcl::geometry::Face Face
 
typedef std::vector< VertexVertices
 
typedef std::vector< HalfEdgeHalfEdges
 
typedef std::vector< FaceFaces
 
typedef Vertices::iterator VertexIterator
 
typedef HalfEdges::iterator HalfEdgeIterator
 
typedef Faces::iterator FaceIterator
 
typedef Vertices::const_iterator VertexConstIterator
 
typedef HalfEdges::const_iterator HalfEdgeConstIterator
 
typedef Faces::const_iterator FaceConstIterator
 

Protected Member Functions

FaceIndex addFaceImplBase (const VertexIndices &vertices, const FaceData &face_data, const EdgeData &edge_data, const HalfEdgeData &half_edge_data)
 General implementation of addFace. More...
 
HalfEdgeIndex addEdge (const VertexIndex &idx_v_a, const VertexIndex &idx_v_b, const HalfEdgeData &he_data, const EdgeData &edge_data)
 Add an edge between the two given vertices and connect them with the vertices. More...
 
bool checkTopology1 (const VertexIndex &idx_v_a, const VertexIndex &idx_v_b, HalfEdgeIndex &idx_he_ab, std::vector< bool >::reference is_new_ab, boost::true_type) const
 Check if the edge between the two vertices can be added. More...
 
bool checkTopology1 (const VertexIndex &idx_v_a, const VertexIndex &idx_v_b, HalfEdgeIndex &idx_he_ab, std::vector< bool >::reference is_new_ab, boost::false_type) const
 Non manifold version of checkTopology1. More...
 
bool checkTopology2 (const HalfEdgeIndex &, const HalfEdgeIndex &, const bool is_new_ab, const bool is_new_bc, const bool is_isolated_b, std::vector< bool >::reference, HalfEdgeIndex &, boost::true_type) const
 Check if the face may be added (mesh does not become non-manifold). More...
 
bool checkTopology2 (const HalfEdgeIndex &idx_he_ab, const HalfEdgeIndex &idx_he_bc, const bool is_new_ab, const bool is_new_bc, const bool, std::vector< bool >::reference make_adjacent_ab_bc, HalfEdgeIndex &idx_free_half_edge, boost::false_type) const
 Check if the half-edge bc is the next half-edge of ab. More...
 
void makeAdjacent (const HalfEdgeIndex &idx_he_ab, const HalfEdgeIndex &idx_he_bc, HalfEdgeIndex &idx_free_half_edge)
 Make the half-edges bc the next half-edge of ab. More...
 
FaceIndex connectFace (const HalfEdgeIndices &inner_he, const FaceData &face_data)
 Add a face to the mesh and connect it to the half-edges. More...
 
void connectPrevNext (const HalfEdgeIndex &idx_he_ab, const HalfEdgeIndex &idx_he_bc)
 Connect the next and prev indices of the two half-edges with each other. More...
 
void connectNewNew (const HalfEdgeIndex &idx_he_ab, const HalfEdgeIndex &idx_he_bc, const VertexIndex &idx_v_b, boost::true_type)
 Both half-edges are new (manifold version). More...
 
void connectNewNew (const HalfEdgeIndex &idx_he_ab, const HalfEdgeIndex &idx_he_bc, const VertexIndex &idx_v_b, boost::false_type)
 Both half-edges are new (non-manifold version). More...
 
void connectNewOld (const HalfEdgeIndex &idx_he_ab, const HalfEdgeIndex &idx_he_bc, const VertexIndex &idx_v_b)
 The first half-edge is new. More...
 
void connectOldNew (const HalfEdgeIndex &idx_he_ab, const HalfEdgeIndex &idx_he_bc, const VertexIndex &idx_v_b)
 The second half-edge is new. More...
 
void connectOldOld (const HalfEdgeIndex &, const HalfEdgeIndex &, const VertexIndex &, boost::true_type)
 Both half-edges are old (manifold version). More...
 
void connectOldOld (const HalfEdgeIndex &, const HalfEdgeIndex &idx_he_bc, const VertexIndex &idx_v_b, boost::false_type)
 Both half-edges are old (non-manifold version). More...
 
template<class DataT >
void addData (pcl::PointCloud< DataT > &cloud, const DataT &data, boost::true_type)
 Add mesh data. More...
 
template<class DataT >
void addData (pcl::PointCloud< DataT > &, const DataT &, boost::false_type)
 Does nothing. More...
 
void deleteFace (const FaceIndex &idx_face, boost::true_type)
 Manifold version of deleteFace. More...
 
void deleteFace (const FaceIndex &idx_face, boost::false_type)
 Non-manifold version of deleteFace. More...
 
void reconnect (const HalfEdgeIndex &idx_he_ab, const HalfEdgeIndex &idx_he_bc, const bool is_boundary_ba, const bool is_boundary_cb)
 Deconnect the input half-edges from the mesh and adjust the indices of the connected half-edges. More...
 
void reconnectNBNB (const HalfEdgeIndex &idx_he_bc, const HalfEdgeIndex &idx_he_cb, const VertexIndex &idx_v_b, boost::true_type)
 Both edges are not on the boundary. More...
 
void reconnectNBNB (const HalfEdgeIndex &idx_he_bc, const HalfEdgeIndex &, const VertexIndex &idx_v_b, boost::false_type)
 Both edges are not on the boundary. More...
 
void markDeleted (const VertexIndex &idx_vertex)
 Mark the given vertex as deleted. More...
 
void markDeleted (const HalfEdgeIndex &idx_he)
 Mark the given half-edge as deleted. More...
 
void markDeleted (const EdgeIndex &idx_edge)
 Mark the given edge (both half-edges) as deleted. More...
 
void markDeleted (const FaceIndex &idx_face)
 Mark the given face as deleted. More...
 
template<class ElementContainerT , class DataContainerT , class IndexContainerT , class HasDataT >
IndexContainerT remove (ElementContainerT &elements, DataContainerT &data_cloud)
 Removes mesh elements and data that are marked as deleted from the container. More...
 
template<class IteratorT >
void incrementIf (IteratorT &it, boost::true_type) const
 Increment the iterator. More...
 
template<class IteratorT >
void incrementIf (IteratorT &, boost::false_type) const
 Does nothing. More...
 
template<class ConstIteratorT , class IteratorT >
void assignIf (const ConstIteratorT source, IteratorT target, boost::true_type) const
 Assign the source iterator to the target iterator. More...
 
template<class ConstIteratorT , class IteratorT >
void assignIf (const ConstIteratorT, IteratorT, boost::false_type) const
 Does nothing. More...
 
void setOutgoingHalfEdgeIndex (const VertexIndex &idx_vertex, const HalfEdgeIndex &idx_outgoing_half_edge)
 Set the outgoing half-edge index to a given vertex. More...
 
void setTerminatingVertexIndex (const HalfEdgeIndex &idx_half_edge, const VertexIndex &idx_terminating_vertex)
 Set the terminating vertex index to a given half-edge. More...
 
void setNextHalfEdgeIndex (const HalfEdgeIndex &idx_half_edge, const HalfEdgeIndex &idx_next_half_edge)
 Set the next half_edge index to a given half-edge. More...
 
void setPrevHalfEdgeIndex (const HalfEdgeIndex &idx_half_edge, const HalfEdgeIndex &idx_prev_half_edge)
 Set the previous half-edge index to a given half-edge. More...
 
void setFaceIndex (const HalfEdgeIndex &idx_half_edge, const FaceIndex &idx_face)
 Set the face index to a given half-edge. More...
 
void setInnerHalfEdgeIndex (const FaceIndex &idx_face, const HalfEdgeIndex &idx_inner_half_edge)
 Set the inner half-edge index to a given face. More...
 
bool isBoundary (const FaceIndex &idx_face, boost::true_type) const
 Check if any vertex of the face lies on the boundary. More...
 
bool isBoundary (const FaceIndex &idx_face, boost::false_type) const
 Check if any edge of the face lies on the boundary. More...
 
bool isManifold (const VertexIndex &, boost::true_type) const
 Always manifold. More...
 
bool isManifold (const VertexIndex &idx_vertex, boost::false_type) const
 Check if the given vertex is manifold. More...
 
bool isManifold (boost::true_type) const
 Always manifold. More...
 
bool isManifold (boost::false_type) const
 Check if all vertices in the mesh are manifold. More...
 
template<class DataCloudT >
void reserveData (DataCloudT &cloud, const size_t n, boost::true_type) const
 Reserve storage space for the mesh data. More...
 
template<class DataCloudT >
void reserveData (DataCloudT &, const size_t, boost::false_type) const
 Does nothing. More...
 
template<class DataCloudT >
void resizeData (DataCloudT &, const size_t n, const typename DataCloudT::value_type &data, boost::true_type) const
 Resize the mesh data. More...
 
template<class DataCloudT >
void resizeData (DataCloudT &, const size_t, const typename DataCloudT::value_type &, boost::false_type) const
 Does nothing. More...
 
template<class DataCloudT >
void clearData (DataCloudT &cloud, boost::true_type) const
 Clear the mesh data. More...
 
template<class DataCloudT >
void clearData (DataCloudT &, boost::false_type) const
 Does nothing. More...
 
VertexgetVertex (const VertexIndex &idx_vertex)
 Get the vertex for the given index. More...
 
Vertex getVertex (const VertexIndex &idx_vertex) const
 Get the vertex for the given index. More...
 
void setVertex (const VertexIndex &idx_vertex, const Vertex &vertex)
 Set the vertex at the given index. More...
 
HalfEdgegetHalfEdge (const HalfEdgeIndex &idx_he)
 Get the half-edge for the given index. More...
 
HalfEdge getHalfEdge (const HalfEdgeIndex &idx_he) const
 Get the half-edge for the given index. More...
 
void setHalfEdge (const HalfEdgeIndex &idx_he, const HalfEdge &half_edge)
 Set the half-edge at the given index. More...
 
FacegetFace (const FaceIndex &idx_face)
 Get the face for the given index. More...
 
Face getFace (const FaceIndex &idx_face) const
 Get the face for the given index. More...
 
void setFace (const FaceIndex &idx_face, const Face &face)
 Set the face at the given index. More...
 

Friends

template<class MeshT >
class pcl::geometry::MeshIO
 

Detailed Description

template<class DerivedT, class MeshTraitsT, class MeshTagT>
class pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >

Base class for the half-edge mesh.

Template Parameters
DerivedTHas to implement the method 'addFaceImpl'. Please have a look at pcl::geometry::TriangleMesh, pcl::geometry::QuadMesh and pcl::geometry::PolygonMesh.
MeshTraitsTPlease have a look at pcl::geometry::DefaultMeshTraits.
MeshTagTTag describing the type of the mesh, e.g. TriangleMeshTag, QuadMeshTag, PolygonMeshTag.
Author
Martin Saelzle

Definition at line 97 of file mesh_base.h.

Member Typedef Documentation

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef boost::shared_ptr<const Self> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::ConstPtr

Definition at line 103 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef DerivedT pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::Derived

Definition at line 105 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef MeshTraitsT::EdgeData pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::EdgeData

Definition at line 110 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::PointCloud<EdgeData> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::EdgeDataCloud

Definition at line 127 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::EdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::EdgeIndex

Definition at line 133 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef std::vector<EdgeIndex> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::EdgeIndices

Definition at line 138 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::Face pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::Face
protected

Definition at line 1127 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::FaceAroundFaceCirculator<const Self> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::FaceAroundFaceCirculator

Definition at line 149 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::FaceAroundVertexCirculator<const Self> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::FaceAroundVertexCirculator

Definition at line 145 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef Faces::const_iterator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::FaceConstIterator
protected

Definition at line 1139 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef MeshTraitsT::FaceData pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::FaceData

Definition at line 111 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::PointCloud<FaceData> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::FaceDataCloud

Definition at line 128 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::FaceIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::FaceIndex

Definition at line 134 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef std::vector<FaceIndex> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::FaceIndices

Definition at line 139 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef Faces::iterator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::FaceIterator
protected

Definition at line 1135 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef std::vector<Face> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::Faces
protected

Definition at line 1131 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::HalfEdge pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HalfEdge
protected

Definition at line 1126 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef HalfEdges::const_iterator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HalfEdgeConstIterator
protected

Definition at line 1138 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef MeshTraitsT::HalfEdgeData pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HalfEdgeData

Definition at line 109 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::PointCloud<HalfEdgeData> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HalfEdgeDataCloud

Definition at line 126 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::HalfEdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HalfEdgeIndex

Definition at line 132 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef std::vector<HalfEdgeIndex> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HalfEdgeIndices

Definition at line 137 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef HalfEdges::iterator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HalfEdgeIterator
protected

Definition at line 1134 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef std::vector<HalfEdge> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HalfEdges
protected

Definition at line 1130 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef boost::integral_constant<bool, !boost::is_same <EdgeData , pcl::geometry::NoData>::value> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HasEdgeData

Definition at line 122 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef boost::integral_constant<bool, !boost::is_same <FaceData , pcl::geometry::NoData>::value> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HasFaceData

Definition at line 123 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef boost::integral_constant<bool, !boost::is_same <HalfEdgeData, pcl::geometry::NoData>::value> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HasHalfEdgeData

Definition at line 121 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef boost::integral_constant<bool, !boost::is_same <VertexData , pcl::geometry::NoData>::value> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::HasVertexData

Definition at line 120 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::IncomingHalfEdgeAroundVertexCirculator<const Self> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::IncomingHalfEdgeAroundVertexCirculator

Definition at line 144 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::InnerHalfEdgeAroundFaceCirculator<const Self> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::InnerHalfEdgeAroundFaceCirculator

Definition at line 147 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef MeshTraitsT::IsManifold pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::IsManifold

Definition at line 112 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef MeshTagT pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::MeshTag

Definition at line 117 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::OuterHalfEdgeAroundFaceCirculator<const Self> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::OuterHalfEdgeAroundFaceCirculator

Definition at line 148 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::OutgoingHalfEdgeAroundVertexCirculator<const Self> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::OutgoingHalfEdgeAroundVertexCirculator

Definition at line 143 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef boost::shared_ptr<Self> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::Ptr

Definition at line 102 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef MeshBase<DerivedT, MeshTraitsT, MeshTagT> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::Self

Definition at line 101 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::Vertex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::Vertex
protected

Definition at line 1125 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::VertexAroundFaceCirculator<const Self> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::VertexAroundFaceCirculator

Definition at line 146 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::VertexAroundVertexCirculator<const Self> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::VertexAroundVertexCirculator

Definition at line 142 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef Vertices::const_iterator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::VertexConstIterator
protected

Definition at line 1137 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef MeshTraitsT::VertexData pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::VertexData

Definition at line 108 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::PointCloud<VertexData> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::VertexDataCloud

Definition at line 125 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef pcl::geometry::VertexIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::VertexIndex

Definition at line 131 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef std::vector<VertexIndex> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::VertexIndices

Definition at line 136 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef Vertices::iterator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::VertexIterator
protected

Definition at line 1133 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
typedef std::vector<Vertex> pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::Vertices
protected

Definition at line 1129 of file mesh_base.h.

Constructor & Destructor Documentation

template<class DerivedT, class MeshTraitsT, class MeshTagT>
pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::MeshBase ( )
inline

Constructor.

Definition at line 152 of file mesh_base.h.

Member Function Documentation

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class DataT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::addData ( pcl::PointCloud< DataT > &  cloud,
const DataT &  data,
boost::true_type   
)
inlineprotected

Add mesh data.

Definition at line 1519 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class DataT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::addData ( pcl::PointCloud< DataT > &  ,
const DataT &  ,
boost::false_type   
)
inlineprotected

Does nothing.

Definition at line 1527 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::addEdge ( const VertexIndex idx_v_a,
const VertexIndex idx_v_b,
const HalfEdgeData he_data,
const EdgeData edge_data 
)
inlineprotected

Add an edge between the two given vertices and connect them with the vertices.

Parameters
[in]idx_v_aThe first vertex index
[in]idx_v_bThe second vertex index
[in]he_dataData associated with the half-edges. This is only added if the mesh has data associated with the half-edges.
[in]edge_dataData associated with the edge. This is only added if the mesh has data associated with the edges.
Returns
Index to the half-edge from vertex a to vertex b.

Definition at line 1218 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::addFace ( const VertexIndices vertices,
const FaceData face_data = FaceData (),
const EdgeData edge_data = EdgeData (),
const HalfEdgeData half_edge_data = HalfEdgeData () 
)
inline

Add a face to the mesh.

Data is only added if it is associated with the elements. The last vertex is connected with the first one.

Parameters
[in]verticesIndices to the vertices of the new face.
[in]face_dataData that is set for the face.
[in]half_edge_dataData that is set for all added half-edges.
[in]edge_dataData that is set for all added edges.
Returns
Index to the new face. Failure is signaled by returning an invalid face index.
Warning
The vertices must be valid and unique (each vertex may be contained only once). Not complying with this requirement results in undefined behavior!

Definition at line 195 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::addFaceImplBase ( const VertexIndices vertices,
const FaceData face_data,
const EdgeData edge_data,
const HalfEdgeData half_edge_data 
)
inlineprotected

General implementation of addFace.

Definition at line 1143 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
VertexIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::addVertex ( const VertexData vertex_data = VertexData ())
inline

Add a vertex to the mesh.

Parameters
[in]vertex_dataData that is stored in the vertex. This is only added if the mesh has data associated with the vertices.
Returns
Index to the new vertex.

Definition at line 179 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class ConstIteratorT , class IteratorT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::assignIf ( const ConstIteratorT  source,
IteratorT  target,
boost::true_type   
) const
inlineprotected

Assign the source iterator to the target iterator.

Definition at line 1822 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class ConstIteratorT , class IteratorT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::assignIf ( const ConstIteratorT  ,
IteratorT  ,
boost::false_type   
) const
inlineprotected

Does nothing.

Definition at line 1829 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::BOOST_CONCEPT_ASSERT ( (boost::Convertible< IsManifold, bool >)  )
template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::checkTopology1 ( const VertexIndex idx_v_a,
const VertexIndex idx_v_b,
HalfEdgeIndex idx_he_ab,
std::vector< bool >::reference  is_new_ab,
boost::true_type   
) const
inlineprotected

Check if the edge between the two vertices can be added.

Parameters
[in]idx_v_aIndex to the first vertex.
[in]idx_v_bIndex to the second vertex.
[out]idx_he_abIndex to the half-edge ab if is_new_ab=false.
[out]is_new_abtrue if the edge between the vertices exists already. Must be initialized with true!
Returns
true if the half-edge may be added.

Definition at line 1245 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::checkTopology1 ( const VertexIndex idx_v_a,
const VertexIndex idx_v_b,
HalfEdgeIndex idx_he_ab,
std::vector< bool >::reference  is_new_ab,
boost::false_type   
) const
inlineprotected

Non manifold version of checkTopology1.

Definition at line 1263 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::checkTopology2 ( const HalfEdgeIndex ,
const HalfEdgeIndex ,
const bool  is_new_ab,
const bool  is_new_bc,
const bool  is_isolated_b,
std::vector< bool >::reference  ,
HalfEdgeIndex ,
boost::true_type   
) const
inlineprotected

Check if the face may be added (mesh does not become non-manifold).

Definition at line 1293 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::checkTopology2 ( const HalfEdgeIndex idx_he_ab,
const HalfEdgeIndex idx_he_bc,
const bool  is_new_ab,
const bool  is_new_bc,
const bool  ,
std::vector< bool >::reference  make_adjacent_ab_bc,
HalfEdgeIndex idx_free_half_edge,
boost::false_type   
) const
inlineprotected

Check if the half-edge bc is the next half-edge of ab.

Parameters
[in]idx_he_abIndex to the half-edge between the vertices a and b.
[in]idx_he_bcIndex to the half-edge between the vertices b and c.
[in]is_new_abHalf-edge ab is new.
[in]is_new_bcHalf-edge bc is new.
[out]make_adjacent_ab_bcHalf-edges ab and bc need to be made adjacent.
[out]idx_free_half_edgeFree half-edge (needed for makeAdjacent)
Returns
true if addFace may be continued.

Definition at line 1316 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::cleanUp ( )
inline

Removes all mesh elements and data that are marked as deleted.

Note
This removes all isolated vertices as well.

Definition at line 274 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::clear ( )
inline

Clear all mesh elements and data.

Definition at line 888 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class DataCloudT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::clearData ( DataCloudT &  cloud,
boost::true_type   
) const
inlineprotected

Clear the mesh data.

Definition at line 1999 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class DataCloudT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::clearData ( DataCloudT &  ,
boost::false_type   
) const
inlineprotected

Does nothing.

Definition at line 2006 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::connectFace ( const HalfEdgeIndices inner_he,
const FaceData face_data 
)
inlineprotected

Add a face to the mesh and connect it to the half-edges.

Parameters
[in]inner_heInner half-edges of the face.
[in]face_dataData that is stored in the face. This is only added if the mesh has data associated with the faces.
Returns
Index to the new face.

Definition at line 1380 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::connectNewNew ( const HalfEdgeIndex idx_he_ab,
const HalfEdgeIndex idx_he_bc,
const VertexIndex idx_v_b,
boost::true_type   
)
inlineprotected

Both half-edges are new (manifold version).

Definition at line 1407 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::connectNewNew ( const HalfEdgeIndex idx_he_ab,
const HalfEdgeIndex idx_he_bc,
const VertexIndex idx_v_b,
boost::false_type   
)
inlineprotected

Both half-edges are new (non-manifold version).

Definition at line 1423 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::connectNewOld ( const HalfEdgeIndex idx_he_ab,
const HalfEdgeIndex idx_he_bc,
const VertexIndex idx_v_b 
)
inlineprotected

The first half-edge is new.

Definition at line 1449 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::connectOldNew ( const HalfEdgeIndex idx_he_ab,
const HalfEdgeIndex idx_he_bc,
const VertexIndex idx_v_b 
)
inlineprotected

The second half-edge is new.

Definition at line 1464 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::connectOldOld ( const HalfEdgeIndex ,
const HalfEdgeIndex ,
const VertexIndex ,
boost::true_type   
)
inlineprotected

Both half-edges are old (manifold version).

Definition at line 1479 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::connectOldOld ( const HalfEdgeIndex ,
const HalfEdgeIndex idx_he_bc,
const VertexIndex idx_v_b,
boost::false_type   
)
inlineprotected

Both half-edges are old (non-manifold version).

Definition at line 1488 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::connectPrevNext ( const HalfEdgeIndex idx_he_ab,
const HalfEdgeIndex idx_he_bc 
)
inlineprotected

Connect the next and prev indices of the two half-edges with each other.

Definition at line 1398 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::deleteEdge ( const HalfEdgeIndex idx_he)
inline

Mark the given half-edge, the opposite half-edge and the associated faces as deleted.

Note
Call cleanUp () to finally delete all mesh-elements.

Definition at line 234 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::deleteEdge ( const EdgeIndex idx_edge)
inline

Mark the given edge (both half-edges) and the associated faces as deleted.

Note
Call cleanUp () to finally delete all mesh-elements.

Definition at line 251 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::deleteFace ( const FaceIndex idx_face)
inline

Mark the given face as deleted.

More faces are deleted if the manifold mesh would become non-manifold.

Note
Call cleanUp () to finally delete all mesh-elements.

Definition at line 262 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::deleteFace ( const FaceIndex idx_face,
boost::true_type   
)
inlineprotected

Manifold version of deleteFace.

If the mesh becomes non-manifold due to the delete operation the faces around the non-manifold vertex are deleted until the mesh becomes manifold again.

Definition at line 1537 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::deleteFace ( const FaceIndex idx_face,
boost::false_type   
)
inlineprotected

Non-manifold version of deleteFace.

Definition at line 1556 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::deleteVertex ( const VertexIndex idx_vertex)
inline

Mark the given vertex and all connected half-edges and faces as deleted.

Note
Call cleanUp () to finally delete all mesh-elements.

Definition at line 208 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::empty ( ) const
inline

Check if the mesh is empty.

Definition at line 796 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::emptyEdges ( ) const
inline

Check if the edges are empty.

Definition at line 810 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::emptyFaces ( ) const
inline

Check if the faces are empty.

Definition at line 817 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::emptyVertices ( ) const
inline

Check if the vertices are empty.

Definition at line 803 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
EdgeDataCloud& pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getEdgeDataCloud ( )
inline

Get access to the stored edge data.

Warning
Please make sure to NOT add or remove elements from the cloud.

Definition at line 984 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
EdgeDataCloud pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getEdgeDataCloud ( ) const
inline

Get the stored edge data.

Definition at line 991 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
EdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getEdgeIndex ( const EdgeData edge_data) const
inline

Get the index associated to the given edge data.

Definition at line 1090 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
Face& pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getFace ( const FaceIndex idx_face)
inlineprotected

Get the face for the given index.

Definition at line 2072 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
Face pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getFace ( const FaceIndex idx_face) const
inlineprotected

Get the face for the given index.

Definition at line 2080 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceAroundFaceCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getFaceAroundFaceCirculator ( const FaceIndex idx_face) const
inline
See also
pcl::geometry::FaceAroundFaceCirculator

Definition at line 551 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceAroundFaceCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getFaceAroundFaceCirculator ( const HalfEdgeIndex idx_inner_half_edge) const
inline
See also
pcl::geometry::FaceAroundFaceCirculator

Definition at line 559 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceAroundVertexCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getFaceAroundVertexCirculator ( const VertexIndex idx_vertex) const
inline
See also
pcl::geometry::FaceAroundVertexCirculator

Definition at line 487 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceAroundVertexCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getFaceAroundVertexCirculator ( const HalfEdgeIndex idx_outgoing_half_edge) const
inline
See also
pcl::geometry::FaceAroundVertexCirculator

Definition at line 495 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceDataCloud& pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getFaceDataCloud ( )
inline

Get access to the stored face data.

Warning
Please make sure to NOT add or remove elements from the cloud.

Definition at line 1022 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceDataCloud pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getFaceDataCloud ( ) const
inline

Get the stored face data.

Definition at line 1029 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getFaceIndex ( const HalfEdgeIndex idx_half_edge) const
inline

Get the face index to a given half-edge.

Definition at line 399 of file mesh_base.h.

Referenced by pcl::geometry::MeshBase< QuadMesh< MeshTraitsT >, MeshTraitsT, QuadMeshTag >::isEqualTopology().

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getFaceIndex ( const FaceData face_data) const
inline

Get the index associated to the given face data.

Definition at line 1105 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdge& pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getHalfEdge ( const HalfEdgeIndex idx_he)
inlineprotected

Get the half-edge for the given index.

Definition at line 2044 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdge pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getHalfEdge ( const HalfEdgeIndex idx_he) const
inlineprotected

Get the half-edge for the given index.

Definition at line 2052 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdgeDataCloud& pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getHalfEdgeDataCloud ( )
inline

Get access to the stored half-edge data.

Warning
Please make sure to NOT add or remove elements from the cloud.

Definition at line 946 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdgeDataCloud pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getHalfEdgeDataCloud ( ) const
inline

Get the stored half-edge data.

Definition at line 953 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getHalfEdgeIndex ( const HalfEdgeData half_edge_data) const
inline

Get the index associated to the given half-edge data.

Definition at line 1075 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
IncomingHalfEdgeAroundVertexCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getIncomingHalfEdgeAroundVertexCirculator ( const VertexIndex idx_vertex) const
inline
template<class DerivedT, class MeshTraitsT, class MeshTagT>
IncomingHalfEdgeAroundVertexCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getIncomingHalfEdgeAroundVertexCirculator ( const HalfEdgeIndex idx_incoming_half_edge) const
inline
template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getIncomingHalfEdgeIndex ( const VertexIndex idx_vertex) const
inline

Get the incoming half-edge index to a given vertex.

Definition at line 346 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
InnerHalfEdgeAroundFaceCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getInnerHalfEdgeAroundFaceCirculator ( const FaceIndex idx_face) const
inline
template<class DerivedT, class MeshTraitsT, class MeshTagT>
InnerHalfEdgeAroundFaceCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getInnerHalfEdgeAroundFaceCirculator ( const HalfEdgeIndex idx_inner_half_edge) const
inline
template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getInnerHalfEdgeIndex ( const FaceIndex idx_face) const
inline

Get the inner half-edge index to a given face.

Definition at line 419 of file mesh_base.h.

Referenced by pcl::geometry::MeshBase< QuadMesh< MeshTraitsT >, MeshTraitsT, QuadMeshTag >::isEqualTopology().

template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getNextHalfEdgeIndex ( const HalfEdgeIndex idx_half_edge) const
inline

Get the next half-edge index to a given half-edge.

Definition at line 383 of file mesh_base.h.

Referenced by pcl::geometry::MeshBase< QuadMesh< MeshTraitsT >, MeshTraitsT, QuadMeshTag >::isEqualTopology().

template<class DerivedT, class MeshTraitsT, class MeshTagT>
FaceIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getOppositeFaceIndex ( const HalfEdgeIndex idx_half_edge) const
inline

Get the face index to a given half-edge.

Definition at line 407 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getOppositeHalfEdgeIndex ( const HalfEdgeIndex idx_half_edge) const
inline

Get the opposite half-edge index to a given half-edge.

Definition at line 374 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
VertexIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getOriginatingVertexIndex ( const HalfEdgeIndex idx_half_edge) const
inline

Get the originating vertex index to a given half-edge.

Definition at line 366 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
OuterHalfEdgeAroundFaceCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getOuterHalfEdgeAroundFaceCirculator ( const FaceIndex idx_face) const
inline
template<class DerivedT, class MeshTraitsT, class MeshTagT>
OuterHalfEdgeAroundFaceCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getOuterHalfEdgeAroundFaceCirculator ( const HalfEdgeIndex idx_inner_half_edge) const
inline
template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getOuterHalfEdgeIndex ( const FaceIndex idx_face) const
inline

Get the outer half-edge inex to a given face.

Definition at line 427 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
OutgoingHalfEdgeAroundVertexCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getOutgoingHalfEdgeAroundVertexCirculator ( const VertexIndex idx_vertex) const
inline
template<class DerivedT, class MeshTraitsT, class MeshTagT>
OutgoingHalfEdgeAroundVertexCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getOutgoingHalfEdgeAroundVertexCirculator ( const HalfEdgeIndex idx_outgoing_half_edge) const
inline
template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getOutgoingHalfEdgeIndex ( const VertexIndex idx_vertex) const
inline

Get the outgoing half-edge index to a given vertex.

Definition at line 338 of file mesh_base.h.

Referenced by pcl::geometry::MeshBase< QuadMesh< MeshTraitsT >, MeshTraitsT, QuadMeshTag >::isEqualTopology().

template<class DerivedT, class MeshTraitsT, class MeshTagT>
HalfEdgeIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getPrevHalfEdgeIndex ( const HalfEdgeIndex idx_half_edge) const
inline

Get the previous half-edge index to a given half-edge.

Definition at line 391 of file mesh_base.h.

Referenced by pcl::geometry::MeshBase< QuadMesh< MeshTraitsT >, MeshTraitsT, QuadMeshTag >::isEqualTopology().

template<class DerivedT, class MeshTraitsT, class MeshTagT>
VertexIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getTerminatingVertexIndex ( const HalfEdgeIndex idx_half_edge) const
inline

Get the terminating vertex index to a given half-edge.

Definition at line 358 of file mesh_base.h.

Referenced by pcl::geometry::MeshBase< QuadMesh< MeshTraitsT >, MeshTraitsT, QuadMeshTag >::isEqualTopology().

template<class DerivedT, class MeshTraitsT, class MeshTagT>
Vertex& pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getVertex ( const VertexIndex idx_vertex)
inlineprotected

Get the vertex for the given index.

Definition at line 2016 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
Vertex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getVertex ( const VertexIndex idx_vertex) const
inlineprotected

Get the vertex for the given index.

Definition at line 2024 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
VertexAroundFaceCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getVertexAroundFaceCirculator ( const FaceIndex idx_face) const
inline
See also
pcl::geometry::VertexAroundFaceCirculator

Definition at line 503 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
VertexAroundFaceCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getVertexAroundFaceCirculator ( const HalfEdgeIndex idx_inner_half_edge) const
inline
See also
pcl::geometry::VertexAroundFaceCirculator

Definition at line 511 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
VertexAroundVertexCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getVertexAroundVertexCirculator ( const VertexIndex idx_vertex) const
inline
See also
pcl::geometry::VertexAroundVertexCirculator

Definition at line 439 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
VertexAroundVertexCirculator pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getVertexAroundVertexCirculator ( const HalfEdgeIndex idx_outgoing_half_edge) const
inline
See also
pcl::geometry::VertexAroundVertexCirculator

Definition at line 447 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
VertexDataCloud& pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getVertexDataCloud ( )
inline

Get access to the stored vertex data.

Warning
Please make sure to NOT add or remove elements from the cloud.

Definition at line 908 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
VertexDataCloud pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getVertexDataCloud ( ) const
inline

Get the stored vertex data.

Definition at line 915 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
VertexIndex pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::getVertexIndex ( const VertexData vertex_data) const
inline

Get the index associated to the given vertex data.

Returns
Invalid index if the mesh does not have associated vertex data.

Definition at line 1060 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class IteratorT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::incrementIf ( IteratorT &  it,
boost::true_type   
) const
inlineprotected

Increment the iterator.

Definition at line 1809 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class IteratorT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::incrementIf ( IteratorT &  ,
boost::false_type   
) const
inlineprotected

Does nothing.

Definition at line 1816 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isBoundary ( const VertexIndex idx_vertex) const
inline

Check if the given vertex lies on the boundary.

Isolated vertices are considered to be on the boundary.

Definition at line 694 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isBoundary ( const HalfEdgeIndex idx_he) const
inline

Check if the given half-edge lies on the bounddary.

Definition at line 703 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isBoundary ( const EdgeIndex idx_edge) const
inline

Check if the given edge lies on the boundary (any of the two half-edges lies on the boundary.

Definition at line 711 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<bool CheckVerticesT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isBoundary ( const FaceIndex idx_face) const
inline

Check if the given face lies on the boundary.

There are two versions of this method, selected by the template parameter.

Template Parameters
CheckVerticesTCheck if any vertex lies on the boundary (true) or check if any edge lies on the boundary (false).

Definition at line 722 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isBoundary ( const FaceIndex idx_face) const
inline

Check if the given face lies on the boundary.

This method uses isBoundary true which checks if any vertex lies on the boundary.

Definition at line 730 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isBoundary ( const FaceIndex idx_face,
boost::true_type   
) const
inlineprotected

Check if any vertex of the face lies on the boundary.

Definition at line 1892 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isBoundary ( const FaceIndex idx_face,
boost::false_type   
) const
inlineprotected

Check if any edge of the face lies on the boundary.

Definition at line 1910 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isDeleted ( const VertexIndex idx_vertex) const
inline

Check if the given vertex is marked as deleted.

Definition at line 645 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isDeleted ( const HalfEdgeIndex idx_he) const
inline

Check if the given half-edge is marked as deleted.

Definition at line 653 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isDeleted ( const EdgeIndex idx_edge) const
inline

Check if the given edge (any of the two half-edges) is marked as deleted.

Definition at line 661 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isDeleted ( const FaceIndex idx_face) const
inline

Check if the given face is marked as deleted.

Definition at line 670 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isEqualTopology ( const Self other) const
inline

Check if the other mesh has the same topology as this mesh.

Definition at line 571 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isIsolated ( const VertexIndex idx_vertex) const
inline

Check if the given vertex is isolated (not connected to other elements).

Definition at line 682 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isManifold ( const VertexIndex idx_vertex) const
inline

Check if the given vertex is manifold.

Isolated vertices are manifold.

Definition at line 742 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isManifold ( ) const
inline

Check if the mesh is manifold.

Definition at line 751 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isManifold ( const VertexIndex ,
boost::true_type   
) const
inlineprotected

Always manifold.

Definition at line 1928 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isManifold ( const VertexIndex idx_vertex,
boost::false_type   
) const
inlineprotected

Check if the given vertex is manifold.

Definition at line 1935 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isManifold ( boost::true_type  ) const
inlineprotected

Always manifold.

Definition at line 1951 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isManifold ( boost::false_type  ) const
inlineprotected

Check if all vertices in the mesh are manifold.

Definition at line 1958 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isValid ( const VertexIndex idx_vertex) const
inline

Check if the given vertex index is a valid index into the mesh.

Definition at line 613 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isValid ( const HalfEdgeIndex idx_he) const
inline

Check if the given half-edge index is a valid index into the mesh.

Definition at line 620 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isValid ( const EdgeIndex idx_edge) const
inline

Check if the given edge index is a valid index into the mesh.

Definition at line 627 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::isValid ( const FaceIndex idx_face) const
inline

Check if the given face index is a valid index into the mesh.

Definition at line 634 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::makeAdjacent ( const HalfEdgeIndex idx_he_ab,
const HalfEdgeIndex idx_he_bc,
HalfEdgeIndex idx_free_half_edge 
)
inlineprotected

Make the half-edges bc the next half-edge of ab.

Parameters
[in]idx_he_abIndex to the half-edge between the vertices a and b.
[in]idx_he_bcIndex to the half-edge between the vertices b and c.
[in,out]idx_free_half_edgeFree half-edge needed to re-connect the half-edges around vertex b.

Definition at line 1356 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::markDeleted ( const VertexIndex idx_vertex)
inlineprotected

Mark the given vertex as deleted.

Definition at line 1709 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::markDeleted ( const HalfEdgeIndex idx_he)
inlineprotected

Mark the given half-edge as deleted.

Definition at line 1717 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::markDeleted ( const EdgeIndex idx_edge)
inlineprotected

Mark the given edge (both half-edges) as deleted.

Definition at line 1725 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::markDeleted ( const FaceIndex idx_face)
inlineprotected

Mark the given face as deleted.

Definition at line 1734 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::reconnect ( const HalfEdgeIndex idx_he_ab,
const HalfEdgeIndex idx_he_bc,
const bool  is_boundary_ba,
const bool  is_boundary_cb 
)
inlineprotected

Deconnect the input half-edges from the mesh and adjust the indices of the connected half-edges.

Definition at line 1608 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::reconnectNBNB ( const HalfEdgeIndex idx_he_bc,
const HalfEdgeIndex idx_he_cb,
const VertexIndex idx_v_b,
boost::true_type   
)
inlineprotected

Both edges are not on the boundary.

Manifold version.

Definition at line 1656 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::reconnectNBNB ( const HalfEdgeIndex idx_he_bc,
const HalfEdgeIndex ,
const VertexIndex idx_v_b,
boost::false_type   
)
inlineprotected

Both edges are not on the boundary.

Non-manifold version.

Definition at line 1692 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class ElementContainerT , class DataContainerT , class IndexContainerT , class HasDataT >
IndexContainerT pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::remove ( ElementContainerT &  elements,
DataContainerT &  data_cloud 
)
inlineprotected

Removes mesh elements and data that are marked as deleted from the container.

Template Parameters
ElementContainerTe.g. std::vector <Vertex>
DataContainerTe.g. std::vector <VertexData>
IndexContainerTe.g. std::vector <VertexIndex>
HasDataTIntegral constant specifying if the mesh has data associated with the elements.
Parameters
[in,out]elementsContainer for the mesh elements. Resized to the new size.
[in,out]data_cloudContainer for the mesh data. Resized to the new size.
Returns
Container with the same size as the old input data. Holds the indices to the new elements for each non-deleted element and an invalid index if it is deleted.

Definition at line 1755 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class DataCloudT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::reserveData ( DataCloudT &  cloud,
const size_t  n,
boost::true_type   
) const
inlineprotected

Reserve storage space for the mesh data.

Definition at line 1973 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class DataCloudT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::reserveData ( DataCloudT &  ,
const size_t  ,
boost::false_type   
) const
inlineprotected

Does nothing.

Definition at line 1980 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::reserveEdges ( const size_t  n)
inline

Reserve storage space for n edges (2*n storage space is reserved for the half-edges).

Definition at line 836 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::reserveFaces ( const size_t  n)
inline

Reserve storage space for n faces.

Definition at line 845 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::reserveVertices ( const size_t  n)
inline

Reserve storage space n vertices.

Definition at line 828 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class DataCloudT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::resizeData ( DataCloudT &  ,
const size_t  n,
const typename DataCloudT::value_type &  data,
boost::true_type   
) const
inlineprotected

Resize the mesh data.

Definition at line 1986 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class DataCloudT >
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::resizeData ( DataCloudT &  ,
const size_t  ,
const typename DataCloudT::value_type &  ,
boost::false_type   
) const
inlineprotected

Does nothing.

Definition at line 1993 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::resizeEdges ( const size_t  n,
const EdgeData edge_data = EdgeData (),
const HalfEdgeData  he_data = HalfEdgeData () 
)
inline

Resize the edges to n elements (half-edges will hold 2*n elements).

Definition at line 865 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::resizeFaces ( const size_t  n,
const FaceData data = FaceData () 
)
inline

Resize the faces to n elements.

Definition at line 876 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::resizeVertices ( const size_t  n,
const VertexData data = VertexData () 
)
inline

Resize the the vertices to n elements.

Definition at line 857 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setEdgeDataCloud ( const EdgeDataCloud edge_data_cloud)
inline

Change the stored edge data.

Parameters
[in]edge_data_cloudThe new edge data. Must be the same as the current data.
Returns
true if the cloud could be set.

Definition at line 1001 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setFace ( const FaceIndex idx_face,
const Face face 
)
inlineprotected

Set the face at the given index.

Definition at line 2088 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setFaceDataCloud ( const FaceDataCloud face_data_cloud)
inline

Change the stored face data.

Parameters
[in]face_data_cloudThe new face data. Must be the same as the current data.
Returns
true if the cloud could be set.

Definition at line 1039 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setFaceIndex ( const HalfEdgeIndex idx_half_edge,
const FaceIndex idx_face 
)
inlineprotected

Set the face index to a given half-edge.

Definition at line 1872 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setHalfEdge ( const HalfEdgeIndex idx_he,
const HalfEdge half_edge 
)
inlineprotected

Set the half-edge at the given index.

Definition at line 2060 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setHalfEdgeDataCloud ( const HalfEdgeDataCloud half_edge_data_cloud)
inline

Change the stored half-edge data.

Parameters
[in]half_edge_data_cloudThe new half-edge data. Must be the same as the current data.
Returns
true if the cloud could be set.

Definition at line 963 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setInnerHalfEdgeIndex ( const FaceIndex idx_face,
const HalfEdgeIndex idx_inner_half_edge 
)
inlineprotected

Set the inner half-edge index to a given face.

Definition at line 1880 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setNextHalfEdgeIndex ( const HalfEdgeIndex idx_half_edge,
const HalfEdgeIndex idx_next_half_edge 
)
inlineprotected

Set the next half_edge index to a given half-edge.

Definition at line 1855 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setOutgoingHalfEdgeIndex ( const VertexIndex idx_vertex,
const HalfEdgeIndex idx_outgoing_half_edge 
)
inlineprotected

Set the outgoing half-edge index to a given vertex.

Definition at line 1839 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setPrevHalfEdgeIndex ( const HalfEdgeIndex idx_half_edge,
const HalfEdgeIndex idx_prev_half_edge 
)
inlineprotected

Set the previous half-edge index to a given half-edge.

Definition at line 1863 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setTerminatingVertexIndex ( const HalfEdgeIndex idx_half_edge,
const VertexIndex idx_terminating_vertex 
)
inlineprotected

Set the terminating vertex index to a given half-edge.

Definition at line 1847 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
void pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setVertex ( const VertexIndex idx_vertex,
const Vertex vertex 
)
inlineprotected

Set the vertex at the given index.

Definition at line 2032 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
bool pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::setVertexDataCloud ( const VertexDataCloud vertex_data_cloud)
inline

Change the stored vertex data.

Parameters
[in]vertex_data_cloudThe new vertex data. Must be the same as the current data.
Returns
true if the cloud could be set.

Definition at line 925 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
size_t pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::sizeEdges ( ) const
inline

Get the number of the edges.

Definition at line 777 of file mesh_base.h.

template<class DerivedT, class MeshTraitsT, class MeshTagT>
size_t pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::sizeFaces ( ) const
inline

Get the number of the faces.

Definition at line 785 of file mesh_base.h.

Referenced by pcl::geometry::MeshBase< QuadMesh< MeshTraitsT >, MeshTraitsT, QuadMeshTag >::isEqualTopology().

template<class DerivedT, class MeshTraitsT, class MeshTagT>
size_t pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::sizeHalfEdges ( ) const
inline

Get the number of the half-edges.

Definition at line 769 of file mesh_base.h.

Referenced by pcl::geometry::MeshBase< QuadMesh< MeshTraitsT >, MeshTraitsT, QuadMeshTag >::isEqualTopology().

template<class DerivedT, class MeshTraitsT, class MeshTagT>
size_t pcl::geometry::MeshBase< DerivedT, MeshTraitsT, MeshTagT >::sizeVertices ( ) const
inline

Get the number of the vertices.

Definition at line 762 of file mesh_base.h.

Referenced by pcl::geometry::MeshBase< QuadMesh< MeshTraitsT >, MeshTraitsT, QuadMeshTag >::isEqualTopology().

Friends And Related Function Documentation

template<class DerivedT, class MeshTraitsT, class MeshTagT>
template<class MeshT >
friend class pcl::geometry::MeshIO
friend

Definition at line 2147 of file mesh_base.h.


The documentation for this class was generated from the following file: