Point Cloud Library (PCL)  1.14.1-dev
Vertices.h
1 #pragma once
2 
3 #include <pcl/memory.h>
4 #include <pcl/pcl_macros.h>
5 #include <pcl/types.h>
6 
7 #include <ostream>
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  {
16  Vertices () = default;
17 
19 
20  public:
21  using Ptr = shared_ptr<Vertices>;
22  using ConstPtr = shared_ptr<const Vertices>;
23  }; // struct Vertices
24 
25 
28 
29  inline std::ostream& operator<<(std::ostream& s, const ::pcl::Vertices & v)
30  {
31  s << "vertices[]" << std::endl;
32  for (std::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
Defines functions, macros and traits for allocating and using memory.
std::ostream & operator<<(std::ostream &os, const BivariatePolynomialT< real > &p)
IndicesAllocator<> Indices
Type used for indices in PCL.
Definition: types.h:133
Vertices::Ptr VerticesPtr
Definition: Vertices.h:26
Vertices::ConstPtr VerticesConstPtr
Definition: Vertices.h:27
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:15
Vertices()=default
shared_ptr< const Vertices > ConstPtr
Definition: Vertices.h:22
shared_ptr< Vertices > Ptr
Definition: Vertices.h:21
Indices vertices
Definition: Vertices.h:18
Defines basic non-point types used by PCL.