<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libnfporb API Reference: src/libnfporb.hpp Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">libnfporb API Reference
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">libnfporb.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="libnfporb_8hpp.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef NFP_HPP_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define NFP_HPP_</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160; </div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="preprocessor">#include &lt;iostream&gt;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="preprocessor">#include &lt;exception&gt;</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#include &lt;limits&gt;</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160; </div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="preprocessor">#include &lt;boost/geometry/algorithms/intersects.hpp&gt;</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="geometry_8hpp.html">geometry.hpp</a>&quot;</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="svg_8hpp.html">svg.hpp</a>&quot;</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="wkt_8hpp.html">wkt.hpp</a>&quot;</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="translation__vector_8hpp.html">translation_vector.hpp</a>&quot;</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="history_8hpp.html">history.hpp</a>&quot;</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="touching__point_8hpp.html">algo/touching_point.hpp</a>&quot;</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="trim__vector_8hpp.html">algo/trim_vector.hpp</a>&quot;</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="select__next_8hpp.html">algo/select_next.hpp</a>&quot;</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="find__feasible_8hpp.html">algo/find_feasible.hpp</a>&quot;</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="search__start_8hpp.html">algo/search_start.hpp</a>&quot;</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="slide_8hpp.html">algo/slide.hpp</a>&quot;</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160; </div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacelibnfporb.html">libnfporb</a> {</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; </div>
<div class="line"><a name="l00031"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#a7d4d082f209f3b53f4c23eb216353581">   31</a></span>&#160;<span class="keywordtype">bool</span> <a class="code" href="namespacelibnfporb.html#a7d4d082f209f3b53f4c23eb216353581">delete_consecutive_repeating_point_patterns</a>(polygon_t::ring_type&amp; ring) {</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;  <span class="keywordtype">size_t</span> startLen = ring.size();</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;  off_t len = ring.size();</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;  <span class="keywordtype">int</span> i, j, counter;</div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;  <span class="keywordflow">for</span> (i = 1; i &lt;= len / 2; ++i) {</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;    <span class="keywordflow">for</span> (j = i, counter = 0; j &lt; len; ++j) {</div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;      <span class="keywordflow">if</span> (<a class="code" href="namespacelibnfporb.html#a2e318553169d53a7150a00a79bd2762d">equals</a>(ring[j], ring[j - i]))</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;        counter++;</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;      <span class="keywordflow">else</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;        counter = 0;</div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;      <span class="keywordflow">if</span> (counter &gt; 2 &amp;&amp; counter == i) {</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;        counter = 0;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;        std::copy(ring.begin() + j, ring.begin() + len, ring.begin() + (j - i));</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;        j -= i;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;        len -= i;</div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;      }</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    }</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    ring.resize(j);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  }</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160; </div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;  <span class="keywordtype">size_t</span> start = 0, cnt = 0;</div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;  <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> c, l = ring[0];</div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160; </div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;  <span class="keywordflow">for</span> (<span class="keywordtype">size_t</span> i = 1; i &lt; ring.size(); ++i) {</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    c = ring[i];</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordflow">if</span>(<a class="code" href="namespacelibnfporb.html#a2e318553169d53a7150a00a79bd2762d">equals</a>(c, l)) {</div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;      <span class="keywordflow">if</span>(cnt == 0)</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;        start = i - 1;</div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160; </div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;      ++cnt;</div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;      <span class="keywordflow">if</span>(cnt &gt; 1) {</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        ring.erase(ring.begin() + start + 1, ring.begin() + start + cnt);</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        <span class="keywordflow">if</span>(start + cnt &gt;= ring.size())</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;          <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;      }</div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    }</div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    l = c;</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;  }</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;  <span class="keywordflow">return</span> ring.size() != startLen;</div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;}</div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160; </div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#a8741f7092463e07ac43a7a12105a6bb0">   77</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespacelibnfporb.html#a8741f7092463e07ac43a7a12105a6bb0">remove_co_linear</a>(polygon_t::ring_type&amp; r) {</div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;    assert(r.size() &gt; 2);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <a class="code" href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">psize_t</a> nextI;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">psize_t</a> prevI = 0;</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <a class="code" href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">segment_t</a> segment(r[r.size() - 2], r[0]);</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    polygon_t::ring_type newR;</div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160; </div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordflow">for</span> (<a class="code" href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">psize_t</a> i = 1; i &lt; r.size() + 1; ++i) {</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;        <span class="keywordflow">if</span> (i &gt;= r.size())</div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;            nextI = i % r.size() + 1;</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        <span class="keywordflow">else</span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;            nextI = i;</div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160; </div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="namespacelibnfporb.html#a821049b74c902ecafa0da3b19464717d">get_alignment</a>(segment, r[nextI]) != <a class="code" href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706fa98c4a453f9446b2ef4ce1d69872826c4">ON</a>) {</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;            newR.push_back(r[prevI]);</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;        }</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;        segment = {segment.second, r[nextI]};</div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        prevI = nextI;</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    }</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160; </div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    r = newR;</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;}</div>
<div class="line"><a name="l00103"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#ae5e1456b782237797abfb2d3de37eb71">  103</a></span>&#160;<span class="keywordtype">void</span> <a class="code" href="namespacelibnfporb.html#a8741f7092463e07ac43a7a12105a6bb0">remove_co_linear</a>(<a class="code" href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">polygon_t</a>&amp; p) {</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <a class="code" href="namespacelibnfporb.html#a8741f7092463e07ac43a7a12105a6bb0">remove_co_linear</a>(p.outer());</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; r : p.inners())</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        <a class="code" href="namespacelibnfporb.html#a8741f7092463e07ac43a7a12105a6bb0">remove_co_linear</a>(r);</div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    bg::correct(p);</div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;}</div>
<div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160; </div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#af6104269ab41fc23f514d9ad216fc999">  118</a></span>&#160;<a class="code" href="namespacelibnfporb.html#ad1b65f43852227f30363ab70884415ab">nfp_t</a> <a class="code" href="namespacelibnfporb.html#af6104269ab41fc23f514d9ad216fc999">generate_nfp</a>(<a class="code" href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">polygon_t</a>&amp; pA, <a class="code" href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">polygon_t</a>&amp; pB, <span class="keyword">const</span> <span class="keywordtype">bool</span> checkValidity = <span class="keyword">true</span>) {</div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <a class="code" href="namespacelibnfporb.html#a8741f7092463e07ac43a7a12105a6bb0">remove_co_linear</a>(pA);</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;    <a class="code" href="namespacelibnfporb.html#a8741f7092463e07ac43a7a12105a6bb0">remove_co_linear</a>(pB);</div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;    <span class="keywordflow">if</span> (checkValidity) {</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;        std::string reason;</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;        <span class="keywordflow">if</span> (!bg::is_valid(pA, reason))</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;            <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">&quot;Polygon A is invalid: &quot;</span> + reason);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160; </div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <span class="keywordflow">if</span> (!bg::is_valid(pB, reason))</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;            <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">&quot;Polygon B is invalid: &quot;</span> + reason);</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;    }</div>
<div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160; </div>
<div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;    <a class="code" href="namespacelibnfporb.html#ad1b65f43852227f30363ab70884415ab">nfp_t</a> nfp;</div>
<div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160; </div>
<div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;<span class="preprocessor">#ifdef NFP_DEBUG</span></div>
<div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <a class="code" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">write_svg</a>(<span class="stringliteral">&quot;start.svg&quot;</span>, {pA, pB});</div>
<div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00136"></a><span class="lineno">  136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(bg::wkt(pA));</div>
<div class="line"><a name="l00138"></a><span class="lineno">  138</span>&#160;    <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(bg::wkt(pB));</div>
<div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160; </div>
<div class="line"><a name="l00140"></a><span class="lineno">  140</span>&#160;    <span class="comment">//prevent double vertex connections at start because we might come back the same way we go which would end the nfp prematurely</span></div>
<div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;    std::vector&lt;psize_t&gt; yAminI = <a class="code" href="namespacelibnfporb.html#a6e84c3110a3df3edf346de96c14625fe">find_minimum_y</a>(pA);</div>
<div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    std::vector&lt;psize_t&gt; yBmaxI = <a class="code" href="namespacelibnfporb.html#acca4f428f8d3159f5f97a8dabb227e4c">find_maximum_y</a>(pB);</div>
<div class="line"><a name="l00143"></a><span class="lineno">  143</span>&#160; </div>
<div class="line"><a name="l00144"></a><span class="lineno">  144</span>&#160;    <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> pAstart;</div>
<div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> pBstart;</div>
<div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160; </div>
<div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;    <span class="keywordflow">if</span> (yAminI.size() &gt; 1 || yBmaxI.size() &gt; 1) {</div>
<div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;        <span class="comment">//find right-most of A and left-most of B to prevent double connection at start</span></div>
<div class="line"><a name="l00149"></a><span class="lineno">  149</span>&#160;        <a class="code" href="classlibnfporb_1_1LongDouble.html">coord_t</a> maxX = <a class="code" href="namespacelibnfporb.html#a125f9bff0a4aaed7ffa722b859f4876b">MIN_COORD</a>;</div>
<div class="line"><a name="l00150"></a><span class="lineno">  150</span>&#160;        <a class="code" href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">psize_t</a> iRightMost = 0;</div>
<div class="line"><a name="l00151"></a><span class="lineno">  151</span>&#160;        <span class="keywordflow">for</span> (<a class="code" href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">psize_t</a>&amp; ia : yAminI) {</div>
<div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;            <span class="keyword">const</span> <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a>&amp; candidateA = pA.outer()[ia];</div>
<div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="namespacelibnfporb.html#a3021c2838a351048bd223d1e9a0493c3">larger</a>(candidateA.<a class="code" href="classlibnfporb_1_1point__t.html#aba1e2421386afb0f2cf10dd13faab812">x_</a>, maxX)) {</div>
<div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;                maxX = candidateA.<a class="code" href="classlibnfporb_1_1point__t.html#aba1e2421386afb0f2cf10dd13faab812">x_</a>;</div>
<div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;                iRightMost = ia;</div>
<div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;            }</div>
<div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;        }</div>
<div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;        <a class="code" href="classlibnfporb_1_1LongDouble.html">coord_t</a> minX = <a class="code" href="namespacelibnfporb.html#a6090f5c63d46f9e812f2fc128fb7f249">MAX_COORD</a>;</div>
<div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;        <a class="code" href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">psize_t</a> iLeftMost = 0;</div>
<div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;        <span class="keywordflow">for</span> (<a class="code" href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">psize_t</a>&amp; ib : yBmaxI) {</div>
<div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;            <span class="keyword">const</span> <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a>&amp; candidateB = pB.outer()[ib];</div>
<div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="namespacelibnfporb.html#a4bf253739214a0da53cfc62291c36a5f">smaller</a>(candidateB.<a class="code" href="classlibnfporb_1_1point__t.html#aba1e2421386afb0f2cf10dd13faab812">x_</a>, minX)) {</div>
<div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;                minX = candidateB.<a class="code" href="classlibnfporb_1_1point__t.html#aba1e2421386afb0f2cf10dd13faab812">x_</a>;</div>
<div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;                iLeftMost = ib;</div>
<div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;            }</div>
<div class="line"><a name="l00167"></a><span class="lineno">  167</span>&#160;        }</div>
<div class="line"><a name="l00168"></a><span class="lineno">  168</span>&#160;        pAstart = pA.outer()[iRightMost];</div>
<div class="line"><a name="l00169"></a><span class="lineno">  169</span>&#160;        pBstart = pB.outer()[iLeftMost];</div>
<div class="line"><a name="l00170"></a><span class="lineno">  170</span>&#160;    } <span class="keywordflow">else</span> {</div>
<div class="line"><a name="l00171"></a><span class="lineno">  171</span>&#160;        pAstart = pA.outer()[yAminI.front()];</div>
<div class="line"><a name="l00172"></a><span class="lineno">  172</span>&#160;        pBstart = pB.outer()[yBmaxI.front()];</div>
<div class="line"><a name="l00173"></a><span class="lineno">  173</span>&#160;    }</div>
<div class="line"><a name="l00174"></a><span class="lineno">  174</span>&#160; </div>
<div class="line"><a name="l00175"></a><span class="lineno">  175</span>&#160;    nfp.push_back( { });</div>
<div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;    <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> transB = { pAstart - pBstart };</div>
<div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160; </div>
<div class="line"><a name="l00179"></a><span class="lineno">  179</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno">  180</span>&#160;    <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59">SlideResult</a> res;</div>
<div class="line"><a name="l00181"></a><span class="lineno">  181</span>&#160;    <span class="keywordflow">if</span> ((res = <a class="code" href="namespacelibnfporb.html#aae299000a9c806457678eb7696e1b6a7">slide</a>(pA, pA.outer(), pB.outer(), nfp, transB, <span class="keyword">false</span>))!= <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59a32b866ba62995b45cd4182353885766b">LOOP</a>) {</div>
<div class="line"><a name="l00182"></a><span class="lineno">  182</span>&#160;        <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">&quot;Unable to complete outer nfp loop: &quot;</span> + std::to_string(res));</div>
<div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;    }</div>
<div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160; </div>
<div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;    <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;##### outer #####&quot;</span>);</div>
<div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;    <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> startTrans;</div>
<div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;    <span class="keywordflow">while</span> (<span class="keyword">true</span>) {</div>
<div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;        <a class="code" href="namespacelibnfporb.html#ac919112e762b094cbcfda85b004cc608">SearchStartResult</a> res = <a class="code" href="namespacelibnfporb.html#afea486676ff7604aaf290a5899d54a88">search_start_translation</a>(pA.outer(), pB.outer(), nfp, <span class="keyword">false</span>, startTrans);</div>
<div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;        <span class="keywordflow">if</span> (res == <a class="code" href="namespacelibnfporb.html#ac919112e762b094cbcfda85b004cc608a842d31eb7e3e83ccf42fe970a1f26f90">FOUND</a>) {</div>
<div class="line"><a name="l00190"></a><span class="lineno">  190</span>&#160;            nfp.push_back( { });</div>
<div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;            <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;##### interlock start #####&quot;</span>);</div>
<div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;            polygon_t::ring_type rifsB;</div>
<div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;            boost::geometry::transform(pB.outer(), rifsB, trans::translate_transformer&lt;coord_t, 2, 2&gt;(startTrans.<a class="code" href="classlibnfporb_1_1point__t.html#aba1e2421386afb0f2cf10dd13faab812">x_</a>, startTrans.<a class="code" href="classlibnfporb_1_1point__t.html#ae6f0c323fd4ee211e141aef3aed44f90">y_</a>));</div>
<div class="line"><a name="l00194"></a><span class="lineno">  194</span>&#160;            <span class="keywordflow">if</span> (<a class="code" href="namespacelibnfporb.html#aceabf998f2256a045120bf6bf4b94f49">in_nfp</a>(rifsB.front(), nfp)) {</div>
<div class="line"><a name="l00195"></a><span class="lineno">  195</span>&#160;                <span class="keywordflow">continue</span>;</div>
<div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;            }</div>
<div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;            <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59">SlideResult</a> sres = <a class="code" href="namespacelibnfporb.html#aae299000a9c806457678eb7696e1b6a7">slide</a>(pA, pA.outer(), pB.outer(), nfp, startTrans, <span class="keyword">true</span>);</div>
<div class="line"><a name="l00198"></a><span class="lineno">  198</span>&#160;            <span class="keywordflow">if</span> (sres != <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59a32b866ba62995b45cd4182353885766b">LOOP</a>) {</div>
<div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;                <span class="keywordflow">if</span> (sres == <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59aaa88d6c648e957aab8d255d53093ed93">NO_TRANSLATION</a>) {</div>
<div class="line"><a name="l00200"></a><span class="lineno">  200</span>&#160;                    <span class="comment">//no initial slide found -&gt; jigsaw</span></div>
<div class="line"><a name="l00201"></a><span class="lineno">  201</span>&#160;                    <span class="keywordflow">if</span> (!<a class="code" href="namespacelibnfporb.html#aceabf998f2256a045120bf6bf4b94f49">in_nfp</a>(pB.outer().front(), nfp)) {</div>
<div class="line"><a name="l00202"></a><span class="lineno">  202</span>&#160;                        nfp.push_back( { });</div>
<div class="line"><a name="l00203"></a><span class="lineno">  203</span>&#160;                        nfp.back().push_back(pB.outer().front());</div>
<div class="line"><a name="l00204"></a><span class="lineno">  204</span>&#160;                    }</div>
<div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;                }</div>
<div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;            }</div>
<div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;            <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;##### interlock end #####&quot;</span>);</div>
<div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;        } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (res == <a class="code" href="namespacelibnfporb.html#ac919112e762b094cbcfda85b004cc608a48c794db749d9af78d4677534cc80165">FIT</a>) {</div>
<div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;            <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;##### perfect fit #####&quot;</span>);</div>
<div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;            <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> reference = pB.outer().front();</div>
<div class="line"><a name="l00211"></a><span class="lineno">  211</span>&#160;            <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> translated;</div>
<div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;            trans::translate_transformer&lt;coord_t, 2, 2&gt; translate(startTrans.<a class="code" href="classlibnfporb_1_1point__t.html#aba1e2421386afb0f2cf10dd13faab812">x_</a>, startTrans.<a class="code" href="classlibnfporb_1_1point__t.html#ae6f0c323fd4ee211e141aef3aed44f90">y_</a>);</div>
<div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;            boost::geometry::transform(reference, translated, translate);</div>
<div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;            <span class="keywordflow">if</span> (!<a class="code" href="namespacelibnfporb.html#aceabf998f2256a045120bf6bf4b94f49">in_nfp</a>(translated, nfp)) {</div>
<div class="line"><a name="l00215"></a><span class="lineno">  215</span>&#160;                nfp.push_back( { });</div>
<div class="line"><a name="l00216"></a><span class="lineno">  216</span>&#160;                nfp.back().push_back(translated);</div>
<div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;            }</div>
<div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;        } <span class="keywordflow">else</span></div>
<div class="line"><a name="l00220"></a><span class="lineno">  220</span>&#160;            <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00221"></a><span class="lineno">  221</span>&#160;    }</div>
<div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160; </div>
<div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;    <span class="keywordflow">for</span> (<span class="keyword">auto</span>&amp; rA : pA.inners()) {</div>
<div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        <span class="keywordflow">while</span> (<span class="keyword">true</span>) {</div>
<div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;            <a class="code" href="namespacelibnfporb.html#ac919112e762b094cbcfda85b004cc608">SearchStartResult</a> res = <a class="code" href="namespacelibnfporb.html#afea486676ff7604aaf290a5899d54a88">search_start_translation</a>(rA, pB.outer(), nfp, <span class="keyword">true</span>, startTrans);</div>
<div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;            <span class="keywordflow">if</span> (res == <a class="code" href="namespacelibnfporb.html#ac919112e762b094cbcfda85b004cc608a842d31eb7e3e83ccf42fe970a1f26f90">FOUND</a>) {</div>
<div class="line"><a name="l00227"></a><span class="lineno">  227</span>&#160;                nfp.push_back( { });</div>
<div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;                <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;##### hole start #####&quot;</span>);</div>
<div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;                <a class="code" href="namespacelibnfporb.html#aae299000a9c806457678eb7696e1b6a7">slide</a>(pA, rA, pB.outer(), nfp, startTrans, <span class="keyword">true</span>);</div>
<div class="line"><a name="l00230"></a><span class="lineno">  230</span>&#160;                <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;##### hole end #####&quot;</span>);</div>
<div class="line"><a name="l00231"></a><span class="lineno">  231</span>&#160;            } <span class="keywordflow">else</span> <span class="keywordflow">if</span> (res == <a class="code" href="namespacelibnfporb.html#ac919112e762b094cbcfda85b004cc608a48c794db749d9af78d4677534cc80165">FIT</a>) {</div>
<div class="line"><a name="l00232"></a><span class="lineno">  232</span>&#160;                <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> reference = pB.outer().front();</div>
<div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;                <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> translated;</div>
<div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;                trans::translate_transformer&lt;coord_t, 2, 2&gt; translate(startTrans.<a class="code" href="classlibnfporb_1_1point__t.html#aba1e2421386afb0f2cf10dd13faab812">x_</a>, startTrans.<a class="code" href="classlibnfporb_1_1point__t.html#ae6f0c323fd4ee211e141aef3aed44f90">y_</a>);</div>
<div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;                boost::geometry::transform(reference, translated, translate);</div>
<div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;                <span class="keywordflow">if</span> (!<a class="code" href="namespacelibnfporb.html#aceabf998f2256a045120bf6bf4b94f49">in_nfp</a>(translated, nfp)) {</div>
<div class="line"><a name="l00237"></a><span class="lineno">  237</span>&#160;                    nfp.push_back( { });</div>
<div class="line"><a name="l00238"></a><span class="lineno">  238</span>&#160;                    nfp.back().push_back(translated);</div>
<div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;                }</div>
<div class="line"><a name="l00240"></a><span class="lineno">  240</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00241"></a><span class="lineno">  241</span>&#160;            } <span class="keywordflow">else</span></div>
<div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;                <span class="keywordflow">break</span>;</div>
<div class="line"><a name="l00243"></a><span class="lineno">  243</span>&#160;        }</div>
<div class="line"><a name="l00244"></a><span class="lineno">  244</span>&#160;    }</div>
<div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160; </div>
<div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;<span class="preprocessor">#ifdef NFP_DEBUG</span></div>
<div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;    <a class="code" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">write_svg</a>(<span class="stringliteral">&quot;nfp.svg&quot;</span>, pA,pB, nfp);</div>
<div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160; </div>
<div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;    <span class="keywordflow">for</span>(<span class="keyword">auto</span>&amp; r : nfp) {</div>
<div class="line"><a name="l00251"></a><span class="lineno">  251</span>&#160;        <span class="keywordflow">while</span>(<a class="code" href="namespacelibnfporb.html#a7d4d082f209f3b53f4c23eb216353581">delete_consecutive_repeating_point_patterns</a>(r));</div>
<div class="line"><a name="l00252"></a><span class="lineno">  252</span>&#160;        bg::correct(r);</div>
<div class="line"><a name="l00253"></a><span class="lineno">  253</span>&#160;    }</div>
<div class="line"><a name="l00254"></a><span class="lineno">  254</span>&#160;    <span class="keywordflow">return</span> nfp;</div>
<div class="line"><a name="l00255"></a><span class="lineno">  255</span>&#160;}</div>
<div class="line"><a name="l00256"></a><span class="lineno">  256</span>&#160;}</div>
<div class="line"><a name="l00257"></a><span class="lineno">  257</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="aclasslibnfporb_1_1LongDouble_html"><div class="ttname"><a href="classlibnfporb_1_1LongDouble.html">libnfporb::LongDouble</a></div><div class="ttdef"><b>Definition:</b> geometry.hpp:39</div></div>
<div class="ttc" id="aclasslibnfporb_1_1point__t_html"><div class="ttname"><a href="classlibnfporb_1_1point__t.html">libnfporb::point_t</a></div><div class="ttdef"><b>Definition:</b> geometry.hpp:292</div></div>
<div class="ttc" id="aclasslibnfporb_1_1point__t_html_aba1e2421386afb0f2cf10dd13faab812"><div class="ttname"><a href="classlibnfporb_1_1point__t.html#aba1e2421386afb0f2cf10dd13faab812">libnfporb::point_t::x_</a></div><div class="ttdeci">coord_t x_</div><div class="ttdef"><b>Definition:</b> geometry.hpp:301</div></div>
<div class="ttc" id="aclasslibnfporb_1_1point__t_html_ae6f0c323fd4ee211e141aef3aed44f90"><div class="ttname"><a href="classlibnfporb_1_1point__t.html#ae6f0c323fd4ee211e141aef3aed44f90">libnfporb::point_t::y_</a></div><div class="ttdeci">coord_t y_</div><div class="ttdef"><b>Definition:</b> geometry.hpp:302</div></div>
<div class="ttc" id="afind__feasible_8hpp_html"><div class="ttname"><a href="find__feasible_8hpp.html">find_feasible.hpp</a></div></div>
<div class="ttc" id="ageometry_8hpp_html"><div class="ttname"><a href="geometry_8hpp.html">geometry.hpp</a></div></div>
<div class="ttc" id="ageometry_8hpp_html_a1b3334ff50dda25c6e2e8e5a918c180f"><div class="ttname"><a href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a></div><div class="ttdeci">#define DEBUG_VAL(x)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:31</div></div>
<div class="ttc" id="ahistory_8hpp_html"><div class="ttname"><a href="history_8hpp.html">history.hpp</a></div></div>
<div class="ttc" id="anamespacelibnfporb_html"><div class="ttname"><a href="namespacelibnfporb.html">libnfporb</a></div><div class="ttdef"><b>Definition:</b> geometry.hpp:26</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a125f9bff0a4aaed7ffa722b859f4876b"><div class="ttname"><a href="namespacelibnfporb.html#a125f9bff0a4aaed7ffa722b859f4876b">libnfporb::MIN_COORD</a></div><div class="ttdeci">const coord_t MIN_COORD</div><div class="ttdef"><b>Definition:</b> geometry.hpp:290</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a2e318553169d53a7150a00a79bd2762d"><div class="ttname"><a href="namespacelibnfporb.html#a2e318553169d53a7150a00a79bd2762d">libnfporb::equals</a></div><div class="ttdeci">bool equals(const LongDouble &amp;lhs, const LongDouble &amp;rhs)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:446</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a3021c2838a351048bd223d1e9a0493c3"><div class="ttname"><a href="namespacelibnfporb.html#a3021c2838a351048bd223d1e9a0493c3">libnfporb::larger</a></div><div class="ttdeci">bool larger(const LongDouble &amp;lhs, const LongDouble &amp;rhs)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:459</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a4bf253739214a0da53cfc62291c36a5f"><div class="ttname"><a href="namespacelibnfporb.html#a4bf253739214a0da53cfc62291c36a5f">libnfporb::smaller</a></div><div class="ttdeci">bool smaller(const LongDouble &amp;lhs, const LongDouble &amp;rhs)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:455</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a56b264a84ae3c5f7e5c984e17ee89fbc"><div class="ttname"><a href="namespacelibnfporb.html#a56b264a84ae3c5f7e5c984e17ee89fbc">libnfporb::segment_t</a></div><div class="ttdeci">bg::model::segment&lt; point_t &gt; segment_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:355</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a6090f5c63d46f9e812f2fc128fb7f249"><div class="ttname"><a href="namespacelibnfporb.html#a6090f5c63d46f9e812f2fc128fb7f249">libnfporb::MAX_COORD</a></div><div class="ttdeci">const coord_t MAX_COORD</div><div class="ttdef"><b>Definition:</b> geometry.hpp:289</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a6669e4dfc06e20a3983fe52e360d38da"><div class="ttname"><a href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">libnfporb::polygon_t</a></div><div class="ttdeci">bg::model::polygon&lt; point_t, false, true &gt; polygon_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:493</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a6e84c3110a3df3edf346de96c14625fe"><div class="ttname"><a href="namespacelibnfporb.html#a6e84c3110a3df3edf346de96c14625fe">libnfporb::find_minimum_y</a></div><div class="ttdeci">std::vector&lt; psize_t &gt; find_minimum_y(const polygon_t &amp;p)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:588</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a7d4d082f209f3b53f4c23eb216353581"><div class="ttname"><a href="namespacelibnfporb.html#a7d4d082f209f3b53f4c23eb216353581">libnfporb::delete_consecutive_repeating_point_patterns</a></div><div class="ttdeci">bool delete_consecutive_repeating_point_patterns(polygon_t::ring_type &amp;ring)</div><div class="ttdef"><b>Definition:</b> libnfporb.hpp:31</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a821049b74c902ecafa0da3b19464717d"><div class="ttname"><a href="namespacelibnfporb.html#a821049b74c902ecafa0da3b19464717d">libnfporb::get_alignment</a></div><div class="ttdeci">Alignment get_alignment(const segment_t &amp;seg, const point_t &amp;pt)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:531</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a83ffffdc4e4235604aa207e82bbb4eab"><div class="ttname"><a href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">libnfporb::psize_t</a></div><div class="ttdeci">polygon_t::ring_type::size_type psize_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:497</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a8741f7092463e07ac43a7a12105a6bb0"><div class="ttname"><a href="namespacelibnfporb.html#a8741f7092463e07ac43a7a12105a6bb0">libnfporb::remove_co_linear</a></div><div class="ttdeci">void remove_co_linear(polygon_t::ring_type &amp;r)</div><div class="ttdef"><b>Definition:</b> libnfporb.hpp:77</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a9f6a6b2407431f961afeba70cd953f59"><div class="ttname"><a href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59">libnfporb::SlideResult</a></div><div class="ttdeci">SlideResult</div><div class="ttdef"><b>Definition:</b> slide.hpp:12</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a9f6a6b2407431f961afeba70cd953f59a32b866ba62995b45cd4182353885766b"><div class="ttname"><a href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59a32b866ba62995b45cd4182353885766b">libnfporb::LOOP</a></div><div class="ttdeci">@ LOOP</div><div class="ttdoc">we were able to successfully create a NFP-loop</div><div class="ttdef"><b>Definition:</b> slide.hpp:13</div></div>
<div class="ttc" id="anamespacelibnfporb_html_a9f6a6b2407431f961afeba70cd953f59aaa88d6c648e957aab8d255d53093ed93"><div class="ttname"><a href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59aaa88d6c648e957aab8d255d53093ed93">libnfporb::NO_TRANSLATION</a></div><div class="ttdeci">@ NO_TRANSLATION</div><div class="ttdoc">we were unable to find a valid next position</div><div class="ttdef"><b>Definition:</b> slide.hpp:15</div></div>
<div class="ttc" id="anamespacelibnfporb_html_aae299000a9c806457678eb7696e1b6a7"><div class="ttname"><a href="namespacelibnfporb.html#aae299000a9c806457678eb7696e1b6a7">libnfporb::slide</a></div><div class="ttdeci">SlideResult slide(polygon_t &amp;pA, polygon_t::ring_type &amp;rA, polygon_t::ring_type &amp;rB, nfp_t &amp;nfp, const point_t &amp;startTrans, bool inside)</div><div class="ttdef"><b>Definition:</b> slide.hpp:32</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ab8d12caab4bf53479cc06d350cd5706fa98c4a453f9446b2ef4ce1d69872826c4"><div class="ttname"><a href="namespacelibnfporb.html#ab8d12caab4bf53479cc06d350cd5706fa98c4a453f9446b2ef4ce1d69872826c4">libnfporb::ON</a></div><div class="ttdeci">@ ON</div><div class="ttdef"><b>Definition:</b> geometry.hpp:528</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ac919112e762b094cbcfda85b004cc608"><div class="ttname"><a href="namespacelibnfporb.html#ac919112e762b094cbcfda85b004cc608">libnfporb::SearchStartResult</a></div><div class="ttdeci">SearchStartResult</div><div class="ttdoc">Indicating the result of search_start_translation.</div><div class="ttdef"><b>Definition:</b> search_start.hpp:27</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ac919112e762b094cbcfda85b004cc608a48c794db749d9af78d4677534cc80165"><div class="ttname"><a href="namespacelibnfporb.html#ac919112e762b094cbcfda85b004cc608a48c794db749d9af78d4677534cc80165">libnfporb::FIT</a></div><div class="ttdeci">@ FIT</div><div class="ttdoc">FIT.</div><div class="ttdef"><b>Definition:</b> search_start.hpp:28</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ac919112e762b094cbcfda85b004cc608a842d31eb7e3e83ccf42fe970a1f26f90"><div class="ttname"><a href="namespacelibnfporb.html#ac919112e762b094cbcfda85b004cc608a842d31eb7e3e83ccf42fe970a1f26f90">libnfporb::FOUND</a></div><div class="ttdeci">@ FOUND</div><div class="ttdoc">FOUND.</div><div class="ttdef"><b>Definition:</b> search_start.hpp:29</div></div>
<div class="ttc" id="anamespacelibnfporb_html_acca4f428f8d3159f5f97a8dabb227e4c"><div class="ttname"><a href="namespacelibnfporb.html#acca4f428f8d3159f5f97a8dabb227e4c">libnfporb::find_maximum_y</a></div><div class="ttdeci">std::vector&lt; psize_t &gt; find_maximum_y(const polygon_t &amp;p)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:604</div></div>
<div class="ttc" id="anamespacelibnfporb_html_aceabf998f2256a045120bf6bf4b94f49"><div class="ttname"><a href="namespacelibnfporb.html#aceabf998f2256a045120bf6bf4b94f49">libnfporb::in_nfp</a></div><div class="ttdeci">bool in_nfp(const point_t &amp;pt, const nfp_t &amp;nfp)</div><div class="ttdoc">Checks if a point exists in a NFP.</div><div class="ttdef"><b>Definition:</b> search_start.hpp:15</div></div>
<div class="ttc" id="anamespacelibnfporb_html_ad1b65f43852227f30363ab70884415ab"><div class="ttname"><a href="namespacelibnfporb.html#ad1b65f43852227f30363ab70884415ab">libnfporb::nfp_t</a></div><div class="ttdeci">std::vector&lt; polygon_t::ring_type &gt; nfp_t</div><div class="ttdef"><b>Definition:</b> geometry.hpp:494</div></div>
<div class="ttc" id="anamespacelibnfporb_html_aefa8e61428bb5385bf8a62bb0a17cdd8"><div class="ttname"><a href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">libnfporb::write_svg</a></div><div class="ttdeci">void write_svg(std::string const &amp;filename, const std::vector&lt; segment_t &gt; &amp;segments)</div><div class="ttdoc">Writes segments to a svg file.</div><div class="ttdef"><b>Definition:</b> svg.hpp:49</div></div>
<div class="ttc" id="anamespacelibnfporb_html_af6104269ab41fc23f514d9ad216fc999"><div class="ttname"><a href="namespacelibnfporb.html#af6104269ab41fc23f514d9ad216fc999">libnfporb::generate_nfp</a></div><div class="ttdeci">nfp_t generate_nfp(polygon_t &amp;pA, polygon_t &amp;pB, const bool checkValidity=true)</div><div class="ttdef"><b>Definition:</b> libnfporb.hpp:118</div></div>
<div class="ttc" id="anamespacelibnfporb_html_afea486676ff7604aaf290a5899d54a88"><div class="ttname"><a href="namespacelibnfporb.html#afea486676ff7604aaf290a5899d54a88">libnfporb::search_start_translation</a></div><div class="ttdeci">SearchStartResult search_start_translation(polygon_t::ring_type &amp;rA, const polygon_t::ring_type &amp;rB, const nfp_t &amp;nfp, const bool &amp;inside, point_t &amp;result)</div><div class="ttdoc">At the start of traversal and after every completed nfp-ring this function is used to search for a ne...</div><div class="ttdef"><b>Definition:</b> search_start.hpp:42</div></div>
<div class="ttc" id="asearch__start_8hpp_html"><div class="ttname"><a href="search__start_8hpp.html">search_start.hpp</a></div></div>
<div class="ttc" id="aselect__next_8hpp_html"><div class="ttname"><a href="select__next_8hpp.html">select_next.hpp</a></div></div>
<div class="ttc" id="aslide_8hpp_html"><div class="ttname"><a href="slide_8hpp.html">slide.hpp</a></div></div>
<div class="ttc" id="asvg_8hpp_html"><div class="ttname"><a href="svg_8hpp.html">svg.hpp</a></div></div>
<div class="ttc" id="atouching__point_8hpp_html"><div class="ttname"><a href="touching__point_8hpp.html">touching_point.hpp</a></div></div>
<div class="ttc" id="atranslation__vector_8hpp_html"><div class="ttname"><a href="translation__vector_8hpp.html">translation_vector.hpp</a></div></div>
<div class="ttc" id="atrim__vector_8hpp_html"><div class="ttname"><a href="trim__vector_8hpp.html">trim_vector.hpp</a></div></div>
<div class="ttc" id="awkt_8hpp_html"><div class="ttname"><a href="wkt_8hpp.html">wkt.hpp</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>
