58 template <
class MeshT>
62 std::vector<typename MeshT::HalfEdgeIndices>& boundary_he_collection,
63 const std::size_t expected_size = 3)
67 using HalfEdgeIndices =
typename Mesh::HalfEdgeIndices;
68 using IHEAFC =
typename Mesh::InnerHalfEdgeAroundFaceCirculator;
70 boundary_he_collection.clear();
72 HalfEdgeIndices boundary_he;
73 boundary_he.reserve(expected_size);
74 std::vector<bool> visited(mesh.sizeEdges(),
false);
75 IHEAFC circ, circ_end;
81 circ = mesh.getInnerHalfEdgeAroundFaceCirculator(i);
85 boundary_he.push_back(circ.getTargetIndex());
86 }
while (++circ != circ_end);
88 boundary_he_collection.push_back(boundary_he);
int get() const
Get the index.
pcl::detail::MeshIndex< struct HalfEdgeIndexTag > HalfEdgeIndex
Index used to access elements in the half-edge mesh.
void getBoundBoundaryHalfEdges(const MeshT &mesh, std::vector< typename MeshT::HalfEdgeIndices > &boundary_he_collection, const std::size_t expected_size=3)
Get a collection of boundary half-edges for the input mesh.
EdgeIndex toEdgeIndex(const HalfEdgeIndex &index)
Convert the given half-edge index to an edge index.