<!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/algo/slide.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><li class="navelem"><a class="el" href="dir_8111f045ab156cab490d6e0f8a4c6c64.html">algo</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">slide.hpp</div>  </div>
</div><!--header-->
<div class="contents">
<a href="slide_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 SRC_ALGO_SLIDE_HPP_</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor">#define SRC_ALGO_SLIDE_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 &quot;../geometry.hpp&quot;</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="preprocessor">#include &quot;../translation_vector.hpp&quot;</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160; </div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacelibnfporb.html">libnfporb</a> {</div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160; </div>
<div class="line"><a name="l00012"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59">   12</a></span>&#160;<span class="keyword">enum</span> <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59">SlideResult</a> {</div>
<div class="line"><a name="l00013"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59a32b866ba62995b45cd4182353885766b">   13</a></span>&#160;    <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59a32b866ba62995b45cd4182353885766b">LOOP</a>,         </div>
<div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59a422ac082e2983ac4df9ea68dadf87f76">   14</a></span>&#160;    <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59a422ac082e2983ac4df9ea68dadf87f76">NO_LOOP</a>,      </div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;    <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59aaa88d6c648e957aab8d255d53093ed93">NO_TRANSLATION</a></div>
<div class="line"><a name="l00016"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59aaa88d6c648e957aab8d255d53093ed93">   16</a></span>&#160;};</div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160; </div>
<div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="namespacelibnfporb.html#aae299000a9c806457678eb7696e1b6a7">   32</a></span>&#160;<a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59">SlideResult</a> <a class="code" href="namespacelibnfporb.html#aae299000a9c806457678eb7696e1b6a7">slide</a>(<a class="code" href="namespacelibnfporb.html#a6669e4dfc06e20a3983fe52e360d38da">polygon_t</a>&amp; pA, polygon_t::ring_type&amp; rA, polygon_t::ring_type&amp; rB, <a class="code" href="namespacelibnfporb.html#ad1b65f43852227f30363ab70884415ab">nfp_t</a>&amp; nfp, <span class="keyword">const</span> <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a>&amp; startTrans, <span class="keywordtype">bool</span> inside) {</div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;    polygon_t::ring_type rifsB;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;    boost::geometry::transform(rB, 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="l00035"></a><span class="lineno">   35</span>&#160;    rB = std::move(rifsB);</div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160; </div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#ifdef NFP_DEBUG</span></div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;    <a class="code" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">write_svg</a>(<span class="stringliteral">&quot;ifs.svg&quot;</span>, pA, rB);</div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160; </div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;    <span class="keywordtype">bool</span> startAvailable = <span class="keyword">true</span>;</div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <a class="code" href="namespacelibnfporb.html#a83ffffdc4e4235604aa207e82bbb4eab">psize_t</a> cnt = 0;</div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;    <a class="code" href="classlibnfporb_1_1point__t.html">point_t</a> referenceStart = rB.front();</div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;    <a class="code" href="namespacelibnfporb.html#a96e2404c9e732b3f5a6d3ae4d6576d90">History</a> history;</div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160; </div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    <span class="comment">//generate the nfp for the ring</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    <span class="keywordflow">while</span> (startAvailable) {</div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;        <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;        <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;&quot;</span>);</div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;        <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(<span class="stringliteral">&quot;#### iteration: &quot;</span> + std::to_string(cnt) + <span class="stringliteral">&quot; ####&quot;</span>);</div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160; </div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;        <span class="comment">//use first point of rB as reference</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;        nfp.back().push_back(rB.front());</div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;        <span class="keywordflow">if</span> (cnt == 15)</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;            std::cerr &lt;&lt; <span class="stringliteral">&quot;&quot;</span>;</div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160; </div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;        std::vector&lt;TouchingPoint&gt; touchers = <a class="code" href="namespacelibnfporb.html#adef64d071f04a643db9eb39c7b12acb1">find_touching_points</a>(rA, rB);</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160; </div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;        <a class="code" href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a>(<span class="stringliteral">&quot;touchers&quot;</span>, touchers.size());</div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160; </div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;        <span class="keywordflow">if</span> (touchers.empty()) {</div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;            <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">&quot;Internal error: No touching points found&quot;</span>);</div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;        }</div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;        std::vector&lt;TranslationVector&gt; feasibleVectors = <a class="code" href="namespacelibnfporb.html#adadba4ed8bed6e50b03cca5112dc4c6a">find_feasible_translation_vectors</a>(rA, rB, touchers);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160; </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;<span class="preprocessor">#ifdef NFP_DEBUG</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;        <a class="code" href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a>(<span class="stringliteral">&quot;feasible vectors&quot;</span>, feasibleVectors.size());</div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;        <span class="keywordflow">for</span>(<span class="keyword">auto</span> pt : feasibleVectors) {</div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;            <a class="code" href="geometry_8hpp.html#a1b3334ff50dda25c6e2e8e5a918c180f">DEBUG_VAL</a>(pt);</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;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160; </div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;        <span class="keywordflow">if</span> (feasibleVectors.empty()) {</div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59a422ac082e2983ac4df9ea68dadf87f76">NO_LOOP</a>;</div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;        }</div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160; </div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        <a class="code" href="structlibnfporb_1_1TranslationVector.html">TranslationVector</a> next = <a class="code" href="namespacelibnfporb.html#afbc406a29ea633b078b82f74ff5cdb2c">select_next_translation_vector</a>(pA, rA, rB, feasibleVectors, history);</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160; </div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="namespacelibnfporb.html#a2e318553169d53a7150a00a79bd2762d">equals</a>(next.<a class="code" href="structlibnfporb_1_1TranslationVector.html#a4c67c4cee95a6c55f7092f4e803ff581">vector_</a>, <a class="code" href="namespacelibnfporb.html#a0abb0ee4fb1775630b0c6667426070c3">INVALID_POINT</a>))</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;            <span class="keywordflow">return</span> <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59aaa88d6c648e957aab8d255d53093ed93">NO_TRANSLATION</a>;</div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160; </div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;        <a class="code" href="structlibnfporb_1_1TranslationVector.html">TranslationVector</a> trimmed = <a class="code" href="namespacelibnfporb.html#a2fd421a83d9da2c621d947f3ceba6664">trim_vector</a>(rA, rB, next);</div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;        <a class="code" href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a>(<span class="stringliteral">&quot;trimmed&quot;</span>, trimmed);</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160; </div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;        <a class="code" href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a>(<span class="stringliteral">&quot;next&quot;</span>, next);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        history.push_back(next);</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;        polygon_t::ring_type nextRB;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;        boost::geometry::transform(rB, nextRB, trans::translate_transformer&lt;coord_t, 2, 2&gt;(trimmed.<a class="code" href="structlibnfporb_1_1TranslationVector.html#a4c67c4cee95a6c55f7092f4e803ff581">vector_</a>.<a class="code" href="classlibnfporb_1_1point__t.html#aba1e2421386afb0f2cf10dd13faab812">x_</a>, trimmed.<a class="code" href="structlibnfporb_1_1TranslationVector.html#a4c67c4cee95a6c55f7092f4e803ff581">vector_</a>.<a class="code" href="classlibnfporb_1_1point__t.html#ae6f0c323fd4ee211e141aef3aed44f90">y_</a>));</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;        rB = std::move(nextRB);</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;<span class="preprocessor">#ifdef NFP_DEBUG</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;        <a class="code" href="namespacelibnfporb.html#aefa8e61428bb5385bf8a62bb0a17cdd8">write_svg</a>(<span class="stringliteral">&quot;next&quot;</span> + std::to_string(cnt) + <span class="stringliteral">&quot;.svg&quot;</span>, pA,rB);</div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;        <span class="keywordflow">if</span>(bg::overlaps(pA, rB))</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;            <span class="keywordflow">throw</span> std::runtime_error(<span class="stringliteral">&quot;Internal error: Slide resulted in overlap&quot;</span>);</div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160; </div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;        ++cnt;</div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;        <span class="keywordflow">if</span> (<a class="code" href="namespacelibnfporb.html#a2e318553169d53a7150a00a79bd2762d">equals</a>(referenceStart, rB.front()) || (inside &amp;&amp; bg::touches(rB.front(), nfp.front()))) {</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;            startAvailable = <span class="keyword">false</span>;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;        }</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;    }</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    <span class="keywordflow">return</span> <a class="code" href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59a32b866ba62995b45cd4182353885766b">LOOP</a>;</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;}</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;}</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; </div>
<div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* SRC_ALGO_SLIDE_HPP_ */</span><span class="preprocessor"></span></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="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="ageometry_8hpp_html_ae18601ba88bb34208da9e4a0f11fa983"><div class="ttname"><a href="geometry_8hpp.html#ae18601ba88bb34208da9e4a0f11fa983">DEBUG_MSG</a></div><div class="ttdeci">#define DEBUG_MSG(title, value)</div><div class="ttdef"><b>Definition:</b> geometry.hpp:32</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_a0abb0ee4fb1775630b0c6667426070c3"><div class="ttname"><a href="namespacelibnfporb.html#a0abb0ee4fb1775630b0c6667426070c3">libnfporb::INVALID_POINT</a></div><div class="ttdeci">const point_t INVALID_POINT</div><div class="ttdef"><b>Definition:</b> geometry.hpp:353</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_a2fd421a83d9da2c621d947f3ceba6664"><div class="ttname"><a href="namespacelibnfporb.html#a2fd421a83d9da2c621d947f3ceba6664">libnfporb::trim_vector</a></div><div class="ttdeci">TranslationVector trim_vector(const polygon_t::ring_type &amp;rA, const polygon_t::ring_type &amp;rB, const TranslationVector &amp;tv)</div><div class="ttdoc">Trim a given translation vector so that it doesn't intersect with either rA or rB.</div><div class="ttdef"><b>Definition:</b> trim_vector.hpp:16</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_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_a96e2404c9e732b3f5a6d3ae4d6576d90"><div class="ttname"><a href="namespacelibnfporb.html#a96e2404c9e732b3f5a6d3ae4d6576d90">libnfporb::History</a></div><div class="ttdeci">std::vector&lt; TranslationVector &gt; History</div><div class="ttdef"><b>Definition:</b> history.hpp:8</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_a9f6a6b2407431f961afeba70cd953f59a422ac082e2983ac4df9ea68dadf87f76"><div class="ttname"><a href="namespacelibnfporb.html#a9f6a6b2407431f961afeba70cd953f59a422ac082e2983ac4df9ea68dadf87f76">libnfporb::NO_LOOP</a></div><div class="ttdeci">@ NO_LOOP</div><div class="ttdoc">we were not because we ran out of feasible translations</div><div class="ttdef"><b>Definition:</b> slide.hpp:14</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_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_adadba4ed8bed6e50b03cca5112dc4c6a"><div class="ttname"><a href="namespacelibnfporb.html#adadba4ed8bed6e50b03cca5112dc4c6a">libnfporb::find_feasible_translation_vectors</a></div><div class="ttdeci">std::vector&lt; TranslationVector &gt; find_feasible_translation_vectors(polygon_t::ring_type &amp;ringA, polygon_t::ring_type &amp;ringB, const std::vector&lt; TouchingPoint &gt; &amp;touchers)</div><div class="ttdef"><b>Definition:</b> find_feasible.hpp:17</div></div>
<div class="ttc" id="anamespacelibnfporb_html_adef64d071f04a643db9eb39c7b12acb1"><div class="ttname"><a href="namespacelibnfporb.html#adef64d071f04a643db9eb39c7b12acb1">libnfporb::find_touching_points</a></div><div class="ttdeci">std::vector&lt; TouchingPoint &gt; find_touching_points(const polygon_t::ring_type &amp;ringA, const polygon_t::ring_type &amp;ringB)</div><div class="ttdoc">Search for touching points of two rings of A and B.</div><div class="ttdef"><b>Definition:</b> touching_point.hpp:40</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_afbc406a29ea633b078b82f74ff5cdb2c"><div class="ttname"><a href="namespacelibnfporb.html#afbc406a29ea633b078b82f74ff5cdb2c">libnfporb::select_next_translation_vector</a></div><div class="ttdeci">TranslationVector select_next_translation_vector(const polygon_t &amp;pA, const polygon_t::ring_type &amp;rA, const polygon_t::ring_type &amp;rB, std::vector&lt; TranslationVector &gt; feasibleVectors, const History &amp;history)</div><div class="ttdoc">Select the next translation vector from all viable translations.</div><div class="ttdef"><b>Definition:</b> select_next.hpp:51</div></div>
<div class="ttc" id="astructlibnfporb_1_1TranslationVector_html"><div class="ttname"><a href="structlibnfporb_1_1TranslationVector.html">libnfporb::TranslationVector</a></div><div class="ttdef"><b>Definition:</b> translation_vector.hpp:10</div></div>
<div class="ttc" id="astructlibnfporb_1_1TranslationVector_html_a4c67c4cee95a6c55f7092f4e803ff581"><div class="ttname"><a href="structlibnfporb_1_1TranslationVector.html#a4c67c4cee95a6c55f7092f4e803ff581">libnfporb::TranslationVector::vector_</a></div><div class="ttdeci">point_t vector_</div><div class="ttdef"><b>Definition:</b> translation_vector.hpp:11</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>
