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;
130 const VertexIndex& idx_v_1,
131 const VertexIndex& idx_v_2,
132 const VertexIndex& idx_v_3,
133 const FaceData& face_data = FaceData (),
134 const EdgeData& edge_data = EdgeData (),
135 const HalfEdgeData& half_edge_data = HalfEdgeData ())
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));
160 return (FaceIndex ());
168 VertexIndices add_quad_;
172 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
177 #endif // PCL_GEOMETRY_QUAD_MESH_H boost::shared_ptr< Self > Ptr
std::vector< FaceIndex > FaceIndices
QuadMesh< MeshTraitsT > Self
Base::FaceIndex FaceIndex
Base::FaceAroundFaceCirculator FaceAroundFaceCirculator
Base::HasEdgeData HasEdgeData
MeshTraitsT::HalfEdgeData HalfEdgeData
Base::VertexIndex VertexIndex
boost::integral_constant< bool, !boost::is_same< VertexData, pcl::geometry::NoData >::value > HasVertexData
Base::HasFaceData HasFaceData
Base::VertexIndices VertexIndices
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...
Base::OutgoingHalfEdgeAroundVertexCirculator OutgoingHalfEdgeAroundVertexCirculator
Base::IsManifold IsManifold
boost::integral_constant< bool, !boost::is_same< HalfEdgeData, pcl::geometry::NoData >::value > HasHalfEdgeData
Base::HasVertexData HasVertexData
pcl::geometry::MeshBase< QuadMesh< MeshTraitsT >, MeshTraitsT, QuadMeshTag > Base
Base::EdgeDataCloud EdgeDataCloud
Tag describing the type of the mesh.
Base::HasHalfEdgeData HasHalfEdgeData
Base::VertexData VertexData
Index used to access elements in the half-edge mesh.
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.
std::vector< HalfEdgeIndex > HalfEdgeIndices
MeshTraitsT::IsManifold IsManifold
MeshTraitsT::EdgeData EdgeData
Half-edge mesh that can only store quads.
Base::VertexAroundFaceCirculator VertexAroundFaceCirculator
Circulates counter-clockwise around a vertex and returns an index to the terminating vertex of the ou...
boost::shared_ptr< const Self > ConstPtr
Base::HalfEdgeDataCloud HalfEdgeDataCloud
Base::IncomingHalfEdgeAroundVertexCirculator IncomingHalfEdgeAroundVertexCirculator
Index used to access elements in the half-edge mesh.
Base::EdgeIndices EdgeIndices
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::HalfEdgeIndex HalfEdgeIndex
Index used to access elements in the half-edge mesh.
Base::OuterHalfEdgeAroundFaceCirculator OuterHalfEdgeAroundFaceCirculator
Circulates counter-clockwise around a vertex and returns an index to the outgoing half-edge (the targ...
MeshTraitsT::FaceData FaceData
boost::integral_constant< bool, !boost::is_same< FaceData, pcl::geometry::NoData >::value > HasFaceData
std::vector< EdgeIndex > EdgeIndices
MeshTraitsT::VertexData VertexData
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)...
Base::VertexAroundVertexCirculator VertexAroundVertexCirculator
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::FaceDataCloud FaceDataCloud
Base::InnerHalfEdgeAroundFaceCirculator InnerHalfEdgeAroundFaceCirculator
Base::EdgeIndex EdgeIndex
Base::VertexDataCloud VertexDataCloud
Base::HalfEdgeIndices HalfEdgeIndices
Base::FaceIndices FaceIndices
Base::HalfEdgeData HalfEdgeData
std::vector< VertexIndex > VertexIndices
Base::FaceAroundVertexCirculator FaceAroundVertexCirculator