-
Notifications
You must be signed in to change notification settings - Fork 13
/
_polygon_mesh_8h_source.html
220 lines (218 loc) · 31.4 KB
/
_polygon_mesh_8h_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Point Cloud Library (PCL): pcl/PolygonMesh.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">Point Cloud Library (PCL)
 <span id="projectnumber">1.14.1-dev</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_39ef148c3cf3468c290ae8c03b3c03af.html">pcl</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">PolygonMesh.h</div> </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#pragma once</span></div>
<div class="line"><a name="l00002"></a><span class="lineno"> 2</span>  </div>
<div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="preprocessor">#include <algorithm></span></div>
<div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="preprocessor">#include <vector></span></div>
<div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="preprocessor">#include <ostream></span></div>
<div class="line"><a name="l00006"></a><span class="lineno"> 6</span>  </div>
<div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment">// Include the correct Header path here</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="preprocessor">#include <pcl/PCLHeader.h></span></div>
<div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="preprocessor">#include <pcl/PCLPointCloud2.h></span></div>
<div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="preprocessor">#include <pcl/Vertices.h></span></div>
<div class="line"><a name="l00011"></a><span class="lineno"> 11</span>  </div>
<div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="keyword">namespace </span><a class="code" href="namespacepcl.html">pcl</a></div>
<div class="line"><a name="l00013"></a><span class="lineno"> 13</span> {</div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="structpcl_1_1_polygon_mesh.html"> 14</a></span>  <span class="keyword">struct </span><a class="code" href="structpcl_1_1_polygon_mesh.html">PolygonMesh</a></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span>  {</div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="structpcl_1_1_polygon_mesh.html#abccbf1724c5f66546c265cf4ccbba4f7"> 16</a></span>  <a class="code" href="structpcl_1_1_polygon_mesh.html#abccbf1724c5f66546c265cf4ccbba4f7">PolygonMesh</a> () = <span class="keywordflow">default</span>;</div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span>  </div>
<div class="line"><a name="l00018"></a><span class="lineno"><a class="line" href="structpcl_1_1_polygon_mesh.html#a33b86cc4e7cd739471c1f12174fa4396"> 18</a></span>  <a class="code" href="structpcl_1_1_p_c_l_header.html">::pcl::PCLHeader</a> <a class="code" href="structpcl_1_1_polygon_mesh.html#a33b86cc4e7cd739471c1f12174fa4396">header</a>;</div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span>  </div>
<div class="line"><a name="l00020"></a><span class="lineno"><a class="line" href="structpcl_1_1_polygon_mesh.html#ace54c6ce82d749be3c11bd0ef11fa492"> 20</a></span>  <a class="code" href="structpcl_1_1_p_c_l_point_cloud2.html">::pcl::PCLPointCloud2</a> <a class="code" href="structpcl_1_1_polygon_mesh.html#ace54c6ce82d749be3c11bd0ef11fa492">cloud</a>;</div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span>  </div>
<div class="line"><a name="l00022"></a><span class="lineno"><a class="line" href="structpcl_1_1_polygon_mesh.html#abf7456279d6f819d7565187036118782"> 22</a></span>  std::vector< ::pcl::Vertices> <a class="code" href="structpcl_1_1_polygon_mesh.html#abf7456279d6f819d7565187036118782">polygons</a>;</div>
<div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"></span> </div>
<div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> /** \brief Inplace concatenate two pcl::PolygonMesh</span></div>
<div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> * \param[in,out] mesh1 the first input and output mesh</span></div>
<div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> * \param[in] mesh2 the second input mesh</span></div>
<div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> * \return true if successful, false otherwise (unexpected error)</span></div>
<div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"> 29</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="structpcl_1_1_polygon_mesh.html#a1008676cbc02efcee4dd6c84a4fea84f"> 30</a></span>  <a class="code" href="structpcl_1_1_polygon_mesh.html#a1008676cbc02efcee4dd6c84a4fea84f">concatenate</a> (<a class="code" href="structpcl_1_1_polygon_mesh.html">pcl::PolygonMesh</a> &mesh1, <span class="keyword">const</span> <a class="code" href="structpcl_1_1_polygon_mesh.html">pcl::PolygonMesh</a> &mesh2)</div>
<div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  {</div>
<div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keyword">const</span> <span class="keyword">auto</span> point_offset = mesh1.<a class="code" href="structpcl_1_1_polygon_mesh.html#ace54c6ce82d749be3c11bd0ef11fa492">cloud</a>.<a class="code" href="structpcl_1_1_p_c_l_point_cloud2.html#a0c8b3840f339205b7ea5c7e292ada348">width</a> * mesh1.<a class="code" href="structpcl_1_1_polygon_mesh.html#ace54c6ce82d749be3c11bd0ef11fa492">cloud</a>.<a class="code" href="structpcl_1_1_p_c_l_point_cloud2.html#a28a995a6a80bc696bf7b273ee532d1a2">height</a>;</div>
<div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  </div>
<div class="line"><a name="l00034"></a><span class="lineno"> 34</span>  <span class="keywordtype">bool</span> success = <a class="code" href="structpcl_1_1_p_c_l_point_cloud2.html#a7346aad6c08fcbd799f87f9676e5e0a1">pcl::PCLPointCloud2::concatenate</a>(mesh1.<a class="code" href="structpcl_1_1_polygon_mesh.html#ace54c6ce82d749be3c11bd0ef11fa492">cloud</a>, mesh2.<a class="code" href="structpcl_1_1_polygon_mesh.html#ace54c6ce82d749be3c11bd0ef11fa492">cloud</a>);</div>
<div class="line"><a name="l00035"></a><span class="lineno"> 35</span>  <span class="keywordflow">if</span> (!success) {</div>
<div class="line"><a name="l00036"></a><span class="lineno"> 36</span>  <span class="keywordflow">return</span> <span class="keyword">false</span>;</div>
<div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  }</div>
<div class="line"><a name="l00038"></a><span class="lineno"> 38</span>  <span class="comment">// Make the resultant polygon mesh take the newest stamp</span></div>
<div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  mesh1.<a class="code" href="structpcl_1_1_polygon_mesh.html#a33b86cc4e7cd739471c1f12174fa4396">header</a>.<a class="code" href="structpcl_1_1_p_c_l_header.html#a79f0c4917abfc7e89ce64174907aea9c">stamp</a> = std::max(mesh1.<a class="code" href="structpcl_1_1_polygon_mesh.html#a33b86cc4e7cd739471c1f12174fa4396">header</a>.<a class="code" href="structpcl_1_1_p_c_l_header.html#a79f0c4917abfc7e89ce64174907aea9c">stamp</a>, mesh2.<a class="code" href="structpcl_1_1_polygon_mesh.html#a33b86cc4e7cd739471c1f12174fa4396">header</a>.<a class="code" href="structpcl_1_1_p_c_l_header.html#a79f0c4917abfc7e89ce64174907aea9c">stamp</a>);</div>
<div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  </div>
<div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  std::transform(mesh2.<a class="code" href="structpcl_1_1_polygon_mesh.html#abf7456279d6f819d7565187036118782">polygons</a>.begin (),</div>
<div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  mesh2.<a class="code" href="structpcl_1_1_polygon_mesh.html#abf7456279d6f819d7565187036118782">polygons</a>.end (),</div>
<div class="line"><a name="l00043"></a><span class="lineno"> 43</span>  std::back_inserter (mesh1.<a class="code" href="structpcl_1_1_polygon_mesh.html#abf7456279d6f819d7565187036118782">polygons</a>),</div>
<div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  [point_offset](<span class="keyword">auto</span> polygon)</div>
<div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  {</div>
<div class="line"><a name="l00046"></a><span class="lineno"> 46</span>  std::transform(polygon.vertices.begin (),</div>
<div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  polygon.vertices.end (),</div>
<div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  polygon.vertices.begin (),</div>
<div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  [point_offset](auto& point_idx)</div>
<div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  {</div>
<div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  return point_idx + point_offset;</div>
<div class="line"><a name="l00052"></a><span class="lineno"> 52</span>  });</div>
<div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  <span class="keywordflow">return</span> polygon;</div>
<div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  });</div>
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>  </div>
<div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">return</span> <span class="keyword">true</span>;</div>
<div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  }</div>
<div class="line"><a name="l00058"></a><span class="lineno"> 58</span> <span class="comment"></span> </div>
<div class="line"><a name="l00059"></a><span class="lineno"> 59</span> <span class="comment"> /** \brief Concatenate two pcl::PolygonMesh</span></div>
<div class="line"><a name="l00060"></a><span class="lineno"> 60</span> <span class="comment"> * \param[in] mesh1 the first input mesh</span></div>
<div class="line"><a name="l00061"></a><span class="lineno"> 61</span> <span class="comment"> * \param[in] mesh2 the second input mesh</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"> 62</span> <span class="comment"> * \param[out] mesh_out the resultant output mesh</span></div>
<div class="line"><a name="l00063"></a><span class="lineno"> 63</span> <span class="comment"> * \return true if successful, false otherwise (unexpected error)</span></div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>  <span class="keyword">static</span> <span class="keywordtype">bool</span></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="structpcl_1_1_polygon_mesh.html#ac3e529249febcf8cd358dfe3abee6ead"> 66</a></span>  <a class="code" href="structpcl_1_1_polygon_mesh.html#ac3e529249febcf8cd358dfe3abee6ead">concatenate</a> (<span class="keyword">const</span> <a class="code" href="structpcl_1_1_polygon_mesh.html">PolygonMesh</a> &mesh1,</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>  <span class="keyword">const</span> <a class="code" href="structpcl_1_1_polygon_mesh.html">PolygonMesh</a> &mesh2,</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>  <a class="code" href="structpcl_1_1_polygon_mesh.html">PolygonMesh</a> &mesh_out)</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>  {</div>
<div class="line"><a name="l00070"></a><span class="lineno"> 70</span>  mesh_out = mesh1;</div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span>  <span class="keywordflow">return</span> <a class="code" href="group__common.html#ga15bd342ae8b2f7b0722c9290524e65d4">concatenate</a>(mesh_out, mesh2);</div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span>  }</div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"></span> </div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"> /** \brief Add another polygon mesh to the current mesh.</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"> * \param[in] rhs the mesh to add to the current mesh</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"> * \return the new mesh as a concatenation of the current mesh and the new given mesh</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00078"></a><span class="lineno"> 78</span>  <span class="keyword">inline</span> <a class="code" href="structpcl_1_1_polygon_mesh.html">PolygonMesh</a>&</div>
<div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="structpcl_1_1_polygon_mesh.html#a1b79fda7bf0599b5199e0804371981f2"> 79</a></span>  operator += (<span class="keyword">const</span> <a class="code" href="structpcl_1_1_polygon_mesh.html">PolygonMesh</a>& rhs)</div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  {</div>
<div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <a class="code" href="group__common.html#ga15bd342ae8b2f7b0722c9290524e65d4">concatenate</a>((*<span class="keyword">this</span>), rhs);</div>
<div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  <span class="keywordflow">return</span> (*<span class="keyword">this</span>);</div>
<div class="line"><a name="l00083"></a><span class="lineno"> 83</span>  }</div>
<div class="line"><a name="l00084"></a><span class="lineno"> 84</span> <span class="comment"></span> </div>
<div class="line"><a name="l00085"></a><span class="lineno"> 85</span> <span class="comment"> /** \brief Add a polygon mesh to another mesh.</span></div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span> <span class="comment"> * \param[in] rhs the mesh to add to the current mesh</span></div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span> <span class="comment"> * \return the new mesh as a concatenation of the current mesh and the new given mesh</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"> 88</span> <span class="comment"> */</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structpcl_1_1_polygon_mesh.html">PolygonMesh</a></div>
<div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="structpcl_1_1_polygon_mesh.html#ae27ed1d3c0e92924d35adb35723e7b46"> 90</a></span>  operator + (<span class="keyword">const</span> <a class="code" href="structpcl_1_1_polygon_mesh.html">PolygonMesh</a>& rhs)</div>
<div class="line"><a name="l00091"></a><span class="lineno"> 91</span>  {</div>
<div class="line"><a name="l00092"></a><span class="lineno"> 92</span>  <span class="keywordflow">return</span> (<a class="code" href="structpcl_1_1_polygon_mesh.html">PolygonMesh</a> (*<span class="keyword">this</span>) += rhs);</div>
<div class="line"><a name="l00093"></a><span class="lineno"> 93</span>  }</div>
<div class="line"><a name="l00094"></a><span class="lineno"> 94</span>  </div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>  <span class="keyword">public</span>:</div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="structpcl_1_1_polygon_mesh.html#a99c6fe1a6692ce2d9cd51363e254e554"> 96</a></span>  <span class="keyword">using</span> <a class="code" href="structpcl_1_1_polygon_mesh.html#a99c6fe1a6692ce2d9cd51363e254e554">Ptr</a> = shared_ptr< ::pcl::PolygonMesh>;</div>
<div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structpcl_1_1_polygon_mesh.html#ae9324cf4996134d4d1b8034b3fceee90"> 97</a></span>  <span class="keyword">using</span> <a class="code" href="structpcl_1_1_polygon_mesh.html#ae9324cf4996134d4d1b8034b3fceee90">ConstPtr</a> = shared_ptr<const ::pcl::PolygonMesh>;</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>  }; <span class="comment">// struct PolygonMesh</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>  </div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="namespacepcl.html#a52624ff976b10c9bc0bbec9fec13c5f3"> 100</a></span>  <span class="keyword">using</span> <a class="code" href="namespacepcl.html#a52624ff976b10c9bc0bbec9fec13c5f3">PolygonMeshPtr</a> = <a class="code" href="structpcl_1_1_polygon_mesh.html#a99c6fe1a6692ce2d9cd51363e254e554">PolygonMesh::Ptr</a>;</div>
<div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="namespacepcl.html#a0da120eaa8024e3bf1ef6a4c4ec29f32"> 101</a></span>  <span class="keyword">using</span> <a class="code" href="namespacepcl.html#a0da120eaa8024e3bf1ef6a4c4ec29f32">PolygonMeshConstPtr</a> = <a class="code" href="structpcl_1_1_polygon_mesh.html#ae9324cf4996134d4d1b8034b3fceee90">PolygonMesh::ConstPtr</a>;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  </div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="namespacepcl.html#a9f1aabda7f7d9292915b26e52bae7f5d"> 103</a></span>  <span class="keyword">inline</span> std::ostream& <a class="code" href="namespacepcl_1_1io_1_1ply_1_1io__operators.html#a9b39b7227322f951734a8a510eb2b434">operator<<</a>(std::ostream& s, const ::pcl::PolygonMesh &v)</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  {</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  s << <span class="stringliteral">"header: "</span> << std::endl;</div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  s << v.header;</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>  s << <span class="stringliteral">"cloud: "</span> << std::endl;</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>  s << v.cloud;</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>  s << <span class="stringliteral">"polygons[]"</span> << std::endl;</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>  <span class="keywordflow">for</span> (std::size_t i = 0; i < v.polygons.size (); ++i)</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>  {</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>  s << <span class="stringliteral">" polygons["</span> << i << <span class="stringliteral">"]: "</span> << std::endl;</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>  s << v.polygons[i];</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>  }</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>  <span class="keywordflow">return</span> (s);</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  }</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  </div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span> } <span class="comment">// namespace pcl</span></div>
<div class="ttc" id="agroup__common_html_ga15bd342ae8b2f7b0722c9290524e65d4"><div class="ttname"><a href="group__common.html#ga15bd342ae8b2f7b0722c9290524e65d4">pcl::concatenate</a></div><div class="ttdeci">bool concatenate(const pcl::PointCloud< PointT > &cloud1, const pcl::PointCloud< PointT > &cloud2, pcl::PointCloud< PointT > &cloud_out)</div><div class="ttdoc">Concatenate two pcl::PointCloud<PointT></div><div class="ttdef"><b>Definition:</b> <a href="common_2include_2pcl_2common_2io_8h_source.html#l00281">io.h:281</a></div></div>
<div class="ttc" id="anamespacepcl_1_1io_1_1ply_1_1io__operators_html_a9b39b7227322f951734a8a510eb2b434"><div class="ttname"><a href="namespacepcl_1_1io_1_1ply_1_1io__operators.html#a9b39b7227322f951734a8a510eb2b434">pcl::io::ply::io_operators::operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &ostream, int8 value)</div><div class="ttdef"><b>Definition:</b> <a href="io__operators_8h_source.html#l00086">io_operators.h:86</a></div></div>
<div class="ttc" id="anamespacepcl_html"><div class="ttname"><a href="namespacepcl.html">pcl</a></div><div class="ttdef"><b>Definition:</b> <a href="2d_2include_2pcl_22d_2convolution_8h_source.html#l00046">convolution.h:46</a></div></div>
<div class="ttc" id="anamespacepcl_html_a0da120eaa8024e3bf1ef6a4c4ec29f32"><div class="ttname"><a href="namespacepcl.html#a0da120eaa8024e3bf1ef6a4c4ec29f32">pcl::PolygonMeshConstPtr</a></div><div class="ttdeci">PolygonMesh::ConstPtr PolygonMeshConstPtr</div><div class="ttdef"><b>Definition:</b> <a href="_polygon_mesh_8h_source.html#l00101">PolygonMesh.h:101</a></div></div>
<div class="ttc" id="anamespacepcl_html_a52624ff976b10c9bc0bbec9fec13c5f3"><div class="ttname"><a href="namespacepcl.html#a52624ff976b10c9bc0bbec9fec13c5f3">pcl::PolygonMeshPtr</a></div><div class="ttdeci">PolygonMesh::Ptr PolygonMeshPtr</div><div class="ttdef"><b>Definition:</b> <a href="_polygon_mesh_8h_source.html#l00100">PolygonMesh.h:100</a></div></div>
<div class="ttc" id="astructpcl_1_1_p_c_l_header_html"><div class="ttname"><a href="structpcl_1_1_p_c_l_header.html">pcl::PCLHeader</a></div><div class="ttdef"><b>Definition:</b> <a href="_p_c_l_header_8h_source.html#l00010">PCLHeader.h:11</a></div></div>
<div class="ttc" id="astructpcl_1_1_p_c_l_header_html_a79f0c4917abfc7e89ce64174907aea9c"><div class="ttname"><a href="structpcl_1_1_p_c_l_header.html#a79f0c4917abfc7e89ce64174907aea9c">pcl::PCLHeader::stamp</a></div><div class="ttdeci">std::uint64_t stamp</div><div class="ttdoc">A timestamp associated with the time when the data was acquired.</div><div class="ttdef"><b>Definition:</b> <a href="_p_c_l_header_8h_source.html#l00018">PCLHeader.h:18</a></div></div>
<div class="ttc" id="astructpcl_1_1_p_c_l_point_cloud2_html"><div class="ttname"><a href="structpcl_1_1_p_c_l_point_cloud2.html">pcl::PCLPointCloud2</a></div><div class="ttdef"><b>Definition:</b> <a href="_p_c_l_point_cloud2_8h_source.html#l00016">PCLPointCloud2.h:17</a></div></div>
<div class="ttc" id="astructpcl_1_1_p_c_l_point_cloud2_html_a0c8b3840f339205b7ea5c7e292ada348"><div class="ttname"><a href="structpcl_1_1_p_c_l_point_cloud2.html#a0c8b3840f339205b7ea5c7e292ada348">pcl::PCLPointCloud2::width</a></div><div class="ttdeci">uindex_t width</div><div class="ttdef"><b>Definition:</b> <a href="_p_c_l_point_cloud2_8h_source.html#l00021">PCLPointCloud2.h:21</a></div></div>
<div class="ttc" id="astructpcl_1_1_p_c_l_point_cloud2_html_a28a995a6a80bc696bf7b273ee532d1a2"><div class="ttname"><a href="structpcl_1_1_p_c_l_point_cloud2.html#a28a995a6a80bc696bf7b273ee532d1a2">pcl::PCLPointCloud2::height</a></div><div class="ttdeci">uindex_t height</div><div class="ttdef"><b>Definition:</b> <a href="_p_c_l_point_cloud2_8h_source.html#l00020">PCLPointCloud2.h:20</a></div></div>
<div class="ttc" id="astructpcl_1_1_p_c_l_point_cloud2_html_a7346aad6c08fcbd799f87f9676e5e0a1"><div class="ttname"><a href="structpcl_1_1_p_c_l_point_cloud2.html#a7346aad6c08fcbd799f87f9676e5e0a1">pcl::PCLPointCloud2::concatenate</a></div><div class="ttdeci">static bool concatenate(pcl::PCLPointCloud2 &cloud1, const pcl::PCLPointCloud2 &cloud2)</div><div class="ttdoc">Inplace concatenate two pcl::PCLPointCloud2.</div></div>
<div class="ttc" id="astructpcl_1_1_polygon_mesh_html"><div class="ttname"><a href="structpcl_1_1_polygon_mesh.html">pcl::PolygonMesh</a></div><div class="ttdef"><b>Definition:</b> <a href="_polygon_mesh_8h_source.html#l00014">PolygonMesh.h:15</a></div></div>
<div class="ttc" id="astructpcl_1_1_polygon_mesh_html_a1008676cbc02efcee4dd6c84a4fea84f"><div class="ttname"><a href="structpcl_1_1_polygon_mesh.html#a1008676cbc02efcee4dd6c84a4fea84f">pcl::PolygonMesh::concatenate</a></div><div class="ttdeci">static bool concatenate(pcl::PolygonMesh &mesh1, const pcl::PolygonMesh &mesh2)</div><div class="ttdoc">Inplace concatenate two pcl::PolygonMesh.</div><div class="ttdef"><b>Definition:</b> <a href="_polygon_mesh_8h_source.html#l00030">PolygonMesh.h:30</a></div></div>
<div class="ttc" id="astructpcl_1_1_polygon_mesh_html_a33b86cc4e7cd739471c1f12174fa4396"><div class="ttname"><a href="structpcl_1_1_polygon_mesh.html#a33b86cc4e7cd739471c1f12174fa4396">pcl::PolygonMesh::header</a></div><div class="ttdeci">::pcl::PCLHeader header</div><div class="ttdef"><b>Definition:</b> <a href="_polygon_mesh_8h_source.html#l00018">PolygonMesh.h:18</a></div></div>
<div class="ttc" id="astructpcl_1_1_polygon_mesh_html_a99c6fe1a6692ce2d9cd51363e254e554"><div class="ttname"><a href="structpcl_1_1_polygon_mesh.html#a99c6fe1a6692ce2d9cd51363e254e554">pcl::PolygonMesh::Ptr</a></div><div class="ttdeci">shared_ptr< ::pcl::PolygonMesh > Ptr</div><div class="ttdef"><b>Definition:</b> <a href="_polygon_mesh_8h_source.html#l00096">PolygonMesh.h:96</a></div></div>
<div class="ttc" id="astructpcl_1_1_polygon_mesh_html_abccbf1724c5f66546c265cf4ccbba4f7"><div class="ttname"><a href="structpcl_1_1_polygon_mesh.html#abccbf1724c5f66546c265cf4ccbba4f7">pcl::PolygonMesh::PolygonMesh</a></div><div class="ttdeci">PolygonMesh()=default</div></div>
<div class="ttc" id="astructpcl_1_1_polygon_mesh_html_abf7456279d6f819d7565187036118782"><div class="ttname"><a href="structpcl_1_1_polygon_mesh.html#abf7456279d6f819d7565187036118782">pcl::PolygonMesh::polygons</a></div><div class="ttdeci">std::vector< ::pcl::Vertices > polygons</div><div class="ttdef"><b>Definition:</b> <a href="_polygon_mesh_8h_source.html#l00022">PolygonMesh.h:22</a></div></div>
<div class="ttc" id="astructpcl_1_1_polygon_mesh_html_ac3e529249febcf8cd358dfe3abee6ead"><div class="ttname"><a href="structpcl_1_1_polygon_mesh.html#ac3e529249febcf8cd358dfe3abee6ead">pcl::PolygonMesh::concatenate</a></div><div class="ttdeci">static bool concatenate(const PolygonMesh &mesh1, const PolygonMesh &mesh2, PolygonMesh &mesh_out)</div><div class="ttdoc">Concatenate two pcl::PolygonMesh.</div><div class="ttdef"><b>Definition:</b> <a href="_polygon_mesh_8h_source.html#l00066">PolygonMesh.h:66</a></div></div>
<div class="ttc" id="astructpcl_1_1_polygon_mesh_html_ace54c6ce82d749be3c11bd0ef11fa492"><div class="ttname"><a href="structpcl_1_1_polygon_mesh.html#ace54c6ce82d749be3c11bd0ef11fa492">pcl::PolygonMesh::cloud</a></div><div class="ttdeci">::pcl::PCLPointCloud2 cloud</div><div class="ttdef"><b>Definition:</b> <a href="_polygon_mesh_8h_source.html#l00020">PolygonMesh.h:20</a></div></div>
<div class="ttc" id="astructpcl_1_1_polygon_mesh_html_ae9324cf4996134d4d1b8034b3fceee90"><div class="ttname"><a href="structpcl_1_1_polygon_mesh.html#ae9324cf4996134d4d1b8034b3fceee90">pcl::PolygonMesh::ConstPtr</a></div><div class="ttdeci">shared_ptr< const ::pcl::PolygonMesh > ConstPtr</div><div class="ttdef"><b>Definition:</b> <a href="_polygon_mesh_8h_source.html#l00097">PolygonMesh.h:97</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<hr>
<div id="footer">
<p>
Except where otherwise noted, the PointClouds.org web pages are licensed under <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0</a>.
</p>
<p>Pages generated on Sat Dec 21 2024 21:35:59</p>
</div> <!-- #footer -->
</body>
</html>