Point Cloud Library (PCL)  1.7.0
Vertices.h
1 #ifndef PCL_MESSAGE_VERTICES_H
2 #define PCL_MESSAGE_VERTICES_H
3 #include <string>
4 #include <vector>
5 #include <ostream>
6 #include <pcl/pcl_macros.h>
7 
8 namespace pcl
9 {
10  /** \brief Describes a set of vertices in a polygon mesh, by basically
11  * storing an array of indices.
12  */
13  struct Vertices
14  {
16  {}
17 
18  std::vector<uint32_t> vertices;
19 
20  public:
21  typedef boost::shared_ptr<Vertices> Ptr;
22  typedef boost::shared_ptr<Vertices const> ConstPtr;
23  }; // struct Vertices
24 
25 
26  typedef boost::shared_ptr<Vertices> VerticesPtr;
27  typedef boost::shared_ptr<Vertices const> VerticesConstPtr;
28 
29  inline std::ostream& operator<<(std::ostream& s, const ::pcl::Vertices & v)
30  {
31  s << "vertices[]" << std::endl;
32  for (size_t i = 0; i < v.vertices.size (); ++i)
33  {
34  s << " vertices[" << i << "]: ";
35  s << " " << v.vertices[i] << std::endl;
36  }
37  return (s);
38  }
39 } // namespace pcl
40 
41 #endif // PCL_MESSAGE_VERTICES_H
42