41 #ifndef PCL_GEOMETRY_POLYGON_MESH_H
42 #define PCL_GEOMETRY_POLYGON_MESH_H
44 #include <pcl/geometry/mesh_base.h>
58 template <
class MeshTraitsT>
66 typedef boost::shared_ptr <Self>
Ptr;
67 typedef boost::shared_ptr <const Self>
ConstPtr;
136 add_triangle_ [0] = idx_v_0;
137 add_triangle_ [1] = idx_v_1;
138 add_triangle_ [2] = idx_v_2;
140 return (this->
addFaceImplBase (add_triangle_, face_data, edge_data, half_edge_data));
163 add_quad_ [0] = idx_v_0;
164 add_quad_ [1] = idx_v_1;
165 add_quad_ [2] = idx_v_2;
166 add_quad_ [3] = idx_v_3;
168 return (this->
addFaceImplBase (add_quad_, face_data, edge_data, half_edge_data));
178 addFaceImpl (const VertexIndices& vertices,
179 const FaceData& face_data,
180 const EdgeData& edge_data,
181 const HalfEdgeData& half_edge_data)
183 return (this->
addFaceImplBase (vertices, face_data, edge_data, half_edge_data));
198 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
203 #endif // PCL_GEOMETRY_POLYGON_MESH_H
std::vector< VertexIndex > VertexIndices
Base::FaceAroundVertexCirculator FaceAroundVertexCirculator
Base::OuterHalfEdgeAroundFaceCirculator OuterHalfEdgeAroundFaceCirculator
Base::FaceAroundFaceCirculator FaceAroundFaceCirculator
Index used to access elements in the half-edge mesh.
boost::integral_constant< bool,!boost::is_same< EdgeData, pcl::geometry::NoData >::value > HasEdgeData
FaceIndex addFace(const VertexIndex &idx_v_0, const VertexIndex &idx_v_1, const VertexIndex &idx_v_2, const VertexIndex &idx_v_3, const FaceData &face_data=FaceData(), const EdgeData &edge_data=EdgeData(), const HalfEdgeData &half_edge_data=HalfEdgeData())
Add a quad to the mesh.
Index used to access elements in the half-edge mesh.
std::vector< EdgeIndex > EdgeIndices
Base::HalfEdgeDataCloud HalfEdgeDataCloud
Base::EdgeIndices EdgeIndices
Base::HalfEdgeIndices HalfEdgeIndices
Circulates counter-clockwise around a vertex and returns an index to the terminating vertex of the ou...
Base::HasVertexData HasVertexData
MeshTraitsT::HalfEdgeData HalfEdgeData
General half-edge mesh that can store any polygon with a minimum number of vertices of 3...
std::vector< HalfEdgeIndex > HalfEdgeIndices
Circulates clockwise around a face and returns an index to the inner half-edge (the target)...
Circulates counter-clockwise around a vertex and returns an index to the face of the outgoing half-ed...
Base::FaceIndices FaceIndices
Base::HalfEdgeIndex HalfEdgeIndex
PolygonMesh()
Constructor.
Base::FaceIndex FaceIndex
boost::integral_constant< bool,!boost::is_same< FaceData, pcl::geometry::NoData >::value > HasFaceData
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.
Circulates counter-clockwise around a vertex and returns an index to the incoming half-edge (the targ...
Index used to access elements in the half-edge mesh.
Circulates counter-clockwise around a vertex and returns an index to the outgoing half-edge (the targ...
MeshTraitsT::VertexData VertexData
boost::shared_ptr< Self > Ptr
Base::OutgoingHalfEdgeAroundVertexCirculator OutgoingHalfEdgeAroundVertexCirculator
Base::EdgeIndex EdgeIndex
boost::integral_constant< bool,!boost::is_same< HalfEdgeData, pcl::geometry::NoData >::value > HasHalfEdgeData
Base::FaceDataCloud FaceDataCloud
Circulates clockwise around a face and returns an index to the terminating vertex of the inner half-e...
Base::VertexAroundVertexCirculator VertexAroundVertexCirculator
Base::EdgeDataCloud EdgeDataCloud
FaceIndex addFace(const VertexIndex &idx_v_0, const VertexIndex &idx_v_1, const VertexIndex &idx_v_2, const FaceData &face_data=FaceData(), const EdgeData &edge_data=EdgeData(), const HalfEdgeData &half_edge_data=HalfEdgeData())
Add a triangle to the mesh.
Base::HalfEdgeData HalfEdgeData
Base::HasFaceData HasFaceData
Base::VertexIndex VertexIndex
boost::integral_constant< bool,!boost::is_same< VertexData, pcl::geometry::NoData >::value > HasVertexData
Circulates clockwise around a face and returns an index to the face of the outer half-edge (the targe...
Index used to access elements in the half-edge mesh.
PolygonMesh< MeshTraitsT > Self
MeshTraitsT::EdgeData EdgeData
Tag describing the type of the mesh.
Base::VertexIndices VertexIndices
Base::HasEdgeData HasEdgeData
Base::IsManifold IsManifold
Base::VertexData VertexData
Base class for the half-edge mesh.
Base::IncomingHalfEdgeAroundVertexCirculator IncomingHalfEdgeAroundVertexCirculator
Circulates clockwise around a face and returns an index to the outer half-edge (the target)...
MeshTraitsT::FaceData FaceData
Base::HasHalfEdgeData HasHalfEdgeData
boost::shared_ptr< const Self > ConstPtr
pcl::geometry::MeshBase< PolygonMesh< MeshTraitsT >, MeshTraitsT, PolygonMeshTag > Base
Base::InnerHalfEdgeAroundFaceCirculator InnerHalfEdgeAroundFaceCirculator
FaceIndex addFaceImplBase(const VertexIndices &vertices, const FaceData &face_data, const EdgeData &edge_data, const HalfEdgeData &half_edge_data)
General implementation of addFace.
std::vector< FaceIndex > FaceIndices
Base::VertexDataCloud VertexDataCloud
MeshTraitsT::IsManifold IsManifold
Base::VertexAroundFaceCirculator VertexAroundFaceCirculator