Point Cloud Library (PCL)  1.11.1
Vertices.h
1 #pragma once
2 
3 #include <pcl/memory.h>
4 #include <pcl/pcl_macros.h>
5 
6 #include <string>
7 #include <vector>
8 #include <ostream>
9 
10 namespace pcl
11 {
12  /** \brief Describes a set of vertices in a polygon mesh, by basically
13  * storing an array of indices.
14  */
15  struct Vertices
16  {
18  {}
19 
20  std::vector<std::uint32_t> vertices;
21 
22  public:
23  using Ptr = shared_ptr<Vertices>;
24  using ConstPtr = shared_ptr<const Vertices>;
25  }; // struct Vertices
26 
27 
30 
31  inline std::ostream& operator<<(std::ostream& s, const ::pcl::Vertices & v)
32  {
33  s << "vertices[]" << std::endl;
34  for (std::size_t i = 0; i < v.vertices.size (); ++i)
35  {
36  s << " vertices[" << i << "]: ";
37  s << " " << v.vertices[i] << std::endl;
38  }
39  return (s);
40  }
41 } // namespace pcl
Defines functions, macros and traits for allocating and using memory.
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
Vertices::Ptr VerticesPtr
Definition: Vertices.h:28
Vertices::ConstPtr VerticesConstPtr
Definition: Vertices.h:29
Defines all the PCL and non-PCL macros used.
Describes a set of vertices in a polygon mesh, by basically storing an array of indices.
Definition: Vertices.h:16
shared_ptr< const Vertices > ConstPtr
Definition: Vertices.h:24
std::vector< std::uint32_t > vertices
Definition: Vertices.h:20
shared_ptr< Vertices > Ptr
Definition: Vertices.h:23