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< FaceIndex > FaceIndices
Base::HalfEdgeDataCloud HalfEdgeDataCloud
boost::shared_ptr< const Self > ConstPtr
pcl::geometry::MeshBase< PolygonMesh< MeshTraitsT >, MeshTraitsT, PolygonMeshTag > Base
MeshTraitsT::HalfEdgeData HalfEdgeData
boost::integral_constant< bool, !boost::is_same< VertexData, pcl::geometry::NoData >::value > HasVertexData
Base::VertexIndex VertexIndex
Base::HasEdgeData HasEdgeData
Circulates clockwise around a face and returns an index to the face of the outer half-edge (the targe...
Circulates counter-clockwise around a vertex and returns an index to the incoming half-edge (the targ...
boost::integral_constant< bool, !boost::is_same< HalfEdgeData, pcl::geometry::NoData >::value > HasHalfEdgeData
Base::HasFaceData HasFaceData
Base::HalfEdgeIndices HalfEdgeIndices
Base::IsManifold IsManifold
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< HalfEdgeIndex > HalfEdgeIndices
MeshTraitsT::IsManifold IsManifold
MeshTraitsT::EdgeData EdgeData
Base::HalfEdgeData HalfEdgeData
boost::shared_ptr< Self > Ptr
Base::IncomingHalfEdgeAroundVertexCirculator IncomingHalfEdgeAroundVertexCirculator
Base::OuterHalfEdgeAroundFaceCirculator OuterHalfEdgeAroundFaceCirculator
Circulates counter-clockwise around a vertex and returns an index to the terminating vertex of the ou...
Base::OutgoingHalfEdgeAroundVertexCirculator OutgoingHalfEdgeAroundVertexCirculator
Index used to access elements in the half-edge mesh.
Index used to access elements in the half-edge mesh.
Circulates clockwise around a face and returns an index to the terminating vertex of the inner half-e...
Base::VertexDataCloud VertexDataCloud
Base::VertexAroundVertexCirculator VertexAroundVertexCirculator
Index used to access elements in the half-edge mesh.
FaceIndex addFaceImplBase(const VertexIndices &vertices, const FaceData &face_data, const EdgeData &edge_data, const HalfEdgeData &half_edge_data)
General implementation of addFace.
Circulates counter-clockwise around a vertex and returns an index to the outgoing half-edge (the targ...
PolygonMesh< MeshTraitsT > Self
Base::FaceIndex FaceIndex
MeshTraitsT::FaceData FaceData
boost::integral_constant< bool, !boost::is_same< FaceData, pcl::geometry::NoData >::value > HasFaceData
Base::FaceDataCloud FaceDataCloud
std::vector< EdgeIndex > EdgeIndices
Base::EdgeIndex EdgeIndex
Base::FaceAroundVertexCirculator FaceAroundVertexCirculator
Base::VertexData VertexData
MeshTraitsT::VertexData VertexData
Tag describing the type of the mesh.
boost::integral_constant< bool, !boost::is_same< EdgeData, pcl::geometry::NoData >::value > HasEdgeData
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.
Base::VertexIndices VertexIndices
Circulates clockwise around a face and returns an index to the inner half-edge (the target).
Base::HasHalfEdgeData HasHalfEdgeData
Base::EdgeIndices EdgeIndices
Base::VertexAroundFaceCirculator VertexAroundFaceCirculator
Base::HasVertexData HasVertexData
Circulates clockwise around a face and returns an index to the outer half-edge (the target).
Circulates counter-clockwise around a vertex and returns an index to the face of the outgoing half-ed...
Base class for the half-edge mesh.
Base::HalfEdgeIndex HalfEdgeIndex
General half-edge mesh that can store any polygon with a minimum number of vertices of 3.
Base::FaceIndices FaceIndices
Base::InnerHalfEdgeAroundFaceCirculator InnerHalfEdgeAroundFaceCirculator
std::vector< VertexIndex > VertexIndices
PolygonMesh()
Constructor.
Base::FaceAroundFaceCirculator FaceAroundFaceCirculator
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.