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