41 #ifndef PCL_GEOMETRY_QUAD_MESH_H
42 #define PCL_GEOMETRY_QUAD_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;
137 add_quad_ [0] = idx_v_0;
138 add_quad_ [1] = idx_v_1;
139 add_quad_ [2] = idx_v_2;
140 add_quad_ [3] = idx_v_3;
142 return (this->
addFaceImplBase (add_quad_, face_data, edge_data, half_edge_data));
152 addFaceImpl (const VertexIndices& vertices,
153 const FaceData& face_data,
154 const EdgeData& edge_data,
155 const HalfEdgeData& half_edge_data)
157 if (vertices.size () == 4)
158 return (this->
addFaceImplBase (vertices, face_data, edge_data, half_edge_data));
172 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
177 #endif // PCL_GEOMETRY_QUAD_MESH_H
std::vector< VertexIndex > VertexIndices
Base::OutgoingHalfEdgeAroundVertexCirculator OutgoingHalfEdgeAroundVertexCirculator
Base::HalfEdgeData HalfEdgeData
Index used to access elements in the half-edge mesh.
Base::HalfEdgeDataCloud HalfEdgeDataCloud
Base::VertexIndex VertexIndex
Base::FaceAroundFaceCirculator FaceAroundFaceCirculator
Base::VertexAroundVertexCirculator VertexAroundVertexCirculator
boost::integral_constant< bool,!boost::is_same< EdgeData, pcl::geometry::NoData >::value > HasEdgeData
Index used to access elements in the half-edge mesh.
boost::shared_ptr< const Self > ConstPtr
Base::EdgeIndices EdgeIndices
Base::FaceAroundVertexCirculator FaceAroundVertexCirculator
Base::HasHalfEdgeData HasHalfEdgeData
Base::EdgeDataCloud EdgeDataCloud
std::vector< EdgeIndex > EdgeIndices
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.
Base::VertexData VertexData
Circulates counter-clockwise around a vertex and returns an index to the terminating vertex of the ou...
MeshTraitsT::HalfEdgeData HalfEdgeData
std::vector< HalfEdgeIndex > HalfEdgeIndices
Base::FaceIndex FaceIndex
Circulates clockwise around a face and returns an index to the inner half-edge (the target)...
QuadMesh< MeshTraitsT > Self
Circulates counter-clockwise around a vertex and returns an index to the face of the outgoing half-ed...
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...
boost::shared_ptr< Self > Ptr
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
Base::FaceIndices FaceIndices
Base::InnerHalfEdgeAroundFaceCirculator InnerHalfEdgeAroundFaceCirculator
Base::IsManifold IsManifold
Base::HalfEdgeIndices HalfEdgeIndices
boost::integral_constant< bool,!boost::is_same< HalfEdgeData, pcl::geometry::NoData >::value > HasHalfEdgeData
Circulates clockwise around a face and returns an index to the terminating vertex of the inner half-e...
Base::IncomingHalfEdgeAroundVertexCirculator IncomingHalfEdgeAroundVertexCirculator
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...
Base::HasFaceData HasFaceData
Index used to access elements in the half-edge mesh.
Base::FaceDataCloud FaceDataCloud
MeshTraitsT::EdgeData EdgeData
Tag describing the type of the mesh.
Base::HasEdgeData HasEdgeData
Base class for the half-edge mesh.
Circulates clockwise around a face and returns an index to the outer half-edge (the target)...
MeshTraitsT::FaceData FaceData
Base::VertexIndices VertexIndices
Base::VertexDataCloud VertexDataCloud
Base::HasVertexData HasVertexData
Half-edge mesh that can only store quads.
Base::VertexAroundFaceCirculator VertexAroundFaceCirculator
Base::OuterHalfEdgeAroundFaceCirculator OuterHalfEdgeAroundFaceCirculator
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
MeshTraitsT::IsManifold IsManifold
Base::EdgeIndex EdgeIndex
pcl::geometry::MeshBase< QuadMesh< MeshTraitsT >, MeshTraitsT, QuadMeshTag > Base
Base::HalfEdgeIndex HalfEdgeIndex