-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgroup__PkgPointSetProcessing3IOOff.html
625 lines (607 loc) · 32.3 KB
/
group__PkgPointSetProcessing3IOOff.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
<!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/Point_set_processing_3/group__PkgPointSetProcessing3IOOff.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 - Point Set Processing: I/O (OFF Formats)</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 - Point Set Processing
</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('group__PkgPointSetProcessing3IOOff.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#func-members">Functions</a> </div>
<div class="headertitle"><div class="title">I/O (OFF Formats)<div class="ingroups"><a class="el" href="group__PkgPointSetProcessing3Ref.html">Point Set Processing Reference</a></div></div></div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader"> </h2>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="func-members" name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gab25342566e9141657969a01cdcf3545f"><td class="memTemplParams" colspan="2">template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters> </td></tr>
<tr class="memitem:gab25342566e9141657969a01cdcf3545f"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__PkgPointSetProcessing3IOOff.html#gab25342566e9141657969a01cdcf3545f">CGAL::IO::read_OFF</a> (std::istream &is, PointOutputIterator output, const NamedParameters &np=<a class="elRef" href="../STL_Extension/group__PkgSTLExtensionRef.html#gaac7f54fe7abb7321d8d755683eaafaf2">parameters::default_values</a>())</td></tr>
<tr class="memdesc:gab25342566e9141657969a01cdcf3545f"><td class="mdescLeft"> </td><td class="mdescRight">reads points (positions + normals, if available), using the <a class="elRef" href="../Stream_support/IOStreamSupportedFileFormats.html#IOStreamOFF">Object File Format (OFF)</a>. <br></td></tr>
<tr class="separator:gab25342566e9141657969a01cdcf3545f"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gae672e21348cad0a7ce819298f99444e7"><td class="memTemplParams" colspan="2">template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters> </td></tr>
<tr class="memitem:gae672e21348cad0a7ce819298f99444e7"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__PkgPointSetProcessing3IOOff.html#gae672e21348cad0a7ce819298f99444e7">CGAL::IO::read_OFF</a> (const std::string &fname, PointOutputIterator output, const NamedParameters &np=<a class="elRef" href="../STL_Extension/group__PkgSTLExtensionRef.html#gaac7f54fe7abb7321d8d755683eaafaf2">parameters::default_values</a>())</td></tr>
<tr class="memdesc:gae672e21348cad0a7ce819298f99444e7"><td class="mdescLeft"> </td><td class="mdescRight">reads points (positions + normals, if available), using the <a class="elRef" href="../Stream_support/IOStreamSupportedFileFormats.html#IOStreamOFF">Object File Format (OFF)</a>. <br></td></tr>
<tr class="separator:gae672e21348cad0a7ce819298f99444e7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gaf3b2a435f815f37f914fe9effbf6de73"><td class="memTemplParams" colspan="2">template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> </td></tr>
<tr class="memitem:gaf3b2a435f815f37f914fe9effbf6de73"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__PkgPointSetProcessing3IOOff.html#gaf3b2a435f815f37f914fe9effbf6de73">CGAL::IO::write_OFF</a> (std::ostream &os, const PointRange &points, const NamedParameters &np=<a class="elRef" href="../STL_Extension/group__PkgSTLExtensionRef.html#gaac7f54fe7abb7321d8d755683eaafaf2">parameters::default_values</a>())</td></tr>
<tr class="memdesc:gaf3b2a435f815f37f914fe9effbf6de73"><td class="mdescLeft"> </td><td class="mdescRight">writes the range of <code>points</code> (positions + normals, if available), using the <a class="elRef" href="../Stream_support/IOStreamSupportedFileFormats.html#IOStreamOFF">Object File Format (OFF)</a>. <br></td></tr>
<tr class="separator:gaf3b2a435f815f37f914fe9effbf6de73"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ga54724feeef37245ee2ff86f32726fc74"><td class="memTemplParams" colspan="2">template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> </td></tr>
<tr class="memitem:ga54724feeef37245ee2ff86f32726fc74"><td class="memTemplItemLeft" align="right" valign="top">bool </td><td class="memTemplItemRight" valign="bottom"><a class="el" href="group__PkgPointSetProcessing3IOOff.html#ga54724feeef37245ee2ff86f32726fc74">CGAL::IO::write_OFF</a> (const std::string &filename, const PointRange &points, const NamedParameters &np=<a class="elRef" href="../STL_Extension/group__PkgSTLExtensionRef.html#gaac7f54fe7abb7321d8d755683eaafaf2">parameters::default_values</a>())</td></tr>
<tr class="memdesc:ga54724feeef37245ee2ff86f32726fc74"><td class="mdescLeft"> </td><td class="mdescRight">writes the range of <code>points</code> (positions + normals, if available), using the <a class="elRef" href="../Stream_support/IOStreamSupportedFileFormats.html#IOStreamOFF">Object File Format (OFF)</a>. <br></td></tr>
<tr class="separator:ga54724feeef37245ee2ff86f32726fc74"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="gae672e21348cad0a7ce819298f99444e7" name="gae672e21348cad0a7ce819298f99444e7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae672e21348cad0a7ce819298f99444e7">◆ </a></span>read_OFF() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters> </div>
<table class="memname">
<tr>
<td class="memname">bool CGAL::IO::read_OFF </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>fname</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">PointOutputIterator </td>
<td class="paramname"><em>output</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const NamedParameters & </td>
<td class="paramname"><em>np</em> = <code><a class="elRef" href="../STL_Extension/group__PkgSTLExtensionRef.html#gaac7f54fe7abb7321d8d755683eaafaf2">parameters::default_values</a>()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><code>#include <CGAL/IO/read_off_points.h></code></p>
<p>reads points (positions + normals, if available), using the <a class="elRef" href="../Stream_support/IOStreamSupportedFileFormats.html#IOStreamOFF">Object File Format (OFF)</a>. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">OutputIteratorValueType</td><td>type of objects that can be put in <code>PointOutputIterator</code>. It must be a model of <code><a class="elRef" href="../Manual/classDefaultConstructible.html">DefaultConstructible</a></code> and defaults to <code><a class="elRef" href="../STL_Extension/structCGAL_1_1value__type__traits.html">value_type_traits</a><PointOutputIterator>::type</code>. It can be omitted when the default is fine. </td></tr>
<tr><td class="paramname">PointOutputIterator</td><td>iterator over output points. </td></tr>
<tr><td class="paramname">NamedParameters</td><td>a sequence of <a class="elRef" href="../BGL/group__bgl__namedparameters.html">Named Parameters</a></td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">fname</td><td>input file name </td></tr>
<tr><td class="paramname">output</td><td>output iterator over points </td></tr>
<tr><td class="paramname">np</td><td>optional sequence of <a class="elRef" href="../BGL/group__bgl__namedparameters.html">Named Parameters</a> among the ones listed below.</td></tr>
</table>
</dd>
</dl>
<dl class="params">
<dt>Optional Named Parameters</dt>
<dd><table class="params">
<tr>
<td> <button class="collapsible"> <b>point_map</b> </button> <div class="content"><ul>
<li>
a property map associating points to the elements of the point range </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Manual/classWritablePropertyMap.html">WritablePropertyMap</a></code> with value type <code>geom_traits::Point_3</code> </li>
<li>
<b>Default: </b><code><a class="elRef" href="../Property_map/structCGAL_1_1Identity__property__map.html">CGAL::Identity_property_map</a><geom_traits::Point_3></code> </li>
</ul>
</div> </td><td><p class="starttd"></p>
<p class="endtd"></p>
</td></tr>
<tr>
<td> <button class="collapsible"> <b>normal_map</b> </button> <div class="content"><ul>
<li>
a property map associating normals to the elements of the point range </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Manual/classWritablePropertyMap.html">WritablePropertyMap</a></code> with value type <code>geom_traits::Vector_3</code> </li>
<li>
<b>Default: </b>If this parameter is omitted, normals in the input stream are ignored. </li>
</ul>
</div> </td><td><p class="starttd"></p>
<p class="endtd"></p>
</td></tr>
<tr>
<td> <button class="collapsible"> <b>geom_traits</b> </button> <div class="content"><ul>
<li>
an instance of a geometric traits class </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Kernel_23/classKernel.html">Kernel</a></code> </li>
<li>
<b>Default: </b>a CGAL <a class="elRef" href="../Kernel_23/classKernel.html">Kernel</a> deduced from the point type, using <code><a class="elRef" href="../Kernel_23/structCGAL_1_1Kernel__traits.html">CGAL::Kernel_traits</a></code> </li>
</ul>
</div> </td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if reading was successful, <code>false</code> otherwise.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="elRef" href="../Stream_support/IOStreamSupportedFileFormats.html#IOStreamOFF">Object File Format (OFF)</a> </dd></dl>
</div>
</div>
<a id="gab25342566e9141657969a01cdcf3545f" name="gab25342566e9141657969a01cdcf3545f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gab25342566e9141657969a01cdcf3545f">◆ </a></span>read_OFF() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename OutputIteratorValueType , typename PointOutputIterator , typename NamedParameters = CGAL::parameters::Default_named_parameters> </div>
<table class="memname">
<tr>
<td class="memname">bool CGAL::IO::read_OFF </td>
<td>(</td>
<td class="paramtype">std::istream & </td>
<td class="paramname"><em>is</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">PointOutputIterator </td>
<td class="paramname"><em>output</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const NamedParameters & </td>
<td class="paramname"><em>np</em> = <code><a class="elRef" href="../STL_Extension/group__PkgSTLExtensionRef.html#gaac7f54fe7abb7321d8d755683eaafaf2">parameters::default_values</a>()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><code>#include <CGAL/IO/read_off_points.h></code></p>
<p>reads points (positions + normals, if available), using the <a class="elRef" href="../Stream_support/IOStreamSupportedFileFormats.html#IOStreamOFF">Object File Format (OFF)</a>. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">OutputIteratorValueType</td><td>type of objects that can be put in <code>PointOutputIterator</code>. It must be a model of <code><a class="elRef" href="../Manual/classDefaultConstructible.html">DefaultConstructible</a></code> and defaults to <code><a class="elRef" href="../STL_Extension/structCGAL_1_1value__type__traits.html">value_type_traits</a><PointOutputIterator>::type</code>. It can be omitted when the default is fine. </td></tr>
<tr><td class="paramname">PointOutputIterator</td><td>iterator over output points. </td></tr>
<tr><td class="paramname">NamedParameters</td><td>a sequence of <a class="elRef" href="../BGL/group__bgl__namedparameters.html">Named Parameters</a></td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">is</td><td>input stream </td></tr>
<tr><td class="paramname">output</td><td>output iterator over points </td></tr>
<tr><td class="paramname">np</td><td>an optional sequence of <a class="elRef" href="../BGL/group__bgl__namedparameters.html">Named Parameters</a> among the ones listed below</td></tr>
</table>
</dd>
</dl>
<dl class="params">
<dt>Optional Named Parameters</dt>
<dd><table class="params">
<tr>
<td> <button class="collapsible"> <b>point_map</b> </button> <div class="content"><ul>
<li>
a property map associating points to the elements of the point range </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Manual/classWritablePropertyMap.html">WritablePropertyMap</a></code> with value type <code>geom_traits::Point_3</code> </li>
<li>
<b>Default: </b><code><a class="elRef" href="../Property_map/structCGAL_1_1Identity__property__map.html">CGAL::Identity_property_map</a><geom_traits::Point_3></code> </li>
</ul>
</div> </td><td><p class="starttd"></p>
<p class="endtd"></p>
</td></tr>
<tr>
<td> <button class="collapsible"> <b>normal_map</b> </button> <div class="content"><ul>
<li>
a property map associating normals to the elements of the point range </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Manual/classWritablePropertyMap.html">WritablePropertyMap</a></code> with value type <code>geom_traits::Vector_3</code> </li>
<li>
<b>Default: </b>If this parameter is omitted, normals in the input stream are ignored. </li>
</ul>
</div> </td><td><p class="starttd"></p>
<p class="endtd"></p>
</td></tr>
<tr>
<td> <button class="collapsible"> <b>geom_traits</b> </button> <div class="content"><ul>
<li>
an instance of a geometric traits class </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Kernel_23/classKernel.html">Kernel</a></code> </li>
<li>
<b>Default: </b>a CGAL <a class="elRef" href="../Kernel_23/classKernel.html">Kernel</a> deduced from the point type, using <code><a class="elRef" href="../Kernel_23/structCGAL_1_1Kernel__traits.html">CGAL::Kernel_traits</a></code> </li>
</ul>
</div> </td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if reading was successful, <code>false</code> otherwise.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="elRef" href="../Stream_support/IOStreamSupportedFileFormats.html#IOStreamOFF">Object File Format (OFF)</a> </dd></dl>
</div>
</div>
<a id="ga54724feeef37245ee2ff86f32726fc74" name="ga54724feeef37245ee2ff86f32726fc74"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga54724feeef37245ee2ff86f32726fc74">◆ </a></span>write_OFF() <span class="overload">[1/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> </div>
<table class="memname">
<tr>
<td class="memname">bool CGAL::IO::write_OFF </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"><em>filename</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const PointRange & </td>
<td class="paramname"><em>points</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const NamedParameters & </td>
<td class="paramname"><em>np</em> = <code><a class="elRef" href="../STL_Extension/group__PkgSTLExtensionRef.html#gaac7f54fe7abb7321d8d755683eaafaf2">parameters::default_values</a>()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><code>#include <CGAL/IO/write_off_points.h></code></p>
<p>writes the range of <code>points</code> (positions + normals, if available), using the <a class="elRef" href="../Stream_support/IOStreamSupportedFileFormats.html#IOStreamOFF">Object File Format (OFF)</a>. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">PointRange</td><td>is a model of <code><a class="elRef" href="../Circulator/classConstRange.html">ConstRange</a></code>. The value type of its iterator is the key type of the named parameter <code>point_map</code>. </td></tr>
<tr><td class="paramname">NamedParameters</td><td>a sequence of <a class="elRef" href="../BGL/group__bgl__namedparameters.html">Named Parameters</a></td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">filename</td><td>the path to the output file </td></tr>
<tr><td class="paramname">points</td><td>input point range </td></tr>
<tr><td class="paramname">np</td><td>an optional sequence of <a class="elRef" href="../BGL/group__bgl__namedparameters.html">Named Parameters</a> among the ones listed below</td></tr>
</table>
</dd>
</dl>
<dl class="params">
<dt>Optional Named Parameters</dt>
<dd><table class="params">
<tr>
<td> <button class="collapsible"> <b>point_map</b> </button> <div class="content"><ul>
<li>
a property map associating points to the elements of the point range </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Manual/classReadablePropertyMap.html">ReadablePropertyMap</a></code> with value type <code>geom_traits::Point_3</code> </li>
<li>
<b>Default: </b><code><a class="elRef" href="../Property_map/structCGAL_1_1Identity__property__map.html">CGAL::Identity_property_map</a><geom_traits::Point_3></code> </li>
</ul>
</div> </td><td><p class="starttd"></p>
<p class="endtd"></p>
</td></tr>
<tr>
<td> <button class="collapsible"> <b>normal_map</b> </button> <div class="content"><ul>
<li>
a property map associating normals to the elements of the point range </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Manual/classReadablePropertyMap.html">ReadablePropertyMap</a></code> with value type <code>geom_traits::Vector_3</code> </li>
<li>
<b>Default: </b>If this parameter is omitted, normals are not written in the output file. </li>
</ul>
</div> </td><td><p class="starttd"></p>
<p class="endtd"></p>
</td></tr>
<tr>
<td> <button class="collapsible"> <b>geom_traits</b> </button> <div class="content"><ul>
<li>
an instance of a geometric traits class </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Kernel_23/classKernel.html">Kernel</a></code> </li>
<li>
<b>Default: </b>a CGAL <a class="elRef" href="../Kernel_23/classKernel.html">Kernel</a> deduced from the point type, using <code><a class="elRef" href="../Kernel_23/structCGAL_1_1Kernel__traits.html">CGAL::Kernel_traits</a></code> </li>
</ul>
</div> </td><td><p class="starttd"></p>
<p class="endtd"></p>
</td></tr>
<tr>
<td> <button class="collapsible"> <b>stream_precision</b> </button> <div class="content"><ul>
<li>
a parameter used to set the precision (i.e. how many digits are generated) of the output stream </li>
<li>
<b>Type: </b>int </li>
<li>
<b>Default: </b><code>6</code> </li>
</ul>
</div> </td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if writing was successful, <code>false</code> otherwise.</dd></dl>
<dl class="section see"><dt>See also</dt><dd><a class="elRef" href="../Stream_support/IOStreamSupportedFileFormats.html#IOStreamOFF">Object File Format (OFF)</a> </dd></dl>
</div>
</div>
<a id="gaf3b2a435f815f37f914fe9effbf6de73" name="gaf3b2a435f815f37f914fe9effbf6de73"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gaf3b2a435f815f37f914fe9effbf6de73">◆ </a></span>write_OFF() <span class="overload">[2/2]</span></h2>
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template<typename PointRange , typename NamedParameters = CGAL::parameters::Default_named_parameters> </div>
<table class="memname">
<tr>
<td class="memname">bool CGAL::IO::write_OFF </td>
<td>(</td>
<td class="paramtype">std::ostream & </td>
<td class="paramname"><em>os</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const PointRange & </td>
<td class="paramname"><em>points</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">const NamedParameters & </td>
<td class="paramname"><em>np</em> = <code><a class="elRef" href="../STL_Extension/group__PkgSTLExtensionRef.html#gaac7f54fe7abb7321d8d755683eaafaf2">parameters::default_values</a>()</code> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p><code>#include <CGAL/IO/write_off_points.h></code></p>
<p>writes the range of <code>points</code> (positions + normals, if available), using the <a class="elRef" href="../Stream_support/IOStreamSupportedFileFormats.html#IOStreamOFF">Object File Format (OFF)</a>. </p>
<dl class="tparams"><dt>Template Parameters</dt><dd>
<table class="tparams">
<tr><td class="paramname">PointRange</td><td>is a model of <code><a class="elRef" href="../Circulator/classConstRange.html">ConstRange</a></code>. The value type of its iterator is the key type of the named parameter <code>point_map</code>. </td></tr>
<tr><td class="paramname">NamedParameters</td><td>a sequence of <a class="elRef" href="../BGL/group__bgl__namedparameters.html">Named Parameters</a></td></tr>
</table>
</dd>
</dl>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">os</td><td>output stream </td></tr>
<tr><td class="paramname">points</td><td>input point range </td></tr>
<tr><td class="paramname">np</td><td>an optional sequence of <a class="elRef" href="../BGL/group__bgl__namedparameters.html">Named Parameters</a> among the ones listed below</td></tr>
</table>
</dd>
</dl>
<dl class="params">
<dt>Optional Named Parameters</dt>
<dd><table class="params">
<tr>
<td> <button class="collapsible"> <b>point_map</b> </button> <div class="content"><ul>
<li>
a property map associating points to the elements of the point range </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Manual/classReadablePropertyMap.html">ReadablePropertyMap</a></code> with value type <code>geom_traits::Point_3</code> </li>
<li>
<b>Default: </b><code><a class="elRef" href="../Property_map/structCGAL_1_1Identity__property__map.html">CGAL::Identity_property_map</a><geom_traits::Point_3></code> </li>
</ul>
</div> </td><td><p class="starttd"></p>
<p class="endtd"></p>
</td></tr>
<tr>
<td> <button class="collapsible"> <b>normal_map</b> </button> <div class="content"><ul>
<li>
a property map associating normals to the elements of the point range </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Manual/classReadablePropertyMap.html">ReadablePropertyMap</a></code> with value type <code>geom_traits::Vector_3</code> </li>
<li>
<b>Default: </b>If this parameter is omitted, normals are not written in the output stream. </li>
</ul>
</div> </td><td><p class="starttd"></p>
<p class="endtd"></p>
</td></tr>
<tr>
<td> <button class="collapsible"> <b>geom_traits</b> </button> <div class="content"><ul>
<li>
an instance of a geometric traits class </li>
<li>
<b>Type: </b>a model of <code><a class="elRef" href="../Kernel_23/classKernel.html">Kernel</a></code> </li>
<li>
<b>Default: </b>a CGAL <a class="elRef" href="../Kernel_23/classKernel.html">Kernel</a> deduced from the point type, using <code><a class="elRef" href="../Kernel_23/structCGAL_1_1Kernel__traits.html">CGAL::Kernel_traits</a></code> </li>
</ul>
</div> </td><td><p class="starttd"></p>
<p class="endtd"></p>
</td></tr>
<tr>
<td> <button class="collapsible"> <b>stream_precision</b> </button> <div class="content"><ul>
<li>
a parameter used to set the precision (i.e. how many digits are generated) of the output stream </li>
<li>
<b>Type: </b>int </li>
<li>
<b>Default: </b>the precision of the stream <code>os</code> </li>
</ul>
</div> </td><td></td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if writing was successful, <code>false</code> otherwise. </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="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>