-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathclassCGAL_1_1Polyhedron__incremental__builder__3.html
645 lines (610 loc) · 53.5 KB
/
classCGAL_1_1Polyhedron__incremental__builder__3.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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
<!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>
<link rel="canonical" href="https://doc.cgal.org/latest/Polyhedron/classCGAL_1_1Polyhedron__incremental__builder__3.html"/>
<link rel="icon" type="image/png" href="../Manual/g-196x196-doc.png">
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=11">
<meta name="generator" content="Doxygen 1.9.6">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>CGAL 6.1 - 3D Polyhedral Surface: CGAL::Polyhedron_incremental_builder_3< HDS > Class Template Reference</title>
<!-- <link href="../Manual/tabs.css" rel="stylesheet" type="text/css"/> -->
<script type="text/javascript" src="../Manual/jquery.js"></script>
<script type="text/javascript" src="../Manual/dynsections.js"></script>
<script src="../Manual/hacks.js" type="text/javascript"></script>
<!-- Manually include treeview and search to avoid bloat and to fix
paths to the directory Manual . -->
<!-- $.treeview -->
<!-- $.search -->
<link href="navtree.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../Manual/resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="../Manual/search/search.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../Manual/search/searchdata.js"></script>
<script type="text/javascript" src="../Manual/search/search.js"></script>
<script type="text/javascript">
$(document).ready(function() { init_search(); });
</script>
<link href="../Manual/search/search.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../Manual/search/search.js"></script>
<!-- Manually done below. -->
<link href="../Manual/doxygen.css" rel="stylesheet" type="text/css">
<link href="../Manual/cgal_stylesheet.css" rel="stylesheet" type="text/css">
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
TeX: {
Macros: {
qprel: [ "{\\gtreqless}", 0],
qpx: [ "{\\mathbf{x}}", 0],
qpl: [ "{\\mathbf{l}}", 0],
qpu: [ "{\\mathbf{u}}", 0],
qpc: [ "{\\mathbf{c}}", 0],
qpb: [ "{\\mathbf{b}}", 0],
qpy: [ "{\\mathbf{y}}", 0],
qpw: [ "{\\mathbf{w}}", 0],
qplambda: [ "{\\mathbf{\\lambda}}", 0],
ssWpoint: [ "{\\bf #1}", 1],
ssWeight: [ "{w_{#1}}", 1],
dabs: [ "{\\parallel\\! #1 \\!\\parallel}", 1],
E: [ "{\\mathrm{E}}", 0],
A: [ "{\\mathrm{A}}", 0],
R: [ "{\\mathrm{R}}", 0],
N: [ "{\\mathrm{N}}", 0],
Q: [ "{\\mathrm{Q}}", 0],
Z: [ "{\\mathrm{Z}}", 0],
ccSum: [ "{\\sum_{#1}^{#2}{#3}}", 3],
ccProd: [ "{\\prod_{#1}^{#2}{#3}}", 3],
pyr: [ "{\\operatorname{Pyr}}", 0],
aff: [ "{\\operatorname{aff}}", 0],
Ac: [ "{\\cal A}", 0],
Sc: [ "{\\cal S}", 0],
},
equationNumbers: { autoNumber: "AMS" }
}
}
);
MathJax.Hub.Register.StartupHook("TeX Jax Ready",function () {
var PARSE = MathJax.InputJax.TeX.Parse,
TEXT = PARSE.prototype.InternalText;
PARSE.Augment({
InternalText: function (text,def) {
text = text.replace(/\\/g,"");
return TEXT.call(this,text,def);
}
});
});
//]]>
</script>
<script type="text/javascript" async="async" src="https://cdn.jsdelivr.net/npm/mathjax@2/MathJax.js"></script>
<script src="modules.js" type="text/javascript"></script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="back-nav">
<ul>
<li><a href="https://www.cgal.org/">cgal.org</a></li>
<li><a href="../Manual/index.html">Top</a></li>
<li><a href="../Manual/general_intro.html">Getting Started</a></li>
<li><a href="../Manual/tutorials.html">Tutorials</a></li>
<li><a href="../Manual/packages.html">Package Overview</a></li>
<li><a href="../Manual/how_to_cite_cgal.html">Acknowledging CGAL</a></li>
</ul>
<!-- In a package SEARCHENGINE = false, so we cannot use
insertion. That's why we have to do it manually here. Notice
that we also take pngs from the Manual. -->
<div id="MSearchBox" class="MSearchBoxInactive">
<span class="left">
<span id="MSearchSelect" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()">
</span>
<input type="text" id="MSearchField" value="" placeholder="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)">
</span>
<span class="right">
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../Manual/search/close.svg" alt=""></a>
</span>
</div>
</div>
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr id="projectrow">
<td id="projectalign">
<div id="projectname">CGAL 6.1 - 3D Polyhedral Surface
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Code below is usually inserted by doxygen when SEARCHENGINE =
true. Notice that the path to the search directory is adjusted to
the top-level.-->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../Manual/search/",'.html');
</script>
<!-- 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">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.6 -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync" style="display: none"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;" class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt MIT */
$(document).ready(function(){initNavTree('classCGAL_1_1Polyhedron__incremental__builder__3.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="classCGAL_1_1Polyhedron__incremental__builder__3-members.html">List of all members</a> </div>
<div class="headertitle"><div class="title">CGAL::Polyhedron_incremental_builder_3< HDS > Class Template Reference<div class="ingroups"><a class="el" href="group__PkgPolyhedronRef.html">3D Polyhedral Surface Reference</a></div></div></div>
</div><!--header-->
<div class="contents">
<p><code>#include <CGAL/Polyhedron_incremental_builder_3.h></code></p>
<a name="details" id="details"></a><h2 class="groupheader">Definition</h2>
<div class="textblock"><div class="compoundTemplParams">template<typename HDS><br>
class CGAL::Polyhedron_incremental_builder_3< HDS ></div><p>The auxiliary class <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html" title="The auxiliary class Polyhedron_incremental_builder_3 supports the incremental construction of polyhed...">Polyhedron_incremental_builder_3</a></code> supports the incremental construction of polyhedral surfaces, which is for example convenient when constructing polyhedral surfaces from file formats, such as the Object File Format (OFF) <a class="el" href="citelist.html#CITEREF_cgal:p-gmgv16-96">[5]</a>, OpenInventor <a class="el" href="citelist.html#CITEREF_cgal:w-impoo-94">[7]</a> or VRML <a class="el" href="citelist.html#CITEREF_cgal:bpp-vrml-95">[1]</a>, <a class="el" href="citelist.html#CITEREF_cgal:vrmls-97">[6]</a>. </p>
<p><code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html" title="The auxiliary class Polyhedron_incremental_builder_3 supports the incremental construction of polyhed...">Polyhedron_incremental_builder_3</a></code> needs access to the internal halfedge data structure of type <code>HDS</code> of the polyhedral surface. It is intended to be used within a modifier, see <code><a class="elRef" href="../Miscellany/classCGAL_1_1Modifier__base.html">Modifier_base</a></code>.</p>
<p>The incremental builder might be of broader interest for other uses of the halfedge data structures, but it is specifically bound to the definition of polyhedral surfaces given here. During construction all conditions of polyhedral surfaces are checked and in case of violation an error status is set. A diagnostic message will be issued to <code>std::cerr</code> if the <code>verbose</code> flag has been set at construction time.</p>
<p>The incremental construction starts with a list of all point coordinates and concludes with a list of all facet polygons. Edges are not explicitly specified. They are derived from the vertex incidence information provided from the facet polygons. The polygons are given as a sequence of vertex indices. The halfedge data structure <code>HDS</code> must support vertices (i.e., <code>Supports_halfedge_vertex</code> \( \equiv\) <code>Tag_true</code>). Vertices and facets can be added in arbitrary order as long as a call to <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a2fdeee856c6746314d1c9c4851e404c5" title="adds a vertex with index i to the current facet.">add_vertex_to_facet()</a></code> refers only to a vertex index that is already known. Some methods return already handles to vertices, facets, and halfedges newly constructed. They can be used to initialize additional fields, however, the incidences in the halfedge-data structure are not stable and are not allowed to be changed.</p>
<p>The incremental builder can work in two modes: <code>RELATIVE_INDEXING</code> (the default), in which a polyhedral surface already contained in the halfedge data structure is ignored and all indices are relative to the newly added surface, or <code>ABSOLUTE_INDEXING</code>, in which all indices are absolute indices including an already existing polyhedral surface. The former mode allows to create easily independent connected components, while the latter mode allows to to continue the construction of an existing surface, the absolute indexing allows to address existing vertices when creating new facets.</p>
<dl class="section see"><dt>See also</dt><dd><code><a class="el" href="classCGAL_1_1Polyhedron__3.html" title="A polyhedral surface Polyhedron_3 consists of vertices V, edges E, facets F and an incidence relation...">CGAL::Polyhedron_3</a><Traits></code> </dd>
<dd>
<code><a class="elRef" href="../HalfedgeDS/classHalfedgeDS.html">HalfedgeDS</a></code> </dd>
<dd>
<code><a class="elRef" href="../Miscellany/classCGAL_1_1Modifier__base.html">CGAL::Modifier_base</a></code></dd></dl>
<p><b>Example</b><br>
</p>
<p>A modifier class creates a new triangle in the halfedge data structure using the incremental builder.</p>
<p><br>
<b>File</b> <a class="el" href="Polyhedron_2polyhedron_prog_incr_builder_8cpp-example.html">Polyhedron/polyhedron_prog_incr_builder.cpp</a> </p><div class="fragment"><div class="line"><span class="preprocessor">#include <CGAL/Simple_cartesian.h></span></div>
<div class="line"><span class="preprocessor">#include <CGAL/Polyhedron_incremental_builder_3.h></span></div>
<div class="line"><span class="preprocessor">#include <CGAL/Polyhedron_3.h></span></div>
<div class="line"><span class="preprocessor">#include <cassert></span></div>
<div class="line"> </div>
<div class="line"><span class="comment">// A modifier creating a triangle with the incremental builder.</span></div>
<div class="line"><span class="keyword">template</span> <<span class="keyword">class</span> HDS></div>
<div class="line"><span class="keyword">class </span>Build_triangle : <span class="keyword">public</span> <a class="code hl_classRef" href="../Miscellany/classCGAL_1_1Modifier__base.html">CGAL::Modifier_base</a><HDS> {</div>
<div class="line"><span class="keyword">public</span>:</div>
<div class="line"> Build_triangle() {}</div>
<div class="line"> <span class="keywordtype">void</span> operator()( HDS& hds) {</div>
<div class="line"> <span class="comment">// Postcondition: hds is a valid polyhedral surface.</span></div>
<div class="line"> <a class="code hl_class" href="classCGAL_1_1Polyhedron__incremental__builder__3.html">CGAL::Polyhedron_incremental_builder_3<HDS></a> B( hds, <span class="keyword">true</span>);</div>
<div class="line"> B.begin_surface( 3, 1, 6);</div>
<div class="line"> <span class="keyword">typedef</span> <span class="keyword">typename</span> HDS::Vertex Vertex;</div>
<div class="line"> <span class="keyword">typedef</span> <span class="keyword">typename</span> Vertex::Point Point;</div>
<div class="line"> B.add_vertex( Point( 0, 0, 0));</div>
<div class="line"> B.add_vertex( Point( 1, 0, 0));</div>
<div class="line"> B.add_vertex( Point( 0, 1, 0));</div>
<div class="line"> B.begin_facet();</div>
<div class="line"> B.add_vertex_to_facet( 0);</div>
<div class="line"> B.add_vertex_to_facet( 1);</div>
<div class="line"> B.add_vertex_to_facet( 2);</div>
<div class="line"> B.end_facet();</div>
<div class="line"> B.end_surface();</div>
<div class="line"> }</div>
<div class="line">};</div>
<div class="line"> </div>
<div class="line"><span class="keyword">typedef</span> <a class="code hl_structRef" href="../Kernel_23/structCGAL_1_1Simple__cartesian.html">CGAL::Simple_cartesian<double></a> <a class="code hl_namespaceRef" href="../Kernel_23/namespaceKernel.html">Kernel</a>;</div>
<div class="line"><span class="keyword">typedef</span> <a class="code hl_class" href="classCGAL_1_1Polyhedron__3.html">CGAL::Polyhedron_3<Kernel></a> Polyhedron;</div>
<div class="line"><span class="keyword">typedef</span> Polyhedron::HalfedgeDS <a class="code hl_typedef" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a4d6b47abdda805ccc6142ecbe78002c7">HalfedgeDS</a>;</div>
<div class="line"> </div>
<div class="line"><span class="keywordtype">int</span> main() {</div>
<div class="line"> Polyhedron P;</div>
<div class="line"> Build_triangle<HalfedgeDS> <a class="code hl_functionRef" href="../Polygon_mesh_processing/group__PkgPolygonMeshProcessingRef.html#ga0542a44d0d081f84e387b1e6bcbca471">triangle</a>;</div>
<div class="line"> P.delegate( triangle);</div>
<div class="line"> assert( P.is_triangle( P.halfedges_begin()));</div>
<div class="line"> <span class="keywordflow">return</span> 0;</div>
<div class="line">}</div>
<div class="ttc" id="aclassCGAL_1_1Modifier__base_html"><div class="ttname"><a href="../Miscellany/classCGAL_1_1Modifier__base.html">CGAL::Modifier_base</a></div></div>
<div class="ttc" id="aclassCGAL_1_1Polyhedron__3_html"><div class="ttname"><a href="classCGAL_1_1Polyhedron__3.html">CGAL::Polyhedron_3</a></div><div class="ttdoc">A polyhedral surface Polyhedron_3 consists of vertices V, edges E, facets F and an incidence relation...</div><div class="ttdef"><b>Definition:</b> Polyhedron_3.h:113</div></div>
<div class="ttc" id="aclassCGAL_1_1Polyhedron__incremental__builder__3_html"><div class="ttname"><a href="classCGAL_1_1Polyhedron__incremental__builder__3.html">CGAL::Polyhedron_incremental_builder_3</a></div><div class="ttdoc">The auxiliary class Polyhedron_incremental_builder_3 supports the incremental construction of polyhed...</div><div class="ttdef"><b>Definition:</b> Polyhedron_incremental_builder_3.h:62</div></div>
<div class="ttc" id="aclassCGAL_1_1Polyhedron__incremental__builder__3_html_a4d6b47abdda805ccc6142ecbe78002c7"><div class="ttname"><a href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a4d6b47abdda805ccc6142ecbe78002c7">CGAL::Polyhedron_incremental_builder_3::HalfedgeDS</a></div><div class="ttdeci">unspecified_type HalfedgeDS</div><div class="ttdoc">halfedge data structure HDS.</div><div class="ttdef"><b>Definition:</b> Polyhedron_incremental_builder_3.h:71</div></div>
<div class="ttc" id="agroup__PkgPolygonMeshProcessingRef_html_ga0542a44d0d081f84e387b1e6bcbca471"><div class="ttname"><a href="../Polygon_mesh_processing/group__PkgPolygonMeshProcessingRef.html#ga0542a44d0d081f84e387b1e6bcbca471">CGAL::Polygon_mesh_processing::triangle</a></div><div class="ttdeci">Triangle_3 triangle(typename boost::graph_traits< TriangleMesh >::face_descriptor fd, const TriangleMesh &tmesh, const NamedParameters &np=parameters::default_values())</div></div>
<div class="ttc" id="anamespaceKernel_html"><div class="ttname"><a href="../Kernel_23/namespaceKernel.html">Kernel</a></div></div>
<div class="ttc" id="astructCGAL_1_1Simple__cartesian_html"><div class="ttname"><a href="../Kernel_23/structCGAL_1_1Simple__cartesian.html">CGAL::Simple_cartesian</a></div></div>
</div><!-- fragment --> <dl class="section examples"><dt>Examples</dt><dd><a class="el" href="Polyhedron_2polyhedron_prog_incr_builder_8cpp-example.html#_a2">Polyhedron/polyhedron_prog_incr_builder.cpp</a>.</dd>
</dl>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader">Constants</h2></td></tr>
<tr class="memitem:a9170b2b38da4c51af6112903240e4c0c"><td class="memItemLeft" align="right" valign="top">enum </td><td class="memItemRight" valign="bottom">{ <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a9170b2b38da4c51af6112903240e4c0ca3947a27b56138673255b394819e100d0">RELATIVE_INDEXING</a>
, <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a9170b2b38da4c51af6112903240e4c0ca556e93184fde3f2a89aa80de54463f4c">ABSOLUTE_INDEXING</a>
}</td></tr>
<tr class="memdesc:a9170b2b38da4c51af6112903240e4c0c"><td class="mdescLeft"> </td><td class="mdescRight">two different indexing modes. <a href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a9170b2b38da4c51af6112903240e4c0c">More...</a><br></td></tr>
<tr class="separator:a9170b2b38da4c51af6112903240e4c0c"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader">Types</h2></td></tr>
<tr class="memitem:a4d6b47abdda805ccc6142ecbe78002c7"><td class="memItemLeft" align="right" valign="top"><a id="a4d6b47abdda805ccc6142ecbe78002c7" name="a4d6b47abdda805ccc6142ecbe78002c7"></a>
typedef <a class="elRef" href="../Manual/classunspecified__type.html">unspecified_type</a> </td><td class="memItemRight" valign="bottom"><b>HalfedgeDS</b></td></tr>
<tr class="memdesc:a4d6b47abdda805ccc6142ecbe78002c7"><td class="mdescLeft"> </td><td class="mdescRight">halfedge data structure <code>HDS</code>. <br></td></tr>
<tr class="separator:a4d6b47abdda805ccc6142ecbe78002c7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:afba104cd587fb0f7a4ac4a43ea3e9f75"><td class="memItemLeft" align="right" valign="top"><a id="afba104cd587fb0f7a4ac4a43ea3e9f75" name="afba104cd587fb0f7a4ac4a43ea3e9f75"></a>
typedef <a class="elRef" href="../Manual/classunspecified__type.html">unspecified_type</a> </td><td class="memItemRight" valign="bottom"><b>Point_3</b></td></tr>
<tr class="memdesc:afba104cd587fb0f7a4ac4a43ea3e9f75"><td class="mdescLeft"> </td><td class="mdescRight">point type of the vertex. <br></td></tr>
<tr class="separator:afba104cd587fb0f7a4ac4a43ea3e9f75"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a95d43a6f6f66bf12b17bada5d2a44ede"><td class="memItemLeft" align="right" valign="top"><a id="a95d43a6f6f66bf12b17bada5d2a44ede" name="a95d43a6f6f66bf12b17bada5d2a44ede"></a>
typedef <a class="elRef" href="../Manual/classunspecified__type.html">unspecified_type</a> </td><td class="memItemRight" valign="bottom"><b>size_type</b></td></tr>
<tr class="memdesc:a95d43a6f6f66bf12b17bada5d2a44ede"><td class="mdescLeft"> </td><td class="mdescRight">size type. <br></td></tr>
<tr class="separator:a95d43a6f6f66bf12b17bada5d2a44ede"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab2b2fc2eaf5b797c0dcc277447ddb4be"><td class="memItemLeft" align="right" valign="top"><a id="ab2b2fc2eaf5b797c0dcc277447ddb4be" name="ab2b2fc2eaf5b797c0dcc277447ddb4be"></a>
typedef <a class="elRef" href="../HalfedgeDS/classHalfedgeDS.html#ad8d5f4214d7cf243b742b172c860a721">HalfedgeDS::Vertex_handle</a> </td><td class="memItemRight" valign="bottom"><b>Vertex_handle</b></td></tr>
<tr class="separator:ab2b2fc2eaf5b797c0dcc277447ddb4be"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ab3d834ff1dcadd23b55a4d1589ace457"><td class="memItemLeft" align="right" valign="top"><a id="ab3d834ff1dcadd23b55a4d1589ace457" name="ab3d834ff1dcadd23b55a4d1589ace457"></a>
typedef <a class="elRef" href="../HalfedgeDS/classHalfedgeDS.html#a10511462c9686c726943cffafa84ce2c">HalfedgeDS::Halfedge_handle</a> </td><td class="memItemRight" valign="bottom"><b>Halfedge_handle</b></td></tr>
<tr class="separator:ab3d834ff1dcadd23b55a4d1589ace457"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a606eee04fdd0e73fb9e571aba416e7a9"><td class="memItemLeft" align="right" valign="top"><a id="a606eee04fdd0e73fb9e571aba416e7a9" name="a606eee04fdd0e73fb9e571aba416e7a9"></a>
typedef <a class="elRef" href="../HalfedgeDS/classHalfedgeDS.html#a4c6840664c100a595f53a8526ad63bf1">HalfedgeDS::Face_handle</a> </td><td class="memItemRight" valign="bottom"><b>Facet_handle</b></td></tr>
<tr class="separator:a606eee04fdd0e73fb9e571aba416e7a9"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader">Creation</h2></td></tr>
<tr class="memitem:acb8216ef40323e777f57cd4656d98c83"><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#acb8216ef40323e777f57cd4656d98c83">Polyhedron_incremental_builder_3</a> (HDS &hds, bool verbose=false)</td></tr>
<tr class="memdesc:acb8216ef40323e777f57cd4656d98c83"><td class="mdescLeft"> </td><td class="mdescRight">stores a reference to the halfedge data structure <code>hds</code> of a polyhedral surface in its internal state. <br></td></tr>
<tr class="separator:acb8216ef40323e777f57cd4656d98c83"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader">Surface Creation</h2></td></tr>
<tr><td class="ititle" colspan="2"><p>To build a polyhedral surface, the following regular expression gives the correct and allowed order and nesting of method calls from this section:</p>
<div class="fragment"><div class="line"><a class="code hl_function" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a925a593ae76f78a4f41d7784bba91af6">begin_surface</a> ( <a class="code hl_function" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#abc6f512872df9509a0393d9fcd4fa2e8">add_vertex</a> | ( <a class="code hl_function" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a36e32e762d26786afb8cbf3c4d4a9ebd">begin_facet</a> <a class="code hl_function" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a2fdeee856c6746314d1c9c4851e404c5">add_vertex_to_facet</a> <a class="code hl_function" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a24a3c6a73111e1171bb23b6e75f8ee73">end_facet</a> ) ) <a class="code hl_function" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a51c4d472aec12c4ad5d41e0695d91ead">end_surface</a></div>
<div class="ttc" id="aclassCGAL_1_1Polyhedron__incremental__builder__3_html_a24a3c6a73111e1171bb23b6e75f8ee73"><div class="ttname"><a href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a24a3c6a73111e1171bb23b6e75f8ee73">CGAL::Polyhedron_incremental_builder_3::end_facet</a></div><div class="ttdeci">Halfedge_handle end_facet()</div><div class="ttdoc">ends a newly constructed facet.</div></div>
<div class="ttc" id="aclassCGAL_1_1Polyhedron__incremental__builder__3_html_a2fdeee856c6746314d1c9c4851e404c5"><div class="ttname"><a href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a2fdeee856c6746314d1c9c4851e404c5">CGAL::Polyhedron_incremental_builder_3::add_vertex_to_facet</a></div><div class="ttdeci">void add_vertex_to_facet(size_type i)</div><div class="ttdoc">adds a vertex with index i to the current facet.</div></div>
<div class="ttc" id="aclassCGAL_1_1Polyhedron__incremental__builder__3_html_a36e32e762d26786afb8cbf3c4d4a9ebd"><div class="ttname"><a href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a36e32e762d26786afb8cbf3c4d4a9ebd">CGAL::Polyhedron_incremental_builder_3::begin_facet</a></div><div class="ttdeci">Facet_handle begin_facet()</div><div class="ttdoc">starts a new facet and returns its handle.</div></div>
<div class="ttc" id="aclassCGAL_1_1Polyhedron__incremental__builder__3_html_a51c4d472aec12c4ad5d41e0695d91ead"><div class="ttname"><a href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a51c4d472aec12c4ad5d41e0695d91ead">CGAL::Polyhedron_incremental_builder_3::end_surface</a></div><div class="ttdeci">void end_surface()</div><div class="ttdoc">ends the construction.</div></div>
<div class="ttc" id="aclassCGAL_1_1Polyhedron__incremental__builder__3_html_a925a593ae76f78a4f41d7784bba91af6"><div class="ttname"><a href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a925a593ae76f78a4f41d7784bba91af6">CGAL::Polyhedron_incremental_builder_3::begin_surface</a></div><div class="ttdeci">void begin_surface(size_type v, size_type f, size_type h=0, int mode=RELATIVE_INDEXING)</div><div class="ttdoc">starts the construction.</div></div>
<div class="ttc" id="aclassCGAL_1_1Polyhedron__incremental__builder__3_html_abc6f512872df9509a0393d9fcd4fa2e8"><div class="ttname"><a href="classCGAL_1_1Polyhedron__incremental__builder__3.html#abc6f512872df9509a0393d9fcd4fa2e8">CGAL::Polyhedron_incremental_builder_3::add_vertex</a></div><div class="ttdeci">Vertex_handle add_vertex(const Point_3 &p)</div><div class="ttdoc">adds a new vertex for p and returns its handle.</div></div>
</div><!-- fragment --> </td></tr>
<tr class="memitem:a925a593ae76f78a4f41d7784bba91af6"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a925a593ae76f78a4f41d7784bba91af6">begin_surface</a> (<a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a95d43a6f6f66bf12b17bada5d2a44ede">size_type</a> v, <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a95d43a6f6f66bf12b17bada5d2a44ede">size_type</a> f, <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a95d43a6f6f66bf12b17bada5d2a44ede">size_type</a> h=0, int mode=<a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a9170b2b38da4c51af6112903240e4c0ca3947a27b56138673255b394819e100d0">RELATIVE_INDEXING</a>)</td></tr>
<tr class="memdesc:a925a593ae76f78a4f41d7784bba91af6"><td class="mdescLeft"> </td><td class="mdescRight">starts the construction. <br></td></tr>
<tr class="separator:a925a593ae76f78a4f41d7784bba91af6"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:abc6f512872df9509a0393d9fcd4fa2e8"><td class="memItemLeft" align="right" valign="top"><a id="abc6f512872df9509a0393d9fcd4fa2e8" name="abc6f512872df9509a0393d9fcd4fa2e8"></a>
<a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#ab2b2fc2eaf5b797c0dcc277447ddb4be">Vertex_handle</a> </td><td class="memItemRight" valign="bottom"><b>add_vertex</b> (const <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#afba104cd587fb0f7a4ac4a43ea3e9f75">Point_3</a> &p)</td></tr>
<tr class="memdesc:abc6f512872df9509a0393d9fcd4fa2e8"><td class="mdescLeft"> </td><td class="mdescRight">adds a new vertex for <code>p</code> and returns its handle. <br></td></tr>
<tr class="separator:abc6f512872df9509a0393d9fcd4fa2e8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a36e32e762d26786afb8cbf3c4d4a9ebd"><td class="memItemLeft" align="right" valign="top"><a id="a36e32e762d26786afb8cbf3c4d4a9ebd" name="a36e32e762d26786afb8cbf3c4d4a9ebd"></a>
<a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a606eee04fdd0e73fb9e571aba416e7a9">Facet_handle</a> </td><td class="memItemRight" valign="bottom"><b>begin_facet</b> ()</td></tr>
<tr class="memdesc:a36e32e762d26786afb8cbf3c4d4a9ebd"><td class="mdescLeft"> </td><td class="mdescRight">starts a new facet and returns its handle. <br></td></tr>
<tr class="separator:a36e32e762d26786afb8cbf3c4d4a9ebd"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2fdeee856c6746314d1c9c4851e404c5"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a2fdeee856c6746314d1c9c4851e404c5">add_vertex_to_facet</a> (<a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a95d43a6f6f66bf12b17bada5d2a44ede">size_type</a> i)</td></tr>
<tr class="memdesc:a2fdeee856c6746314d1c9c4851e404c5"><td class="mdescLeft"> </td><td class="mdescRight">adds a vertex with index <code>i</code> to the current facet. <br></td></tr>
<tr class="separator:a2fdeee856c6746314d1c9c4851e404c5"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a24a3c6a73111e1171bb23b6e75f8ee73"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#ab3d834ff1dcadd23b55a4d1589ace457">Halfedge_handle</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a24a3c6a73111e1171bb23b6e75f8ee73">end_facet</a> ()</td></tr>
<tr class="memdesc:a24a3c6a73111e1171bb23b6e75f8ee73"><td class="mdescLeft"> </td><td class="mdescRight">ends a newly constructed facet. <br></td></tr>
<tr class="separator:a24a3c6a73111e1171bb23b6e75f8ee73"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a51c4d472aec12c4ad5d41e0695d91ead"><td class="memItemLeft" align="right" valign="top"><a id="a51c4d472aec12c4ad5d41e0695d91ead" name="a51c4d472aec12c4ad5d41e0695d91ead"></a>
void </td><td class="memItemRight" valign="bottom"><b>end_surface</b> ()</td></tr>
<tr class="memdesc:a51c4d472aec12c4ad5d41e0695d91ead"><td class="mdescLeft"> </td><td class="mdescRight">ends the construction. <br></td></tr>
<tr class="separator:a51c4d472aec12c4ad5d41e0695d91ead"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader">Additional Operations</h2></td></tr>
<tr class="memitem:ace001d4b34037e60f4c139c50c71799a"><td class="memTemplParams" colspan="2">template<class <a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> > </td></tr>
<tr class="memitem:ace001d4b34037e60f4c139c50c71799a"><td class="memTemplItemLeft" align="right" valign="top"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#ab3d834ff1dcadd23b55a4d1589ace457">Halfedge_handle</a> </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#ace001d4b34037e60f4c139c50c71799a">add_facet</a> (<a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> first, <a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> beyond)</td></tr>
<tr class="memdesc:ace001d4b34037e60f4c139c50c71799a"><td class="mdescLeft"> </td><td class="mdescRight">is a synonym for <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a36e32e762d26786afb8cbf3c4d4a9ebd" title="starts a new facet and returns its handle.">begin_facet()</a></code>, a call to <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a2fdeee856c6746314d1c9c4851e404c5" title="adds a vertex with index i to the current facet.">add_vertex_to_facet()</a></code> for each value in the range <code>[first,beyond)</code>, and a call to <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a24a3c6a73111e1171bb23b6e75f8ee73" title="ends a newly constructed facet.">end_facet()</a></code>. <br></td></tr>
<tr class="separator:ace001d4b34037e60f4c139c50c71799a"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2b82ced26f21b4c297aba57792029860"><td class="memTemplParams" colspan="2">template<class <a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> > </td></tr>
<tr class="memitem:a2b82ced26f21b4c297aba57792029860"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a2b82ced26f21b4c297aba57792029860">test_facet</a> (<a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> first, <a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> beyond)</td></tr>
<tr class="memdesc:a2b82ced26f21b4c297aba57792029860"><td class="mdescLeft"> </td><td class="mdescRight">returns <code>true</code> if a facet described by the vertex indices in the range <code>[first,beyond)</code> can be successfully inserted, e.g., with <code>add_facet(first,beyond)</code>. <br></td></tr>
<tr class="separator:a2b82ced26f21b4c297aba57792029860"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acf2f65abeb4af0b40fe99abf55854d69"><td class="memItemLeft" align="right" valign="top"><a id="acf2f65abeb4af0b40fe99abf55854d69" name="acf2f65abeb4af0b40fe99abf55854d69"></a>
<a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#ab2b2fc2eaf5b797c0dcc277447ddb4be">Vertex_handle</a> </td><td class="memItemRight" valign="bottom"><b>vertex</b> (std::size_t i)</td></tr>
<tr class="memdesc:acf2f65abeb4af0b40fe99abf55854d69"><td class="mdescLeft"> </td><td class="mdescRight">returns handle for the vertex of index <code>i</code>, or <code>Vertex_handle</code> if there is no <code>i</code>-th vertex. <br></td></tr>
<tr class="separator:acf2f65abeb4af0b40fe99abf55854d69"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac59035edb88e2ad47085a6f4f6951581"><td class="memItemLeft" align="right" valign="top"><a id="ac59035edb88e2ad47085a6f4f6951581" name="ac59035edb88e2ad47085a6f4f6951581"></a>
bool </td><td class="memItemRight" valign="bottom"><b>error</b> () const</td></tr>
<tr class="memdesc:ac59035edb88e2ad47085a6f4f6951581"><td class="mdescLeft"> </td><td class="mdescRight">returns error status of the builder. <br></td></tr>
<tr class="separator:ac59035edb88e2ad47085a6f4f6951581"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:af5afb910f4ee79b8c0f37517aa338b3b"><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#af5afb910f4ee79b8c0f37517aa338b3b">rollback</a> ()</td></tr>
<tr class="memdesc:af5afb910f4ee79b8c0f37517aa338b3b"><td class="mdescLeft"> </td><td class="mdescRight">undoes all changes made to the halfedge data structure since the last <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a925a593ae76f78a4f41d7784bba91af6" title="starts the construction.">begin_surface()</a></code> in relative indexing, and deletes the whole surface in absolute indexing. <br></td></tr>
<tr class="separator:af5afb910f4ee79b8c0f37517aa338b3b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ae52dc79713a2008c7b864045222fe993"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#ae52dc79713a2008c7b864045222fe993">check_unconnected_vertices</a> ()</td></tr>
<tr class="memdesc:ae52dc79713a2008c7b864045222fe993"><td class="mdescLeft"> </td><td class="mdescRight">returns <code>true</code> if unconnected vertices are detected. <br></td></tr>
<tr class="separator:ae52dc79713a2008c7b864045222fe993"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a69fdb0a788b8294a0de9f33edea26801"><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a69fdb0a788b8294a0de9f33edea26801">remove_unconnected_vertices</a> ()</td></tr>
<tr class="memdesc:a69fdb0a788b8294a0de9f33edea26801"><td class="mdescLeft"> </td><td class="mdescRight">returns <code>true</code> if all unconnected vertices could be removed successfully. <br></td></tr>
<tr class="separator:a69fdb0a788b8294a0de9f33edea26801"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Member Enumeration Documentation</h2>
<a id="a9170b2b38da4c51af6112903240e4c0c" name="a9170b2b38da4c51af6112903240e4c0c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9170b2b38da4c51af6112903240e4c0c">◆ </a></span>anonymous enum</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HDS > </div>
<table class="memname">
<tr>
<td class="memname">anonymous enum</td>
</tr>
</table>
</div><div class="memdoc">
<p>two different indexing modes. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="a9170b2b38da4c51af6112903240e4c0ca3947a27b56138673255b394819e100d0" name="a9170b2b38da4c51af6112903240e4c0ca3947a27b56138673255b394819e100d0"></a>RELATIVE_INDEXING </td><td class="fielddoc"></td></tr>
<tr><td class="fieldname"><a id="a9170b2b38da4c51af6112903240e4c0ca556e93184fde3f2a89aa80de54463f4c" name="a9170b2b38da4c51af6112903240e4c0ca556e93184fde3f2a89aa80de54463f4c"></a>ABSOLUTE_INDEXING </td><td class="fielddoc"></td></tr>
</table>
</div>
</div>
<h2 class="groupheader">Constructor & Destructor Documentation</h2>
<a id="acb8216ef40323e777f57cd4656d98c83" name="acb8216ef40323e777f57cd4656d98c83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acb8216ef40323e777f57cd4656d98c83">◆ </a></span>Polyhedron_incremental_builder_3()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HDS > </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html">CGAL::Polyhedron_incremental_builder_3</a>< HDS >::Polyhedron_incremental_builder_3 </td>
<td>(</td>
<td class="paramtype">HDS & </td>
<td class="paramname"><em>hds</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">bool </td>
<td class="paramname"><em>verbose</em> = <code>false</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>stores a reference to the halfedge data structure <code>hds</code> of a polyhedral surface in its internal state. </p>
<p>An existing polyhedral surface in <code>hds</code> remains unchanged. The incremental builder appends the new polyhedral surface. If <code>verbose</code> is <code>true</code>, diagnostic messages will be printed to <code>cerr</code> in case of malformed input data. </p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="ace001d4b34037e60f4c139c50c71799a" name="ace001d4b34037e60f4c139c50c71799a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace001d4b34037e60f4c139c50c71799a">◆ </a></span>add_facet()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HDS > </div>
<div class="memtemplate">
template<class <a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> > </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#ab3d834ff1dcadd23b55a4d1589ace457">Halfedge_handle</a> <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html">CGAL::Polyhedron_incremental_builder_3</a>< HDS >::add_facet </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> </td>
<td class="paramname"><em>beyond</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>is a synonym for <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a36e32e762d26786afb8cbf3c4d4a9ebd" title="starts a new facet and returns its handle.">begin_facet()</a></code>, a call to <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a2fdeee856c6746314d1c9c4851e404c5" title="adds a vertex with index i to the current facet.">add_vertex_to_facet()</a></code> for each value in the range <code>[first,beyond)</code>, and a call to <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a24a3c6a73111e1171bb23b6e75f8ee73" title="ends a newly constructed facet.">end_facet()</a></code>. </p>
<p>Returns the return value of <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a24a3c6a73111e1171bb23b6e75f8ee73" title="ends a newly constructed facet.">end_facet()</a></code>. </p><dl class="section pre"><dt>Precondition</dt><dd>The value type of <code><a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a></code> is <code>std::size_t</code>. All indices must refer to vertices already added. </dd></dl>
</div>
</div>
<a id="a2fdeee856c6746314d1c9c4851e404c5" name="a2fdeee856c6746314d1c9c4851e404c5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2fdeee856c6746314d1c9c4851e404c5">◆ </a></span>add_vertex_to_facet()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HDS > </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html">CGAL::Polyhedron_incremental_builder_3</a>< HDS >::add_vertex_to_facet </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a95d43a6f6f66bf12b17bada5d2a44ede">size_type</a> </td>
<td class="paramname"><em>i</em></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>adds a vertex with index <code>i</code> to the current facet. </p>
<p>The first point added with <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#abc6f512872df9509a0393d9fcd4fa2e8" title="adds a new vertex for p and returns its handle.">add_vertex()</a></code> has the index 0 if <code>mode</code> was set to <code>RELATIVE_INDEXING</code>, otherwise the first vertex in the referenced <code>hds</code> has the index 0. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="Polyhedron_2polyhedron_prog_incr_builder_8cpp-example.html#a6">Polyhedron/polyhedron_prog_incr_builder.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="a925a593ae76f78a4f41d7784bba91af6" name="a925a593ae76f78a4f41d7784bba91af6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a925a593ae76f78a4f41d7784bba91af6">◆ </a></span>begin_surface()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HDS > </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html">CGAL::Polyhedron_incremental_builder_3</a>< HDS >::begin_surface </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a95d43a6f6f66bf12b17bada5d2a44ede">size_type</a> </td>
<td class="paramname"><em>v</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a95d43a6f6f66bf12b17bada5d2a44ede">size_type</a> </td>
<td class="paramname"><em>f</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a95d43a6f6f66bf12b17bada5d2a44ede">size_type</a> </td>
<td class="paramname"><em>h</em> = <code>0</code>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"><em>mode</em> = <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a9170b2b38da4c51af6112903240e4c0ca3947a27b56138673255b394819e100d0">RELATIVE_INDEXING</a></code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>starts the construction. </p>
<p><code>v</code> is the number of new vertices to expect, <code>f</code> the number of new facets, and <code>h</code> the number of new halfedges. If <code>h</code> is unspecified (<code>== 0</code>) it is estimated using <a class="elRef" href="../BGL/group__PkgBGLEulerOperations.html">Euler</a>'s equation (plus 5% for the so far unknown holes and genus of the object). These values are used to reserve space in the halfedge data structure <code>hds</code>. If the representation supports insertion these values do not restrict the class of constructible polyhedra. If the representation does not support insertion the object must fit into the reserved sizes.</p>
<p>If <code>mode</code> is set to <code>ABSOLUTE_INDEXING</code> the incremental builder uses absolute indexing and the vertices of the old polyhedral surface can be used in new facets (needs preprocessing time linear in the size of the old surface). Otherwise relative indexing is used starting with new indices for the new construction. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="Polyhedron_2polyhedron_prog_incr_builder_8cpp-example.html#a3">Polyhedron/polyhedron_prog_incr_builder.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="ae52dc79713a2008c7b864045222fe993" name="ae52dc79713a2008c7b864045222fe993"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae52dc79713a2008c7b864045222fe993">◆ </a></span>check_unconnected_vertices()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HDS > </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html">CGAL::Polyhedron_incremental_builder_3</a>< HDS >::check_unconnected_vertices </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>returns <code>true</code> if unconnected vertices are detected. </p>
<p>If <code>verbose</code> was set to <code>true</code> (see the constructor above) debug information about the unconnected vertices is printed. </p>
</div>
</div>
<a id="a24a3c6a73111e1171bb23b6e75f8ee73" name="a24a3c6a73111e1171bb23b6e75f8ee73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a24a3c6a73111e1171bb23b6e75f8ee73">◆ </a></span>end_facet()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HDS > </div>
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#ab3d834ff1dcadd23b55a4d1589ace457">Halfedge_handle</a> <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html">CGAL::Polyhedron_incremental_builder_3</a>< HDS >::end_facet </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>ends a newly constructed facet. </p>
<p>Returns the handle to the halfedge incident to the new facet that points to the vertex added first. The halfedge can be safely used to traverse the halfedge cycle around the new facet. </p>
<dl class="section examples"><dt>Examples</dt><dd><a class="el" href="Polyhedron_2polyhedron_prog_incr_builder_8cpp-example.html#a7">Polyhedron/polyhedron_prog_incr_builder.cpp</a>.</dd>
</dl>
</div>
</div>
<a id="a69fdb0a788b8294a0de9f33edea26801" name="a69fdb0a788b8294a0de9f33edea26801"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69fdb0a788b8294a0de9f33edea26801">◆ </a></span>remove_unconnected_vertices()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HDS > </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html">CGAL::Polyhedron_incremental_builder_3</a>< HDS >::remove_unconnected_vertices </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>returns <code>true</code> if all unconnected vertices could be removed successfully. </p>
<p>This happens either if no unconnected vertices had appeared or if the halfedge data structure supports the removal of individual elements. </p>
</div>
</div>
<a id="af5afb910f4ee79b8c0f37517aa338b3b" name="af5afb910f4ee79b8c0f37517aa338b3b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af5afb910f4ee79b8c0f37517aa338b3b">◆ </a></span>rollback()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HDS > </div>
<table class="memname">
<tr>
<td class="memname">void <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html">CGAL::Polyhedron_incremental_builder_3</a>< HDS >::rollback </td>
<td>(</td>
<td class="paramname"></td><td>)</td>
<td></td>
</tr>
</table>
</div><div class="memdoc">
<p>undoes all changes made to the halfedge data structure since the last <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a925a593ae76f78a4f41d7784bba91af6" title="starts the construction.">begin_surface()</a></code> in relative indexing, and deletes the whole surface in absolute indexing. </p>
<p>It needs a new call to <code><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html#a925a593ae76f78a4f41d7784bba91af6" title="starts the construction.">begin_surface()</a></code> to start inserting again. </p>
</div>
</div>
<a id="a2b82ced26f21b4c297aba57792029860" name="a2b82ced26f21b4c297aba57792029860"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b82ced26f21b4c297aba57792029860">◆ </a></span>test_facet()</h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename HDS > </div>
<div class="memtemplate">
template<class <a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> > </div>
<table class="memname">
<tr>
<td class="memname">bool <a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html">CGAL::Polyhedron_incremental_builder_3</a>< HDS >::test_facet </td>
<td>(</td>
<td class="paramtype"><a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> </td>
<td class="paramname"><em>first</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a> </td>
<td class="paramname"><em>beyond</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>returns <code>true</code> if a facet described by the vertex indices in the range <code>[first,beyond)</code> can be successfully inserted, e.g., with <code>add_facet(first,beyond)</code>. </p>
<dl class="section pre"><dt>Precondition</dt><dd>The value type of <code><a class="elRef" href="../Manual/classInputIterator.html">InputIterator</a></code> is <code>std::size_t</code>. All indices must refer to vertices already added. </dd></dl>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.9.6-->
<!-- start footer part -->
<!-- The footer div is not part of the default but we require it to
move the footer to the bottom of the page. -->
<div id="footer">
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
<ul>
<li class="navelem"><b>CGAL</b></li><li class="navelem"><a class="el" href="classCGAL_1_1Polyhedron__incremental__builder__3.html">Polyhedron_incremental_builder_3</a></li>
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"></a> 1.9.6 </li>
</ul>
</div>
</div>
</body>
</html>