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