43 #include <pcl/geometry/mesh_base.h>
57 template <
class MeshTraitsT>
64 using Ptr = shared_ptr<Self>;
139 add_quad_[0] = idx_v_0;
140 add_quad_[1] = idx_v_1;
141 add_quad_[2] = idx_v_2;
142 add_quad_[3] = idx_v_3;
144 return (this->
addFaceImplBase(add_quad_, face_data, edge_data, half_edge_data));
150 MeshBase<QuadMesh<MeshTraitsT>, MeshTraitsT, pcl::geometry::QuadMeshTag>;
154 addFaceImpl(const VertexIndices& vertices,
155 const FaceData& face_data,
156 const EdgeData& edge_data,
157 const HalfEdgeData& half_edge_data)
159 if (vertices.size() == 4)
160 return (this->
addFaceImplBase(vertices, face_data, edge_data, half_edge_data));
Base class for the half-edge mesh.
std::integral_constant< bool, !std::is_same< VertexData, pcl::geometry::NoData >::value > HasVertexData
pcl::geometry::IncomingHalfEdgeAroundVertexCirculator< const Self > IncomingHalfEdgeAroundVertexCirculator
pcl::geometry::OuterHalfEdgeAroundFaceCirculator< const Self > OuterHalfEdgeAroundFaceCirculator
std::vector< EdgeIndex > EdgeIndices
pcl::geometry::FaceIndex FaceIndex
typename MeshTraitsT::EdgeData EdgeData
std::vector< FaceIndex > FaceIndices
typename MeshTraitsT::HalfEdgeData HalfEdgeData
pcl::PointCloud< VertexData > VertexDataCloud
pcl::geometry::FaceAroundFaceCirculator< const Self > FaceAroundFaceCirculator
FaceIndex addFaceImplBase(const VertexIndices &vertices, const FaceData &face_data, const EdgeData &edge_data, const HalfEdgeData &half_edge_data)
General implementation of addFace.
typename MeshTraitsT::VertexData VertexData
pcl::geometry::FaceAroundVertexCirculator< const Self > FaceAroundVertexCirculator
std::vector< HalfEdgeIndex > HalfEdgeIndices
std::integral_constant< bool, !std::is_same< EdgeData, pcl::geometry::NoData >::value > HasEdgeData
std::integral_constant< bool, !std::is_same< FaceData, pcl::geometry::NoData >::value > HasFaceData
pcl::PointCloud< FaceData > FaceDataCloud
pcl::geometry::VertexIndex VertexIndex
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.
pcl::geometry::VertexAroundFaceCirculator< const Self > VertexAroundFaceCirculator
typename MeshTraitsT::IsManifold IsManifold
pcl::PointCloud< HalfEdgeData > HalfEdgeDataCloud
typename MeshTraitsT::FaceData FaceData
pcl::geometry::InnerHalfEdgeAroundFaceCirculator< const Self > InnerHalfEdgeAroundFaceCirculator
std::vector< VertexIndex > VertexIndices
pcl::geometry::VertexAroundVertexCirculator< const Self > VertexAroundVertexCirculator
pcl::geometry::EdgeIndex EdgeIndex
std::integral_constant< bool, !std::is_same< HalfEdgeData, pcl::geometry::NoData >::value > HasHalfEdgeData
pcl::geometry::OutgoingHalfEdgeAroundVertexCirculator< const Self > OutgoingHalfEdgeAroundVertexCirculator
pcl::geometry::HalfEdgeIndex HalfEdgeIndex
pcl::PointCloud< EdgeData > EdgeDataCloud
Half-edge mesh that can only store quads.
typename Base::FaceAroundFaceCirculator FaceAroundFaceCirculator
typename Base::IncomingHalfEdgeAroundVertexCirculator IncomingHalfEdgeAroundVertexCirculator
typename Base::OutgoingHalfEdgeAroundVertexCirculator OutgoingHalfEdgeAroundVertexCirculator
typename Base::VertexAroundVertexCirculator VertexAroundVertexCirculator
typename Base::HasVertexData HasVertexData
typename Base::HasFaceData HasFaceData
typename Base::MeshTag MeshTag
typename Base::IsManifold IsManifold
typename Base::HalfEdgeIndices HalfEdgeIndices
typename Base::FaceData FaceData
typename Base::VertexIndices VertexIndices
typename Base::EdgeIndices EdgeIndices
typename Base::HalfEdgeData HalfEdgeData
typename Base::FaceAroundVertexCirculator FaceAroundVertexCirculator
shared_ptr< const Self > ConstPtr
typename Base::VertexIndex VertexIndex
typename Base::InnerHalfEdgeAroundFaceCirculator InnerHalfEdgeAroundFaceCirculator
typename Base::VertexData VertexData
typename Base::HalfEdgeIndex HalfEdgeIndex
typename Base::HalfEdgeDataCloud HalfEdgeDataCloud
typename Base::FaceIndex FaceIndex
typename Base::EdgeData EdgeData
typename Base::VertexDataCloud VertexDataCloud
typename Base::OuterHalfEdgeAroundFaceCirculator OuterHalfEdgeAroundFaceCirculator
typename Base::VertexAroundFaceCirculator VertexAroundFaceCirculator
typename Base::HasHalfEdgeData HasHalfEdgeData
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.
typename Base::HasEdgeData HasEdgeData
typename Base::EdgeDataCloud EdgeDataCloud
typename Base::FaceIndices FaceIndices
typename Base::EdgeIndex EdgeIndex
typename Base::FaceDataCloud FaceDataCloud
#define PCL_MAKE_ALIGNED_OPERATOR_NEW
Macro to signal a class requires a custom allocator.
Defines functions, macros and traits for allocating and using memory.
Defines all the PCL and non-PCL macros used.
Tag describing the type of the mesh.