1<html> 2<head> 3<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 4<title>closure_selector</title> 5<link rel="stylesheet" href="../../../../../../../doc/src/boostbook.css" type="text/css"> 6<meta name="generator" content="DocBook XSL Stylesheets V1.79.1"> 7<link rel="home" href="../../../index.html" title="Chapter 1. Geometry"> 8<link rel="up" href="../enumerations.html" title="Enumerations"> 9<link rel="prev" href="buffer_side_selector.html" title="buffer_side_selector"> 10<link rel="next" href="join_selector.html" title="join_selector"> 11</head> 12<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"> 13<table cellpadding="2" width="100%"><tr> 14<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../../../boost.png"></td> 15<td align="center"><a href="../../../../../../../index.html">Home</a></td> 16<td align="center"><a href="../../../../../../../libs/libraries.htm">Libraries</a></td> 17<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td> 18<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td> 19<td align="center"><a href="../../../../../../../more/index.htm">More</a></td> 20</tr></table> 21<hr> 22<div class="spirit-nav"> 23<a accesskey="p" href="buffer_side_selector.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../enumerations.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="join_selector.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 24</div> 25<div class="section"> 26<div class="titlepage"><div><div><h4 class="title"> 27<a name="geometry.reference.enumerations.closure_selector"></a><a class="link" href="closure_selector.html" title="closure_selector">closure_selector</a> 28</h4></div></div></div> 29<p> 30 <a class="indexterm" name="idm45635682433392"></a> 31<a class="indexterm" name="idm45635682432576"></a> 32<a class="indexterm" name="idm45635682431760"></a> 33<a class="indexterm" name="idm45635682430944"></a> 34Enumerates options for defining if polygons are open or closed. 35 </p> 36<h6> 37<a name="geometry.reference.enumerations.closure_selector.h0"></a> 38 <span class="phrase"><a name="geometry.reference.enumerations.closure_selector.description"></a></span><a class="link" href="closure_selector.html#geometry.reference.enumerations.closure_selector.description">Description</a> 39 </h6> 40<p> 41 The enumeration closure_selector describes options for if a polygon is 42 open or closed. In a closed polygon the very first point (per ring) should 43 be equal to the very last point. The specific closing property of a polygon 44 type is defined by the closure metafunction. The closure metafunction defines 45 a value, which is one of the values enumerated in the closure_selector 46 </p> 47<h6> 48<a name="geometry.reference.enumerations.closure_selector.h1"></a> 49 <span class="phrase"><a name="geometry.reference.enumerations.closure_selector.synopsis"></a></span><a class="link" href="closure_selector.html#geometry.reference.enumerations.closure_selector.synopsis">Synopsis</a> 50 </h6> 51<p> 52</p> 53<pre class="programlisting"><span class="keyword">enum</span> <span class="identifier">closure_selector</span> <span class="special">{</span><span class="identifier">open</span> <span class="special">=</span> <span class="number">0</span><span class="special">,</span> <span class="identifier">closed</span> <span class="special">=</span> <span class="number">1</span><span class="special">,</span> <span class="identifier">closure_undertermined</span> <span class="special">=</span> <span class="special">-</span><span class="number">1</span><span class="special">};</span></pre> 54<p> 55 </p> 56<h6> 57<a name="geometry.reference.enumerations.closure_selector.h2"></a> 58 <span class="phrase"><a name="geometry.reference.enumerations.closure_selector.values"></a></span><a class="link" href="closure_selector.html#geometry.reference.enumerations.closure_selector.values">Values</a> 59 </h6> 60<div class="informaltable"><table class="table"> 61<colgroup> 62<col> 63<col> 64</colgroup> 65<thead><tr> 66<th> 67 <p> 68 Value 69 </p> 70 </th> 71<th> 72 <p> 73 Description 74 </p> 75 </th> 76</tr></thead> 77<tbody> 78<tr> 79<td> 80 <p> 81 open 82 </p> 83 </td> 84<td> 85 <p> 86 Rings are open: first point and last point are different, algorithms 87 close them explicitly on the fly 88 </p> 89 </td> 90</tr> 91<tr> 92<td> 93 <p> 94 closed 95 </p> 96 </td> 97<td> 98 <p> 99 Rings are closed: first point and last point must be the same. 100 </p> 101 </td> 102</tr> 103<tr> 104<td> 105 <p> 106 closure_undertermined 107 </p> 108 </td> 109<td> 110 <p> 111 (Not yet implemented): algorithms first figure out if ring must 112 be closed on the fly 113 </p> 114 </td> 115</tr> 116</tbody> 117</table></div> 118<h6> 119<a name="geometry.reference.enumerations.closure_selector.h3"></a> 120 <span class="phrase"><a name="geometry.reference.enumerations.closure_selector.header"></a></span><a class="link" href="closure_selector.html#geometry.reference.enumerations.closure_selector.header">Header</a> 121 </h6> 122<p> 123 Either 124 </p> 125<p> 126 <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> 127 </p> 128<p> 129 Or 130 </p> 131<p> 132 <code class="computeroutput"><span class="preprocessor">#include</span> <span class="special"><</span><span class="identifier">boost</span><span class="special">/</span><span class="identifier">geometry</span><span class="special">/</span><span class="identifier">core</span><span class="special">/</span><span class="identifier">closure</span><span class="special">.</span><span class="identifier">hpp</span><span class="special">></span></code> 133 </p> 134<h6> 135<a name="geometry.reference.enumerations.closure_selector.h4"></a> 136 <span class="phrase"><a name="geometry.reference.enumerations.closure_selector.see_also"></a></span><a class="link" href="closure_selector.html#geometry.reference.enumerations.closure_selector.see_also">See 137 also</a> 138 </h6> 139<p> 140 <a class="link" href="../core/closure.html" title="closure">The closure metafunction</a> 141 </p> 142</div> 143<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr> 144<td align="left"></td> 145<td align="right"><div class="copyright-footer">Copyright © 2009-2019 Barend Gehrels, Bruno Lalande, Mateusz Loskot, Adam 146 Wulkiewicz, Oracle and/or its affiliates<p> 147 Distributed under the Boost Software License, Version 1.0. (See accompanying 148 file LICENSE_1_0.txt or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>) 149 </p> 150</div></td> 151</tr></table> 152<hr> 153<div class="spirit-nav"> 154<a accesskey="p" href="buffer_side_selector.html"><img src="../../../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../enumerations.html"><img src="../../../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../../../index.html"><img src="../../../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="join_selector.html"><img src="../../../../../../../doc/src/images/next.png" alt="Next"></a> 155</div> 156</body> 157</html> 158