Point Cloud Library (PCL)
1.7.0
|
00001 #ifndef PCL_MESSAGE_VERTICES_H 00002 #define PCL_MESSAGE_VERTICES_H 00003 #include <string> 00004 #include <vector> 00005 #include <ostream> 00006 #include <pcl/pcl_macros.h> 00007 00008 namespace pcl 00009 { 00010 /** \brief Describes a set of vertices in a polygon mesh, by basically 00011 * storing an array of indices. 00012 */ 00013 struct Vertices 00014 { 00015 Vertices () : vertices () 00016 {} 00017 00018 std::vector<uint32_t> vertices; 00019 00020 public: 00021 typedef boost::shared_ptr<Vertices> Ptr; 00022 typedef boost::shared_ptr<Vertices const> ConstPtr; 00023 }; // struct Vertices 00024 00025 00026 typedef boost::shared_ptr<Vertices> VerticesPtr; 00027 typedef boost::shared_ptr<Vertices const> VerticesConstPtr; 00028 00029 inline std::ostream& operator<<(std::ostream& s, const ::pcl::Vertices & v) 00030 { 00031 s << "vertices[]" << std::endl; 00032 for (size_t i = 0; i < v.vertices.size (); ++i) 00033 { 00034 s << " vertices[" << i << "]: "; 00035 s << " " << v.vertices[i] << std::endl; 00036 } 00037 return (s); 00038 } 00039 } // namespace pcl 00040 00041 #endif // PCL_MESSAGE_VERTICES_H 00042