43 #include <pcl/geometry/mesh_base.h>
59 template <
class MeshTraitsT>
68 using Ptr = shared_ptr<Self>;
142 add_triangle_[0] = idx_v_0;
143 add_triangle_[1] = idx_v_1;
144 add_triangle_[2] = idx_v_2;
146 return (this->
addFaceImplBase(add_triangle_, face_data, edge_data, half_edge_data));
172 add_quad_[0] = idx_v_0;
173 add_quad_[1] = idx_v_1;
174 add_quad_[2] = idx_v_2;
175 add_quad_[3] = idx_v_3;
177 return (this->
addFaceImplBase(add_quad_, face_data, edge_data, half_edge_data));
183 MeshBase<PolygonMesh<MeshTraitsT>, MeshTraitsT, pcl::geometry::PolygonMeshTag>;
187 addFaceImpl(const VertexIndices& vertices,
188 const FaceData& face_data,
189 const EdgeData& edge_data,
190 const HalfEdgeData& half_edge_data)
192 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
General half-edge mesh that can store any polygon with a minimum number of vertices of 3.
typename Base::FaceIndices FaceIndices
typename Base::HasFaceData HasFaceData
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::HalfEdgeIndex HalfEdgeIndex
typename Base::VertexIndex VertexIndex
typename Base::EdgeDataCloud EdgeDataCloud
typename Base::IsManifold IsManifold
typename Base::VertexIndices VertexIndices
typename Base::VertexDataCloud VertexDataCloud
typename Base::FaceAroundVertexCirculator FaceAroundVertexCirculator
typename Base::HalfEdgeData HalfEdgeData
typename Base::InnerHalfEdgeAroundFaceCirculator InnerHalfEdgeAroundFaceCirculator
typename Base::EdgeData EdgeData
typename Base::HasVertexData HasVertexData
typename Base::FaceData FaceData
typename Base::FaceDataCloud FaceDataCloud
PolygonMesh()
Constructor.
typename Base::EdgeIndices EdgeIndices
shared_ptr< const Self > ConstPtr
typename Base::VertexData VertexData
typename Base::MeshTag MeshTag
typename Base::OutgoingHalfEdgeAroundVertexCirculator OutgoingHalfEdgeAroundVertexCirculator
typename Base::FaceAroundFaceCirculator FaceAroundFaceCirculator
typename Base::HasEdgeData HasEdgeData
typename Base::VertexAroundFaceCirculator VertexAroundFaceCirculator
typename Base::EdgeIndex EdgeIndex
typename Base::OuterHalfEdgeAroundFaceCirculator OuterHalfEdgeAroundFaceCirculator
typename Base::FaceIndex FaceIndex
typename Base::VertexAroundVertexCirculator VertexAroundVertexCirculator
typename Base::HalfEdgeIndices HalfEdgeIndices
typename Base::IncomingHalfEdgeAroundVertexCirculator IncomingHalfEdgeAroundVertexCirculator
typename Base::HalfEdgeDataCloud HalfEdgeDataCloud
typename Base::HasHalfEdgeData HasHalfEdgeData
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.
#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.