<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>DFNgen: computationalGeometry.cpp File Reference</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="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="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="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">DFNgen
   &#160;<span id="projectnumber">2.0</span>
   </div>
   <div id="projectbrief">DFN Model Generator</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</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"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('computational_geometry_8cpp.html','');});
</script>
<div id="doc-content">
<!-- 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 class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">computationalGeometry.cpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;iomanip&gt;</code><br />
<code>#include &lt;algorithm&gt;</code><br />
<code>#include &quot;<a class="el" href="computational_geometry_8h_source.html">computationalGeometry.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="structures_8h_source.html">structures.h</a>&quot;</code><br />
<code>#include &lt;iostream&gt;</code><br />
<code>#include &lt;cmath&gt;</code><br />
<code>#include &quot;<a class="el" href="vector_functions_8h_source.html">vectorFunctions.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="input_8h_source.html">input.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="math_functions_8h_source.html">mathFunctions.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="generating_points_8h_source.html">generatingPoints.h</a>&quot;</code><br />
<code>#include &lt;fstream&gt;</code><br />
<code>#include &lt;random&gt;</code><br />
<code>#include &quot;<a class="el" href="testing_8h_source.html">testing.h</a>&quot;</code><br />
<code>#include &quot;<a class="el" href="cluster_groups_8h_source.html">clusterGroups.h</a>&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for computationalGeometry.cpp:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp__incl.png" border="0" usemap="#computational_geometry_8cpp" alt=""/></div>
<map name="computational_geometry_8cpp" id="computational_geometry_8cpp">
<area shape="rect" id="node4" href="computational_geometry_8h.html" title="computationalGeometry.h" alt="" coords="774,155,948,181"/>
<area shape="rect" id="node5" href="structures_8h.html" title="structures.h" alt="" coords="634,229,725,256"/>
<area shape="rect" id="node10" href="vector_functions_8h.html" title="vectorFunctions.h" alt="" coords="1025,80,1151,107"/>
<area shape="rect" id="node12" href="input_8h.html" title="input.h" alt="" coords="1177,155,1239,181"/>
<area shape="rect" id="node13" href="math_functions_8h.html" title="mathFunctions.h" alt="" coords="1412,80,1532,107"/>
<area shape="rect" id="node14" href="generating_points_8h.html" title="generatingPoints.h" alt="" coords="376,80,509,107"/>
<area shape="rect" id="node18" href="testing_8h.html" title="testing.h" alt="" coords="1556,80,1628,107"/>
<area shape="rect" id="node19" href="cluster_groups_8h.html" title="clusterGroups.h" alt="" coords="531,155,647,181"/>
<area shape="rect" id="node16" href="distributions_8h.html" title="distributions.h" alt="" coords="301,155,405,181"/>
<area shape="rect" id="node17" href="exp_dist_8h.html" title="expDist.h" alt="" coords="301,229,379,256"/>
</map>
</div>
</div>
<p><a href="computational_geometry_8cpp_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a878eeb1b4990cde9d7d12a64f647af4d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a878eeb1b4990cde9d7d12a64f647af4d">applyRotation2D</a> (<a class="el" href="struct_poly.html">Poly</a> &amp;newPoly, float angle)</td></tr>
<tr class="separator:a878eeb1b4990cde9d7d12a64f647af4d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3098cccf29c7a47d2eae661b0f545224"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a3098cccf29c7a47d2eae661b0f545224">translate</a> (<a class="el" href="struct_poly.html">Poly</a> &amp;newPoly, double *translation)</td></tr>
<tr class="separator:a3098cccf29c7a47d2eae661b0f545224"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8aaea6ef9d977f6d7d571d45ace1ad5d"><td class="memItemLeft" align="right" valign="top">double *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a8aaea6ef9d977f6d7d571d45ace1ad5d">rotationMatrix</a> (double *normalA, double *normalB)</td></tr>
<tr class="separator:a8aaea6ef9d977f6d7d571d45ace1ad5d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7f1ba8a57908229078780a2695e4e46"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#af7f1ba8a57908229078780a2695e4e46">applyRotation3D</a> (<a class="el" href="struct_poly.html">Poly</a> &amp;newPoly, double *normalB)</td></tr>
<tr class="separator:af7f1ba8a57908229078780a2695e4e46"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a06628fbaa79aad7eec7a74c5341e77bd"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="struct_int_points.html">IntPoints</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a06628fbaa79aad7eec7a74c5341e77bd">polyAndIntersection_RotationToXY</a> (struct <a class="el" href="struct_int_points.html">IntPoints</a> &amp;intersection, <a class="el" href="struct_poly.html">Poly</a> &amp;newPoly, std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;triplePoints, std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;tempTripPts)</td></tr>
<tr class="separator:a06628fbaa79aad7eec7a74c5341e77bd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace23b489a120bc6d6407f7e08e1e009d"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#ace23b489a120bc6d6407f7e08e1e009d">createBoundingBox</a> (struct <a class="el" href="struct_poly.html">Poly</a> &amp;newPoly)</td></tr>
<tr class="separator:ace23b489a120bc6d6407f7e08e1e009d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a68c9aa4c8a1d635c5a662c94722bd19f"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a68c9aa4c8a1d635c5a662c94722bd19f">printBoundingBox</a> (struct <a class="el" href="struct_poly.html">Poly</a> &amp;newPoly)</td></tr>
<tr class="separator:a68c9aa4c8a1d635c5a662c94722bd19f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4016983189eb7ed8e227b49477018d8a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a4016983189eb7ed8e227b49477018d8a">checkBoundingBox</a> (<a class="el" href="struct_poly.html">Poly</a> &amp;poly1, <a class="el" href="struct_poly.html">Poly</a> &amp;poly2)</td></tr>
<tr class="separator:a4016983189eb7ed8e227b49477018d8a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:acc7b1a87dc0b49ffcb9898dae4cc4e96"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="struct_int_points.html">IntPoints</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#acc7b1a87dc0b49ffcb9898dae4cc4e96">findIntersections</a> (short &amp;flag, <a class="el" href="struct_poly.html">Poly</a> &amp;poly1, <a class="el" href="struct_poly.html">Poly</a> &amp;poly2)</td></tr>
<tr class="separator:acc7b1a87dc0b49ffcb9898dae4cc4e96"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7770747ef4153bfb4ae5d53dce0d5876"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a7770747ef4153bfb4ae5d53dce0d5876">FRAM</a> (<a class="el" href="struct_int_points.html">IntPoints</a> &amp;intPts, unsigned int count, std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;intPtsList, <a class="el" href="struct_poly.html">Poly</a> &amp;newPoly, <a class="el" href="struct_poly.html">Poly</a> &amp;poly2, <a class="el" href="struct_stats.html">Stats</a> &amp;pstats, std::vector&lt; <a class="el" href="struct_triple_pt_temp_data.html">TriplePtTempData</a> &gt; &amp;tempData, std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;triplePoints, std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;tempIntPts)</td></tr>
<tr class="separator:a7770747ef4153bfb4ae5d53dce0d5876"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1228db3b0fb85b1a5233b1fb78edd4a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#ac1228db3b0fb85b1a5233b1fb78edd4a">checkDistToOldIntersections</a> (std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;intPtsList, <a class="el" href="struct_int_points.html">IntPoints</a> &amp;intPts, <a class="el" href="struct_poly.html">Poly</a> &amp;poly2, double minDistance)</td></tr>
<tr class="separator:ac1228db3b0fb85b1a5233b1fb78edd4a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abdfd17162db7fd7ad2e4719255fa915f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#abdfd17162db7fd7ad2e4719255fa915f">checkDistToNewIntersections</a> (std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;tempIntPts, <a class="el" href="struct_int_points.html">IntPoints</a> &amp;intPts, std::vector&lt; <a class="el" href="struct_triple_pt_temp_data.html">TriplePtTempData</a> &gt; &amp;tempTriPts, double minDistance)</td></tr>
<tr class="separator:abdfd17162db7fd7ad2e4719255fa915f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a69f93a65c39c49d1b705fad32f790e98"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a69f93a65c39c49d1b705fad32f790e98">shrinkIntersection</a> (<a class="el" href="struct_int_points.html">IntPoints</a> &amp;intPts, double *edge, double shrinkLimit, double firstNodeMinDist, double minDist)</td></tr>
<tr class="separator:a69f93a65c39c49d1b705fad32f790e98"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a38a8c322dba7d8518a4c3206cd55a5f6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a38a8c322dba7d8518a4c3206cd55a5f6">intersectionChecking</a> (struct <a class="el" href="struct_poly.html">Poly</a> &amp;newPoly, std::vector&lt; <a class="el" href="struct_poly.html">Poly</a> &gt; &amp;acceptedPoly, std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;intPtsList, struct <a class="el" href="struct_stats.html">Stats</a> &amp;pstats, std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;triplePoints)</td></tr>
<tr class="separator:a38a8c322dba7d8518a4c3206cd55a5f6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a95b1277bb056c0817776be85b254c987"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a95b1277bb056c0817776be85b254c987">checkDistanceFromNodes</a> (struct <a class="el" href="struct_poly.html">Poly</a> &amp;poly, <a class="el" href="struct_int_points.html">IntPoints</a> &amp;intPts, double minDist, <a class="el" href="struct_stats.html">Stats</a> &amp;pstats)</td></tr>
<tr class="separator:a95b1277bb056c0817776be85b254c987"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e3e0a14f3ad58c314ce2e6a29b03fa2"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2">pointToLineSeg</a> (const double *point, const double *line)</td></tr>
<tr class="separator:a5e3e0a14f3ad58c314ce2e6a29b03fa2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad263d6aadd25eaf48d5fe67b6b7e7a2a"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#ad263d6aadd25eaf48d5fe67b6b7e7a2a">pointToLineSeg</a> (const <a class="el" href="struct_point.html">Point</a> &amp;point, const double *line)</td></tr>
<tr class="separator:ad263d6aadd25eaf48d5fe67b6b7e7a2a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab5f3ce14eaf1560295c9ec71514c340c"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#ab5f3ce14eaf1560295c9ec71514c340c">pointOnLineSeg</a> (const double *pt, const double *line)</td></tr>
<tr class="separator:ab5f3ce14eaf1560295c9ec71514c340c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a26684f20241548e01da824ff9248207f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a26684f20241548e01da824ff9248207f">pointOnLineSeg</a> (const <a class="el" href="struct_point.html">Point</a> &amp;pt, const double *line)</td></tr>
<tr class="separator:a26684f20241548e01da824ff9248207f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adf34efb0050985566dfb41f51967680f"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#adf34efb0050985566dfb41f51967680f">checkCloseEdge</a> (<a class="el" href="struct_poly.html">Poly</a> &amp;poly1, <a class="el" href="struct_int_points.html">IntPoints</a> &amp;intPts, double shrinkLimit, <a class="el" href="struct_stats.html">Stats</a> &amp;pstats)</td></tr>
<tr class="separator:adf34efb0050985566dfb41f51967680f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9eb32a7555c136fb7960f9f13db70004"><td class="memItemLeft" align="right" valign="top"><a class="el" href="struct_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a9eb32a7555c136fb7960f9f13db70004">lineIntersection3D</a> (const double *p1, double *v1, const double *p2, double *v2)</td></tr>
<tr class="separator:a9eb32a7555c136fb7960f9f13db70004"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5edbf5558b99624dfb90275aa07ba149"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a5edbf5558b99624dfb90275aa07ba149">lineSegToLineSeg</a> (const double *line1, const double *line2, <a class="el" href="struct_point.html">Point</a> &amp;pt)</td></tr>
<tr class="separator:a5edbf5558b99624dfb90275aa07ba149"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a545f45434dcbd126c6ff994b9ec2588b"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a545f45434dcbd126c6ff994b9ec2588b">lineSegToLineSegSep</a> (const double *line1, const double *line2)</td></tr>
<tr class="separator:a545f45434dcbd126c6ff994b9ec2588b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a237899188f8ca6cf74a2da890cd13868"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="computational_geometry_8cpp.html#a237899188f8ca6cf74a2da890cd13868">checkForTripleIntersections</a> (<a class="el" href="struct_int_points.html">IntPoints</a> &amp;intPts, unsigned int count, std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;intPtsList, <a class="el" href="struct_poly.html">Poly</a> &amp;newPoly, <a class="el" href="struct_poly.html">Poly</a> &amp;poly2, std::vector&lt; <a class="el" href="struct_triple_pt_temp_data.html">TriplePtTempData</a> &gt; &amp;tempData, std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;triplePoints)</td></tr>
<tr class="separator:a237899188f8ca6cf74a2da890cd13868"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a id="a878eeb1b4990cde9d7d12a64f647af4d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a878eeb1b4990cde9d7d12a64f647af4d">&sect;&nbsp;</a></span>applyRotation2D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void applyRotation2D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>newPoly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">float&#160;</td>
          <td class="paramname"><em>angle</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Rotates poly around its normal vecotor on x-y plane Assumes poly is on x-y plane Assumes poly.numberOfNodes is set Angle must be in radians Arg 1: <a class="el" href="struct_poly.html">Poly</a> to be rotated Arg 2: Angle to rotate to </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00024">24</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a878eeb1b4990cde9d7d12a64f647af4d_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a878eeb1b4990cde9d7d12a64f647af4d_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a878eeb1b4990cde9d7d12a64f647af4d_icgraph" id="computational_geometry_8cpp_a878eeb1b4990cde9d7d12a64f647af4d_icgraph">
<area shape="rect" id="node2" href="insert_shape_8h.html#a4f91304a14fefba4d4f93f2f3e54dee4" title="generatePoly" alt="" coords="210,5,310,32"/>
<area shape="rect" id="node5" href="insert_shape_8h.html#a4a4d307b0a091a6159358f312371ae95" title="generatePoly_withRadius" alt="" coords="173,56,347,83"/>
<area shape="rect" id="node6" href="insert_shape_8h.html#afa95ede56e6ecb8918b61c5a2815d40d" title="reTranslatePoly" alt="" coords="202,107,318,133"/>
<area shape="rect" id="node7" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="405,157,502,184"/>
<area shape="rect" id="node8" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="395,208,512,235"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="560,107,611,133"/>
<area shape="rect" id="node4" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="421,56,486,83"/>
</map>
</div>

</div>
</div>
<a id="af7f1ba8a57908229078780a2695e4e46"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af7f1ba8a57908229078780a2695e4e46">&sect;&nbsp;</a></span>applyRotation3D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void applyRotation3D </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>newPoly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>normalB</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Rotates 'newPoly' from newPoly's current normal so that newPoly's new normal will be 'normalB' Assumes poly.numberOfPoints and newPoly.normal are initialized and normalized Arg 1: <a class="el" href="struct_poly.html">Poly</a> to be rotated Arg 2: Normal vector to rotate to (array of 3 doubles) </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00147">147</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_af7f1ba8a57908229078780a2695e4e46_cgraph.png" border="0" usemap="#computational_geometry_8cpp_af7f1ba8a57908229078780a2695e4e46_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_af7f1ba8a57908229078780a2695e4e46_cgraph" id="computational_geometry_8cpp_af7f1ba8a57908229078780a2695e4e46_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#a94303b1c8dd36d71e57fd0e4d5d26ae3" title="crossProduct" alt="" coords="326,5,426,32"/>
<area shape="rect" id="node3" href="computational_geometry_8cpp.html#a8aaea6ef9d977f6d7d571d45ace1ad5d" title="rotationMatrix" alt="" coords="174,56,277,83"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="333,56,419,83"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_af7f1ba8a57908229078780a2695e4e46_icgraph.png" border="0" usemap="#computational_geometry_8cpp_af7f1ba8a57908229078780a2695e4e46_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_af7f1ba8a57908229078780a2695e4e46_icgraph" id="computational_geometry_8cpp_af7f1ba8a57908229078780a2695e4e46_icgraph">
<area shape="rect" id="node2" href="insert_shape_8h.html#a4f91304a14fefba4d4f93f2f3e54dee4" title="generatePoly" alt="" coords="210,5,310,32"/>
<area shape="rect" id="node5" href="insert_shape_8h.html#a4a4d307b0a091a6159358f312371ae95" title="generatePoly_withRadius" alt="" coords="173,56,347,83"/>
<area shape="rect" id="node6" href="insert_shape_8h.html#afa95ede56e6ecb8918b61c5a2815d40d" title="reTranslatePoly" alt="" coords="202,107,318,133"/>
<area shape="rect" id="node7" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="405,157,502,184"/>
<area shape="rect" id="node8" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="395,208,512,235"/>
<area shape="rect" id="node9" href="output_8h.html#a05f2f6fb056bf06f18530445383e53d1" title="rotateFractures" alt="" coords="204,259,316,285"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="560,107,611,133"/>
<area shape="rect" id="node4" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="421,56,486,83"/>
</map>
</div>

</div>
</div>
<a id="a4016983189eb7ed8e227b49477018d8a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4016983189eb7ed8e227b49477018d8a">&sect;&nbsp;</a></span>checkBoundingBox()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool checkBoundingBox </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>poly1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>poly2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Compares two polygons' bounding boxes, returns 1 if bounding boxes intersect Arg 1: <a class="el" href="struct_poly.html">Poly</a> 1 Arg 2: <a class="el" href="struct_poly.html">Poly</a> 2 Return: True if bounding box's intersect, false otherwise </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00379">379</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a4016983189eb7ed8e227b49477018d8a_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a4016983189eb7ed8e227b49477018d8a_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a4016983189eb7ed8e227b49477018d8a_icgraph" id="computational_geometry_8cpp_a4016983189eb7ed8e227b49477018d8a_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="190,117,335,143"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="603,117,653,143"/>
<area shape="rect" id="node4" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="421,41,518,67"/>
<area shape="rect" id="node5" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="395,91,544,118"/>
<area shape="rect" id="node6" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="411,142,528,169"/>
<area shape="rect" id="node7" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="385,193,554,219"/>
<area shape="rect" id="node8" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="408,243,531,270"/>
</map>
</div>

</div>
</div>
<a id="adf34efb0050985566dfb41f51967680f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adf34efb0050985566dfb41f51967680f">&sect;&nbsp;</a></span>checkCloseEdge()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool checkCloseEdge </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>poly1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_int_points.html">IntPoints</a> &amp;&#160;</td>
          <td class="paramname"><em>intPts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>shrinkLimit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_stats.html">Stats</a> &amp;&#160;</td>
          <td class="paramname"><em>pstats</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Checks distances from intersection to poly edges. If the distance is less than h, the intersection is allowed to shrink by %10 of its original length. If the intersection is still closer than h to a poly edge, the polygon is rejected.</p>
<p>Arg 1: <a class="el" href="struct_poly.html">Poly</a> to be tested Arg 2: <a class="el" href="struct_int_points.html">IntPoints</a> intersection to be tested Arg 3: Minimum length the intersection is allowed to shinrk to Arg 4: <a class="el" href="struct_stats.html">Stats</a> program statistics structure, used to report stats on how much intersection length is being reduced by from <a class="el" href="computational_geometry_8cpp.html#a69f93a65c39c49d1b705fad32f790e98">shrinkIntersection()</a> </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l01197">1197</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_adf34efb0050985566dfb41f51967680f_cgraph.png" border="0" usemap="#computational_geometry_8cpp_adf34efb0050985566dfb41f51967680f_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_adf34efb0050985566dfb41f51967680f_cgraph" id="computational_geometry_8cpp_adf34efb0050985566dfb41f51967680f_cgraph">
<area shape="rect" id="node2" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="606,56,722,83"/>
<area shape="rect" id="node7" href="computational_geometry_8cpp.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="200,233,331,260"/>
<area shape="rect" id="node13" href="computational_geometry_8cpp.html#a69f93a65c39c49d1b705fad32f790e98" title="shrinkIntersection" alt="" coords="417,157,543,184"/>
<area shape="rect" id="node15" href="computational_geometry_8cpp.html#a95b1277bb056c0817776be85b254c987" title="checkDistanceFromNodes" alt="" coords="176,5,355,32"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="771,31,874,57"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="781,157,865,184"/>
<area shape="rect" id="node5" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="779,259,866,285"/>
<area shape="rect" id="node6" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="783,81,863,108"/>
<area shape="rect" id="node8" href="vector_functions_8h.html#a7038a32284147d86abda1f0b54b83a4e" title="parallel" alt="" coords="447,259,513,285"/>
<area shape="rect" id="node10" href="computational_geometry_8cpp.html#ab5f3ce14eaf1560295c9ec71514c340c" title="pointOnLineSeg" alt="" coords="421,309,539,336"/>
<area shape="rect" id="node11" href="computational_geometry_8cpp.html#a545f45434dcbd126c6ff994b9ec2588b" title="lineSegToLineSegSep" alt="" coords="403,107,557,133"/>
<area shape="rect" id="node12" href="computational_geometry_8cpp.html#a9eb32a7555c136fb7960f9f13db70004" title="lineIntersection3D" alt="" coords="415,360,545,387"/>
<area shape="rect" id="node9" href="vector_functions_8h.html#a48bb00fc4195377b229efe044f3bb67e" title="normalize" alt="" coords="624,309,704,336"/>
<area shape="rect" id="node14" href="generating_points_8cpp.html#a1765372f6dbad65b4d7cac36d830bdfe" title="lineFunction3D" alt="" coords="609,107,719,133"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_adf34efb0050985566dfb41f51967680f_icgraph.png" border="0" usemap="#computational_geometry_8cpp_adf34efb0050985566dfb41f51967680f_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_adf34efb0050985566dfb41f51967680f_icgraph" id="computational_geometry_8cpp_adf34efb0050985566dfb41f51967680f_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="177,117,237,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="286,117,431,143"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="699,117,749,143"/>
<area shape="rect" id="node5" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="517,41,614,67"/>
<area shape="rect" id="node6" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="491,91,640,118"/>
<area shape="rect" id="node7" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="507,142,624,169"/>
<area shape="rect" id="node8" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="481,193,650,219"/>
<area shape="rect" id="node9" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="504,243,627,270"/>
</map>
</div>

</div>
</div>
<a id="a95b1277bb056c0817776be85b254c987"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a95b1277bb056c0817776be85b254c987">&sect;&nbsp;</a></span>checkDistanceFromNodes()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool checkDistanceFromNodes </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>poly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_int_points.html">IntPoints</a> &amp;&#160;</td>
          <td class="paramname"><em>intPts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>minDist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_stats.html">Stats</a> &amp;&#160;</td>
          <td class="paramname"><em>pstats</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Checks distance from line of intersection to poly vertices Arg 1: <a class="el" href="struct_poly.html">Poly</a> to check dist to intersection Arg 3: Intersection structure (intersection end points) Arg 4: Minimum distance allowed Return: 0 - Distance from intersection to vertices are all &gt; 'minDist' 1 - Na distance less than minDist was found </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l01022">1022</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a95b1277bb056c0817776be85b254c987_cgraph.png" border="0" usemap="#computational_geometry_8cpp_a95b1277bb056c0817776be85b254c987_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a95b1277bb056c0817776be85b254c987_cgraph" id="computational_geometry_8cpp_a95b1277bb056c0817776be85b254c987_cgraph">
<area shape="rect" id="node2" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="233,81,349,108"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="398,5,501,32"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="407,56,491,83"/>
<area shape="rect" id="node5" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="406,107,493,133"/>
<area shape="rect" id="node6" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="409,157,489,184"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a95b1277bb056c0817776be85b254c987_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a95b1277bb056c0817776be85b254c987_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a95b1277bb056c0817776be85b254c987_icgraph" id="computational_geometry_8cpp_a95b1277bb056c0817776be85b254c987_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="232,117,355,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="403,117,463,143"/>
<area shape="rect" id="node4" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="513,117,658,143"/>
<area shape="rect" id="node5" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="925,117,976,143"/>
<area shape="rect" id="node6" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="743,41,841,67"/>
<area shape="rect" id="node7" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="717,91,867,118"/>
<area shape="rect" id="node8" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="733,142,851,169"/>
<area shape="rect" id="node9" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="707,193,877,219"/>
<area shape="rect" id="node10" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="731,243,853,270"/>
</map>
</div>

</div>
</div>
<a id="abdfd17162db7fd7ad2e4719255fa915f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abdfd17162db7fd7ad2e4719255fa915f">&sect;&nbsp;</a></span>checkDistToNewIntersections()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool checkDistToNewIntersections </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tempIntPts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_int_points.html">IntPoints</a> &amp;&#160;</td>
          <td class="paramname"><em>intPts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_triple_pt_temp_data.html">TriplePtTempData</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tempTriPts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>minDistance</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Checks distance of new intersection to other intersections on newPoly Arg 1: Array of intersections previously found on newPoly Arg 2: Current intersection being checked, intersection between newPoly and poly2 Arg 3: Temp triple points, triple points found on newPoly Arg 4: Minimum distance allowed if not a triple intersection Return: 0 if no all distances are larger than minDistance or minDistance = 0 with triple intersection point 1 Otherwise NOTE: If the distance between two intersections is 0, this function will verify the that the triple interersection exists in 'tempTriPts'. If not found, fracture will be rejected Due to the shrinkIntersection algorithm, it may be possible for a triple intersection point to exist on only one fracture. This check resolves this issue. </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00712">712</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_abdfd17162db7fd7ad2e4719255fa915f_cgraph.png" border="0" usemap="#computational_geometry_8cpp_abdfd17162db7fd7ad2e4719255fa915f_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_abdfd17162db7fd7ad2e4719255fa915f_cgraph" id="computational_geometry_8cpp_abdfd17162db7fd7ad2e4719255fa915f_cgraph">
<area shape="rect" id="node2" href="computational_geometry_8cpp.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="251,123,381,150"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#a7038a32284147d86abda1f0b54b83a4e" title="parallel" alt="" coords="474,22,539,49"/>
<area shape="rect" id="node6" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="807,174,891,201"/>
<area shape="rect" id="node7" href="computational_geometry_8cpp.html#ab5f3ce14eaf1560295c9ec71514c340c" title="pointOnLineSeg" alt="" coords="448,225,565,251"/>
<area shape="rect" id="node8" href="computational_geometry_8cpp.html#a545f45434dcbd126c6ff994b9ec2588b" title="lineSegToLineSegSep" alt="" coords="429,123,584,150"/>
<area shape="rect" id="node12" href="computational_geometry_8cpp.html#a9eb32a7555c136fb7960f9f13db70004" title="lineIntersection3D" alt="" coords="442,73,571,99"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#a48bb00fc4195377b229efe044f3bb67e" title="normalize" alt="" coords="651,22,731,49"/>
<area shape="rect" id="node5" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="806,22,893,49"/>
<area shape="rect" id="node9" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="633,123,749,150"/>
<area shape="rect" id="node10" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="798,73,901,99"/>
<area shape="rect" id="node11" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="809,123,889,150"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_abdfd17162db7fd7ad2e4719255fa915f_icgraph.png" border="0" usemap="#computational_geometry_8cpp_abdfd17162db7fd7ad2e4719255fa915f_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_abdfd17162db7fd7ad2e4719255fa915f_icgraph" id="computational_geometry_8cpp_abdfd17162db7fd7ad2e4719255fa915f_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="251,117,311,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="361,117,506,143"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="773,117,824,143"/>
<area shape="rect" id="node5" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="591,41,689,67"/>
<area shape="rect" id="node6" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="565,91,715,118"/>
<area shape="rect" id="node7" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="581,142,699,169"/>
<area shape="rect" id="node8" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="555,193,725,219"/>
<area shape="rect" id="node9" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="579,243,701,270"/>
</map>
</div>

</div>
</div>
<a id="ac1228db3b0fb85b1a5233b1fb78edd4a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac1228db3b0fb85b1a5233b1fb78edd4a">&sect;&nbsp;</a></span>checkDistToOldIntersections()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool checkDistToOldIntersections </td>
          <td>(</td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>intPtsList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_int_points.html">IntPoints</a> &amp;&#160;</td>
          <td class="paramname"><em>intPts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>poly2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>minDistance</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Checks distance of new intersection to intersections on poly2 Arg 1: Intersections arry for entire DFN Arg 2: Current intersection being checked, intersection between newPoly and poly2 Arg 3: Poly2 Arg 4: Minimum distance allowed if not a triple intersection Return: 0 if no all distances are larger than minDistance or minDistance = 0 with triple intersection point 1 Otherwise </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00680">680</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_ac1228db3b0fb85b1a5233b1fb78edd4a_cgraph.png" border="0" usemap="#computational_geometry_8cpp_ac1228db3b0fb85b1a5233b1fb78edd4a_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_ac1228db3b0fb85b1a5233b1fb78edd4a_cgraph" id="computational_geometry_8cpp_ac1228db3b0fb85b1a5233b1fb78edd4a_cgraph">
<area shape="rect" id="node2" href="computational_geometry_8cpp.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="245,123,376,150"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#a7038a32284147d86abda1f0b54b83a4e" title="parallel" alt="" coords="469,22,534,49"/>
<area shape="rect" id="node6" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="802,174,886,201"/>
<area shape="rect" id="node7" href="computational_geometry_8cpp.html#ab5f3ce14eaf1560295c9ec71514c340c" title="pointOnLineSeg" alt="" coords="443,225,560,251"/>
<area shape="rect" id="node8" href="computational_geometry_8cpp.html#a545f45434dcbd126c6ff994b9ec2588b" title="lineSegToLineSegSep" alt="" coords="424,123,579,150"/>
<area shape="rect" id="node12" href="computational_geometry_8cpp.html#a9eb32a7555c136fb7960f9f13db70004" title="lineIntersection3D" alt="" coords="437,73,566,99"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#a48bb00fc4195377b229efe044f3bb67e" title="normalize" alt="" coords="645,22,725,49"/>
<area shape="rect" id="node5" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="801,22,887,49"/>
<area shape="rect" id="node9" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="627,123,743,150"/>
<area shape="rect" id="node10" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="793,73,895,99"/>
<area shape="rect" id="node11" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="804,123,884,150"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_ac1228db3b0fb85b1a5233b1fb78edd4a_icgraph.png" border="0" usemap="#computational_geometry_8cpp_ac1228db3b0fb85b1a5233b1fb78edd4a_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_ac1228db3b0fb85b1a5233b1fb78edd4a_icgraph" id="computational_geometry_8cpp_ac1228db3b0fb85b1a5233b1fb78edd4a_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="246,117,306,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="355,117,501,143"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="768,117,819,143"/>
<area shape="rect" id="node5" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="586,41,683,67"/>
<area shape="rect" id="node6" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="560,91,709,118"/>
<area shape="rect" id="node7" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="576,142,693,169"/>
<area shape="rect" id="node8" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="550,193,719,219"/>
<area shape="rect" id="node9" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="573,243,696,270"/>
</map>
</div>

</div>
</div>
<a id="a237899188f8ca6cf74a2da890cd13868"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a237899188f8ca6cf74a2da890cd13868">&sect;&nbsp;</a></span>checkForTripleIntersections()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int checkForTripleIntersections </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_int_points.html">IntPoints</a> &amp;&#160;</td>
          <td class="paramname"><em>intPts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>intPtsList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>newPoly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>poly2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_triple_pt_temp_data.html">TriplePtTempData</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tempData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>triplePoints</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check for triple intersection features of less than h. Returns rejection code if fracture is rejected, zero if accepted</p>
<p>Rejection codes: 0 = poly accepted -10 = triple_intersectionsNotAllowed (rejected triple intersections due to triple intersections not allowed in input file) -11 = triple_closeToIntersection (newPoly's intersection landed too close to a previous intersection) -12 = triple_smallIntersectionAngle -13 = triple_closeEndPoint (triple intersection point too close to an endpoint) -14 = triple_closeToTriplePt (new triple point too close to previous triple point) </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l01412">1412</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a237899188f8ca6cf74a2da890cd13868_cgraph.png" border="0" usemap="#computational_geometry_8cpp_a237899188f8ca6cf74a2da890cd13868_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a237899188f8ca6cf74a2da890cd13868_cgraph" id="computational_geometry_8cpp_a237899188f8ca6cf74a2da890cd13868_cgraph">
<area shape="rect" id="node2" href="computational_geometry_8cpp.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="240,128,371,155"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#a48bb00fc4195377b229efe044f3bb67e" title="normalize" alt="" coords="640,255,720,281"/>
<area shape="rect" id="node5" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="795,199,882,225"/>
<area shape="rect" id="node13" href="vector_functions_8cpp.html#af04ebdcbe44a303101290e88a5971c71" title="euclideanDistance" alt="" coords="240,356,371,383"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#a7038a32284147d86abda1f0b54b83a4e" title="parallel" alt="" coords="463,153,529,180"/>
<area shape="rect" id="node6" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="797,15,881,41"/>
<area shape="rect" id="node7" href="computational_geometry_8cpp.html#ab5f3ce14eaf1560295c9ec71514c340c" title="pointOnLineSeg" alt="" coords="437,52,555,79"/>
<area shape="rect" id="node8" href="computational_geometry_8cpp.html#a545f45434dcbd126c6ff994b9ec2588b" title="lineSegToLineSegSep" alt="" coords="419,103,573,129"/>
<area shape="rect" id="node12" href="computational_geometry_8cpp.html#a9eb32a7555c136fb7960f9f13db70004" title="lineIntersection3D" alt="" coords="431,204,561,231"/>
<area shape="rect" id="node9" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="622,103,738,129"/>
<area shape="rect" id="node10" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="787,141,890,168"/>
<area shape="rect" id="node11" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="799,91,879,117"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a237899188f8ca6cf74a2da890cd13868_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a237899188f8ca6cf74a2da890cd13868_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a237899188f8ca6cf74a2da890cd13868_icgraph" id="computational_geometry_8cpp_a237899188f8ca6cf74a2da890cd13868_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="241,117,301,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="350,117,495,143"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="763,117,813,143"/>
<area shape="rect" id="node5" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="581,41,678,67"/>
<area shape="rect" id="node6" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="555,91,704,118"/>
<area shape="rect" id="node7" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="571,142,688,169"/>
<area shape="rect" id="node8" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="545,193,714,219"/>
<area shape="rect" id="node9" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="568,243,691,270"/>
</map>
</div>

</div>
</div>
<a id="ace23b489a120bc6d6407f7e08e1e009d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ace23b489a120bc6d6407f7e08e1e009d">&sect;&nbsp;</a></span>createBoundingBox()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void createBoundingBox </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>newPoly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Creates bounding box for polygon/fracture Sets bounding box in poly struct Arg 1: <a class="el" href="struct_poly.html">Poly</a> to create and set bounding box for </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00322">322</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_ace23b489a120bc6d6407f7e08e1e009d_icgraph.png" border="0" usemap="#computational_geometry_8cpp_ace23b489a120bc6d6407f7e08e1e009d_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_ace23b489a120bc6d6407f7e08e1e009d_icgraph" id="computational_geometry_8cpp_ace23b489a120bc6d6407f7e08e1e009d_icgraph">
<area shape="rect" id="node2" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="411,88,461,115"/>
<area shape="rect" id="node3" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="229,37,326,64"/>
<area shape="rect" id="node4" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="203,88,352,115"/>
<area shape="rect" id="node5" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="219,139,336,165"/>
<area shape="rect" id="node6" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="193,189,362,216"/>
</map>
</div>

</div>
</div>
<a id="acc7b1a87dc0b49ffcb9898dae4cc4e96"></a>
<h2 class="memtitle"><span class="permalink"><a href="#acc7b1a87dc0b49ffcb9898dae4cc4e96">&sect;&nbsp;</a></span>findIntersections()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="struct_int_points.html">IntPoints</a> findIntersections </td>
          <td>(</td>
          <td class="paramtype">short &amp;&#160;</td>
          <td class="paramname"><em>flag</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>poly1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>poly2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Finds intersection end points of two intersecting polygons (<a class="el" href="struct_poly.html">Poly</a> 1 and <a class="el" href="struct_poly.html">Poly</a> 2) Or, finds that polygons do not intersect (flag will = 0 ) Arg 1: OUTPUT, flag (see definitions below) Arg 2: <a class="el" href="struct_poly.html">Poly</a> 1 Arg 3: <a class="el" href="struct_poly.html">Poly</a> 2 Return: Intersection end points, Valid only if flag != 0 </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00399">399</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_acc7b1a87dc0b49ffcb9898dae4cc4e96_cgraph.png" border="0" usemap="#computational_geometry_8cpp_acc7b1a87dc0b49ffcb9898dae4cc4e96_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_acc7b1a87dc0b49ffcb9898dae4cc4e96_cgraph" id="computational_geometry_8cpp_acc7b1a87dc0b49ffcb9898dae4cc4e96_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="179,5,266,32"/>
<area shape="rect" id="node3" href="math_functions_8cpp.html#a144421162e6b2cc91b275cf0c41488da" title="sumDevAry3" alt="" coords="173,56,272,83"/>
<area shape="rect" id="node5" href="math_functions_8cpp.html#a31921fcb145e36a988b2fca62c737815" title="maxElmtIdx" alt="" coords="177,107,269,133"/>
<area shape="rect" id="node6" href="math_functions_8cpp.html#a50249713d75d2446b44572f47cc0c560" title="sortedIndex" alt="" coords="177,157,269,184"/>
<area shape="rect" id="node4" href="math_functions_8cpp.html#a98cde7148e906b892afae204d7bdc6b1" title="sumDeviation" alt="" coords="321,56,423,83"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_acc7b1a87dc0b49ffcb9898dae4cc4e96_icgraph.png" border="0" usemap="#computational_geometry_8cpp_acc7b1a87dc0b49ffcb9898dae4cc4e96_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_acc7b1a87dc0b49ffcb9898dae4cc4e96_icgraph" id="computational_geometry_8cpp_acc7b1a87dc0b49ffcb9898dae4cc4e96_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="174,117,319,143"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="587,117,637,143"/>
<area shape="rect" id="node4" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="405,41,502,67"/>
<area shape="rect" id="node5" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="379,91,528,118"/>
<area shape="rect" id="node6" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="395,142,512,169"/>
<area shape="rect" id="node7" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="369,193,538,219"/>
<area shape="rect" id="node8" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="392,243,515,270"/>
</map>
</div>

</div>
</div>
<a id="a7770747ef4153bfb4ae5d53dce0d5876"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7770747ef4153bfb4ae5d53dce0d5876">&sect;&nbsp;</a></span>FRAM()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int FRAM </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_int_points.html">IntPoints</a> &amp;&#160;</td>
          <td class="paramname"><em>intPts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">unsigned int&#160;</td>
          <td class="paramname"><em>count</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>intPtsList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>newPoly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>poly2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_stats.html">Stats</a> &amp;&#160;</td>
          <td class="paramname"><em>pstats</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_triple_pt_temp_data.html">TriplePtTempData</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tempData</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>triplePoints</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tempIntPts</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Checks new poly and new intersection against other intersecting polygons for violation of minimum feature size 'h' In some cases, the intersection may be shortened in order to accepted the fracture. Arg 1: Newest intersection found on new poly Arg 2: OUTPUT, counter of number of intersections on new poly Arg 3: Intersection endpoints list for entire DFN Arg 4: New poly, poly being checked with FRAM Arg 5: <a class="el" href="struct_poly.html">Poly</a> which new poly intersects with Arg 6: <a class="el" href="struct_stats.html">Stats</a> structure (Should only be one, singleton) Arg 7: OUTPUT, reject code if FRAM rejects fracture Arg 8: Temp triple point data. Must keep intersections and triple points as temp data untill newPoly has been accepted Arg 9: Triple points for entire DFN Arg 10: Temp intersection points. Must keep intersections and triple points as temp data untill newPoly has been accepted Return: 0 (False) if accepted, 1 (True) if rejected </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00607">607</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a7770747ef4153bfb4ae5d53dce0d5876_cgraph.png" border="0" usemap="#computational_geometry_8cpp_a7770747ef4153bfb4ae5d53dce0d5876_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a7770747ef4153bfb4ae5d53dce0d5876_cgraph" id="computational_geometry_8cpp_a7770747ef4153bfb4ae5d53dce0d5876_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="965,124,1049,151"/>
<area shape="rect" id="node3" href="computational_geometry_8cpp.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="152,200,275,227"/>
<area shape="rect" id="node17" href="computational_geometry_8cpp.html#a237899188f8ca6cf74a2da890cd13868" title="checkForTripleIntersections" alt="" coords="121,453,306,480"/>
<area shape="rect" id="node19" href="computational_geometry_8cpp.html#ac1228db3b0fb85b1a5233b1fb78edd4a" title="checkDistToOldIntersections" alt="" coords="117,301,309,328"/>
<area shape="rect" id="node20" href="computational_geometry_8cpp.html#abdfd17162db7fd7ad2e4719255fa915f" title="checkDistToNewIntersections" alt="" coords="115,251,312,277"/>
<area shape="rect" id="node4" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="790,200,906,227"/>
<area shape="rect" id="node8" href="computational_geometry_8cpp.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="384,301,515,328"/>
<area shape="rect" id="node14" href="computational_geometry_8cpp.html#a69f93a65c39c49d1b705fad32f790e98" title="shrinkIntersection" alt="" coords="601,48,727,75"/>
<area shape="rect" id="node16" href="computational_geometry_8cpp.html#a95b1277bb056c0817776be85b254c987" title="checkDistanceFromNodes" alt="" coords="360,136,539,163"/>
<area shape="rect" id="node5" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="955,239,1058,265"/>
<area shape="rect" id="node6" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="963,403,1050,429"/>
<area shape="rect" id="node7" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="967,188,1047,215"/>
<area shape="rect" id="node9" href="vector_functions_8h.html#a7038a32284147d86abda1f0b54b83a4e" title="parallel" alt="" coords="631,352,697,379"/>
<area shape="rect" id="node11" href="computational_geometry_8cpp.html#ab5f3ce14eaf1560295c9ec71514c340c" title="pointOnLineSeg" alt="" coords="605,301,723,328"/>
<area shape="rect" id="node12" href="computational_geometry_8cpp.html#a545f45434dcbd126c6ff994b9ec2588b" title="lineSegToLineSegSep" alt="" coords="587,251,741,277"/>
<area shape="rect" id="node13" href="computational_geometry_8cpp.html#a9eb32a7555c136fb7960f9f13db70004" title="lineIntersection3D" alt="" coords="599,403,729,429"/>
<area shape="rect" id="node10" href="vector_functions_8h.html#a48bb00fc4195377b229efe044f3bb67e" title="normalize" alt="" coords="808,403,888,429"/>
<area shape="rect" id="node15" href="generating_points_8cpp.html#a1765372f6dbad65b4d7cac36d830bdfe" title="lineFunction3D" alt="" coords="793,48,903,75"/>
<area shape="rect" id="node18" href="vector_functions_8cpp.html#af04ebdcbe44a303101290e88a5971c71" title="euclideanDistance" alt="" coords="384,504,515,531"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a7770747ef4153bfb4ae5d53dce0d5876_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a7770747ef4153bfb4ae5d53dce0d5876_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a7770747ef4153bfb4ae5d53dce0d5876_icgraph" id="computational_geometry_8cpp_a7770747ef4153bfb4ae5d53dce0d5876_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="115,117,261,143"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="528,117,579,143"/>
<area shape="rect" id="node4" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="346,41,443,67"/>
<area shape="rect" id="node5" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="320,91,469,118"/>
<area shape="rect" id="node6" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="336,142,453,169"/>
<area shape="rect" id="node7" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="310,193,479,219"/>
<area shape="rect" id="node8" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="333,243,456,270"/>
</map>
</div>

</div>
</div>
<a id="a38a8c322dba7d8518a4c3206cd55a5f6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a38a8c322dba7d8518a4c3206cd55a5f6">&sect;&nbsp;</a></span>intersectionChecking()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int intersectionChecking </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>newPoly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_poly.html">Poly</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>acceptedPoly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_int_points.html">IntPoints</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>intPtsList</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="struct_stats.html">Stats</a> &amp;&#160;</td>
          <td class="paramname"><em>pstats</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>triplePoints</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>This function will check for intersections with all polys whos bounding boxes intersect. It also will run FRAM on the intersections. 'newPoly' will be checked with FRAM one intersection at a time. At the first FRAM rejection, further intersection checking will be aborted and the poly will be retranslated or thrown away. This function saves intersections, and updates cluster groups when a poly is accepted. This functino returns 0 if the poly was accepted and 1 if rejected. User needs to push the newPoly into the accepted poly array if this function returns 0</p>
<p>Arg 1: Polygon being tested (newest poly to come into the DFN) Arg 2: Array of all accepted polygons Arg 3: Array of all accepted intersections Arg 4: Program statistics structure Arg 5: OUTPUT, reject code if fracture is rejected Arg 6: Array of all accepted triple intersection points Return: 0 - Fracture had no intersections or features violating the minimum feature size h (Passed all FRAM tests) 1 - Otherwise </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00870">870</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a38a8c322dba7d8518a4c3206cd55a5f6_cgraph.png" border="0" usemap="#computational_geometry_8cpp_a38a8c322dba7d8518a4c3206cd55a5f6_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a38a8c322dba7d8518a4c3206cd55a5f6_cgraph" id="computational_geometry_8cpp_a38a8c322dba7d8518a4c3206cd55a5f6_cgraph">
<area shape="rect" id="node2" href="computational_geometry_8cpp.html#a4016983189eb7ed8e227b49477018d8a" title="checkBoundingBox" alt="" coords="200,5,336,32"/>
<area shape="rect" id="node3" href="computational_geometry_8cpp.html#acc7b1a87dc0b49ffcb9898dae4cc4e96" title="findIntersections" alt="" coords="209,637,327,664"/>
<area shape="rect" id="node9" href="computational_geometry_8cpp.html#a7770747ef4153bfb4ae5d53dce0d5876" title="FRAM" alt="" coords="238,411,298,437"/>
<area shape="rect" id="node10" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="1234,157,1318,184"/>
<area shape="rect" id="node28" href="cluster_groups_8cpp.html#a379930b3782e888c9ccdf5a8106b3434" title="assignGroup" alt="" coords="219,700,317,727"/>
<area shape="rect" id="node30" href="cluster_groups_8cpp.html#aa67c48c94718510ec7bd5590f09d090c" title="updateGroups" alt="" coords="215,776,321,803"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="1233,563,1319,589"/>
<area shape="rect" id="node5" href="math_functions_8cpp.html#a144421162e6b2cc91b275cf0c41488da" title="sumDevAry3" alt="" coords="433,587,532,613"/>
<area shape="rect" id="node7" href="math_functions_8cpp.html#a31921fcb145e36a988b2fca62c737815" title="maxElmtIdx" alt="" coords="437,637,529,664"/>
<area shape="rect" id="node8" href="math_functions_8cpp.html#a50249713d75d2446b44572f47cc0c560" title="sortedIndex" alt="" coords="437,688,529,715"/>
<area shape="rect" id="node6" href="math_functions_8cpp.html#a98cde7148e906b892afae204d7bdc6b1" title="sumDeviation" alt="" coords="667,688,770,715"/>
<area shape="rect" id="node11" href="computational_geometry_8cpp.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="421,309,544,336"/>
<area shape="rect" id="node24" href="computational_geometry_8cpp.html#a237899188f8ca6cf74a2da890cd13868" title="checkForTripleIntersections" alt="" coords="390,512,575,539"/>
<area shape="rect" id="node26" href="computational_geometry_8cpp.html#ac1228db3b0fb85b1a5233b1fb78edd4a" title="checkDistToOldIntersections" alt="" coords="387,385,579,412"/>
<area shape="rect" id="node27" href="computational_geometry_8cpp.html#abdfd17162db7fd7ad2e4719255fa915f" title="checkDistToNewIntersections" alt="" coords="384,436,581,463"/>
<area shape="rect" id="node12" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="1059,309,1175,336"/>
<area shape="rect" id="node15" href="computational_geometry_8cpp.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="653,411,784,437"/>
<area shape="rect" id="node21" href="computational_geometry_8cpp.html#a69f93a65c39c49d1b705fad32f790e98" title="shrinkIntersection" alt="" coords="870,157,997,184"/>
<area shape="rect" id="node23" href="computational_geometry_8cpp.html#a95b1277bb056c0817776be85b254c987" title="checkDistanceFromNodes" alt="" coords="629,247,808,273"/>
<area shape="rect" id="node13" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="1225,284,1327,311"/>
<area shape="rect" id="node14" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="1236,335,1316,361"/>
<area shape="rect" id="node16" href="vector_functions_8h.html#a7038a32284147d86abda1f0b54b83a4e" title="parallel" alt="" coords="901,461,966,488"/>
<area shape="rect" id="node18" href="computational_geometry_8cpp.html#ab5f3ce14eaf1560295c9ec71514c340c" title="pointOnLineSeg" alt="" coords="875,360,992,387"/>
<area shape="rect" id="node19" href="computational_geometry_8cpp.html#a545f45434dcbd126c6ff994b9ec2588b" title="lineSegToLineSegSep" alt="" coords="856,411,1011,437"/>
<area shape="rect" id="node20" href="computational_geometry_8cpp.html#a9eb32a7555c136fb7960f9f13db70004" title="lineIntersection3D" alt="" coords="869,512,998,539"/>
<area shape="rect" id="node17" href="vector_functions_8h.html#a48bb00fc4195377b229efe044f3bb67e" title="normalize" alt="" coords="1077,512,1157,539"/>
<area shape="rect" id="node22" href="generating_points_8cpp.html#a1765372f6dbad65b4d7cac36d830bdfe" title="lineFunction3D" alt="" coords="1062,208,1173,235"/>
<area shape="rect" id="node25" href="vector_functions_8cpp.html#af04ebdcbe44a303101290e88a5971c71" title="euclideanDistance" alt="" coords="653,563,784,589"/>
<area shape="rect" id="node29" href="math_functions_8h.html#aaf4979ac027751a7358291353a23b387" title="OR" alt="" coords="461,789,504,816"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a38a8c322dba7d8518a4c3206cd55a5f6_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a38a8c322dba7d8518a4c3206cd55a5f6_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a38a8c322dba7d8518a4c3206cd55a5f6_icgraph" id="computational_geometry_8cpp_a38a8c322dba7d8518a4c3206cd55a5f6_icgraph">
<area shape="rect" id="node2" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="419,117,469,143"/>
<area shape="rect" id="node3" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="237,41,334,67"/>
<area shape="rect" id="node4" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="211,91,360,118"/>
<area shape="rect" id="node5" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="227,142,344,169"/>
<area shape="rect" id="node6" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="201,193,370,219"/>
<area shape="rect" id="node7" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="224,243,347,270"/>
</map>
</div>

</div>
</div>
<a id="a9eb32a7555c136fb7960f9f13db70004"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9eb32a7555c136fb7960f9f13db70004">&sect;&nbsp;</a></span>lineIntersection3D()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="struct_point.html">Point</a> lineIntersection3D </td>
          <td>(</td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>p1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>v1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>p2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>v2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Used in <a class="el" href="computational_geometry_8cpp.html#a5edbf5558b99624dfb90275aa07ba149">lineSegToLineSeg()</a> Arg 1: First end point for line 1 Arg 2: Array of 3 doubles. Vecotor from second end point on line 1 to p1 (first end point) Arg 3: First end point for line 2 Arg 4: Array of 3 doubles. Vecotor from second end point on line 2 to p2 (first end point) Return: <a class="el" href="struct_point.html">Point</a> structure of interseciton point if intersections do in fact intersect. (in <a class="el" href="computational_geometry_8cpp.html#a5edbf5558b99624dfb90275aa07ba149">lineSegToLineSeg()</a>, intersection is verified by <a class="el" href="computational_geometry_8cpp.html#ab5f3ce14eaf1560295c9ec71514c340c">pointOnLineSeg()</a>) </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l01302">1302</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a9eb32a7555c136fb7960f9f13db70004_cgraph.png" border="0" usemap="#computational_geometry_8cpp_a9eb32a7555c136fb7960f9f13db70004_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a9eb32a7555c136fb7960f9f13db70004_cgraph" id="computational_geometry_8cpp_a9eb32a7555c136fb7960f9f13db70004_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#a48bb00fc4195377b229efe044f3bb67e" title="normalize" alt="" coords="188,5,268,32"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="185,56,271,83"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a9eb32a7555c136fb7960f9f13db70004_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a9eb32a7555c136fb7960f9f13db70004_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a9eb32a7555c136fb7960f9f13db70004_icgraph" id="computational_geometry_8cpp_a9eb32a7555c136fb7960f9f13db70004_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="184,117,315,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#ac1228db3b0fb85b1a5233b1fb78edd4a" title="checkDistToOldIntersections" alt="" coords="365,41,557,67"/>
<area shape="rect" id="node12" href="computational_geometry_8h.html#a4c94ffa2818f164dbda3f1cb6f0fb9a8" title="checkDistToNewIntersections" alt="" coords="363,91,560,118"/>
<area shape="rect" id="node13" href="computational_geometry_8h.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="400,142,523,169"/>
<area shape="rect" id="node14" href="computational_geometry_8h.html#a237899188f8ca6cf74a2da890cd13868" title="checkForTripleIntersections" alt="" coords="369,193,554,219"/>
<area shape="rect" id="node4" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="609,117,669,143"/>
<area shape="rect" id="node5" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="718,117,863,143"/>
<area shape="rect" id="node6" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="1131,117,1181,143"/>
<area shape="rect" id="node7" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="949,41,1046,67"/>
<area shape="rect" id="node8" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="923,91,1072,118"/>
<area shape="rect" id="node9" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="939,142,1056,169"/>
<area shape="rect" id="node10" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="913,193,1082,219"/>
<area shape="rect" id="node11" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="936,243,1059,270"/>
</map>
</div>

</div>
</div>
<a id="a5edbf5558b99624dfb90275aa07ba149"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5edbf5558b99624dfb90275aa07ba149">&sect;&nbsp;</a></span>lineSegToLineSeg()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double lineSegToLineSeg </td>
          <td>(</td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>line1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>line2</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>pt</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Calculates the distance between two line segments. Also calculates the point of intersection if the lines overlap.</p>
<p>Arg 1: Array of 6 doubles for line 1 end points: {x1, y1, z1, x2, y2, z2} Arg 2: Array of 6 doubles for line 2 end points: {x1, y1, z1, x2, y2, z2} Arg 3: OUTPUT. <a class="el" href="struct_point.html">Point</a> structure object. If lines intersect, pt will contain the intersection point. Return: Minimum distance between line 1 and line 2 </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l01338">1338</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a5edbf5558b99624dfb90275aa07ba149_cgraph.png" border="0" usemap="#computational_geometry_8cpp_a5edbf5558b99624dfb90275aa07ba149_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a5edbf5558b99624dfb90275aa07ba149_cgraph" id="computational_geometry_8cpp_a5edbf5558b99624dfb90275aa07ba149_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#a7038a32284147d86abda1f0b54b83a4e" title="parallel" alt="" coords="229,22,294,49"/>
<area shape="rect" id="node5" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="562,174,646,201"/>
<area shape="rect" id="node6" href="computational_geometry_8cpp.html#ab5f3ce14eaf1560295c9ec71514c340c" title="pointOnLineSeg" alt="" coords="203,225,320,251"/>
<area shape="rect" id="node7" href="computational_geometry_8cpp.html#a545f45434dcbd126c6ff994b9ec2588b" title="lineSegToLineSegSep" alt="" coords="184,123,339,150"/>
<area shape="rect" id="node11" href="computational_geometry_8cpp.html#a9eb32a7555c136fb7960f9f13db70004" title="lineIntersection3D" alt="" coords="197,73,326,99"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#a48bb00fc4195377b229efe044f3bb67e" title="normalize" alt="" coords="405,22,485,49"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="561,22,647,49"/>
<area shape="rect" id="node8" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="387,123,503,150"/>
<area shape="rect" id="node9" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="553,73,655,99"/>
<area shape="rect" id="node10" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="564,123,644,150"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a5edbf5558b99624dfb90275aa07ba149_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a5edbf5558b99624dfb90275aa07ba149_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a5edbf5558b99624dfb90275aa07ba149_icgraph" id="computational_geometry_8cpp_a5edbf5558b99624dfb90275aa07ba149_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#ac1228db3b0fb85b1a5233b1fb78edd4a" title="checkDistToOldIntersections" alt="" coords="187,41,379,67"/>
<area shape="rect" id="node11" href="computational_geometry_8h.html#a4c94ffa2818f164dbda3f1cb6f0fb9a8" title="checkDistToNewIntersections" alt="" coords="184,91,381,118"/>
<area shape="rect" id="node12" href="computational_geometry_8h.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="221,142,344,169"/>
<area shape="rect" id="node13" href="computational_geometry_8h.html#a237899188f8ca6cf74a2da890cd13868" title="checkForTripleIntersections" alt="" coords="190,193,375,219"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="430,117,490,143"/>
<area shape="rect" id="node4" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="539,117,685,143"/>
<area shape="rect" id="node5" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="952,117,1003,143"/>
<area shape="rect" id="node6" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="770,41,867,67"/>
<area shape="rect" id="node7" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="744,91,893,118"/>
<area shape="rect" id="node8" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="760,142,877,169"/>
<area shape="rect" id="node9" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="734,193,903,219"/>
<area shape="rect" id="node10" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="757,243,880,270"/>
</map>
</div>

</div>
</div>
<a id="a545f45434dcbd126c6ff994b9ec2588b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a545f45434dcbd126c6ff994b9ec2588b">&sect;&nbsp;</a></span>lineSegToLineSegSep()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double lineSegToLineSegSep </td>
          <td>(</td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>line1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>line2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Calculates the minimum distance between two seperated line segments.</p>
<p>Arg 1: Array of 6 doubles for line 1 end points: {x1, y1, z1, x2, y2, z2} Arg 2: Array of 6 doubles for line 2 end points: {x1, y1, z1, x2, y2, z2} Return: Minimum distance between 'line1' and 'line2' </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l01389">1389</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a545f45434dcbd126c6ff994b9ec2588b_cgraph.png" border="0" usemap="#computational_geometry_8cpp_a545f45434dcbd126c6ff994b9ec2588b_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a545f45434dcbd126c6ff994b9ec2588b_cgraph" id="computational_geometry_8cpp_a545f45434dcbd126c6ff994b9ec2588b_cgraph">
<area shape="rect" id="node2" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="209,81,325,108"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="374,5,477,32"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="383,56,467,83"/>
<area shape="rect" id="node5" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="382,107,469,133"/>
<area shape="rect" id="node6" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="385,157,465,184"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a545f45434dcbd126c6ff994b9ec2588b_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a545f45434dcbd126c6ff994b9ec2588b_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a545f45434dcbd126c6ff994b9ec2588b_icgraph" id="computational_geometry_8cpp_a545f45434dcbd126c6ff994b9ec2588b_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="208,117,339,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#ac1228db3b0fb85b1a5233b1fb78edd4a" title="checkDistToOldIntersections" alt="" coords="389,41,581,67"/>
<area shape="rect" id="node12" href="computational_geometry_8h.html#a4c94ffa2818f164dbda3f1cb6f0fb9a8" title="checkDistToNewIntersections" alt="" coords="387,91,584,118"/>
<area shape="rect" id="node13" href="computational_geometry_8h.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="424,142,547,169"/>
<area shape="rect" id="node14" href="computational_geometry_8h.html#a237899188f8ca6cf74a2da890cd13868" title="checkForTripleIntersections" alt="" coords="393,193,578,219"/>
<area shape="rect" id="node4" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="633,117,693,143"/>
<area shape="rect" id="node5" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="742,117,887,143"/>
<area shape="rect" id="node6" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="1155,117,1205,143"/>
<area shape="rect" id="node7" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="973,41,1070,67"/>
<area shape="rect" id="node8" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="947,91,1096,118"/>
<area shape="rect" id="node9" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="963,142,1080,169"/>
<area shape="rect" id="node10" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="937,193,1106,219"/>
<area shape="rect" id="node11" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="960,243,1083,270"/>
</map>
</div>

</div>
</div>
<a id="ab5f3ce14eaf1560295c9ec71514c340c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab5f3ce14eaf1560295c9ec71514c340c">&sect;&nbsp;</a></span>pointOnLineSeg() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pointOnLineSeg </td>
          <td>(</td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>pt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>line</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Arg 1: <a class="el" href="struct_point.html">Point</a> in 3D space, array of three doubles x, y, z Arg 2: Line defined by end points, array of 6 doubles endPoint1 and endpoint 2, {x1, y1, z1, x2, y2, z2} Return: True if the point lies on the line segment False otherwise </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l01108">1108</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_ab5f3ce14eaf1560295c9ec71514c340c_icgraph.png" border="0" usemap="#computational_geometry_8cpp_ab5f3ce14eaf1560295c9ec71514c340c_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_ab5f3ce14eaf1560295c9ec71514c340c_icgraph" id="computational_geometry_8cpp_ab5f3ce14eaf1560295c9ec71514c340c_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="171,117,301,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#ac1228db3b0fb85b1a5233b1fb78edd4a" title="checkDistToOldIntersections" alt="" coords="352,41,544,67"/>
<area shape="rect" id="node12" href="computational_geometry_8h.html#a4c94ffa2818f164dbda3f1cb6f0fb9a8" title="checkDistToNewIntersections" alt="" coords="349,91,547,118"/>
<area shape="rect" id="node13" href="computational_geometry_8h.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="387,142,509,169"/>
<area shape="rect" id="node14" href="computational_geometry_8h.html#a237899188f8ca6cf74a2da890cd13868" title="checkForTripleIntersections" alt="" coords="355,193,541,219"/>
<area shape="rect" id="node4" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="595,117,655,143"/>
<area shape="rect" id="node5" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="705,117,850,143"/>
<area shape="rect" id="node6" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="1117,117,1168,143"/>
<area shape="rect" id="node7" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="935,41,1033,67"/>
<area shape="rect" id="node8" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="909,91,1059,118"/>
<area shape="rect" id="node9" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="925,142,1043,169"/>
<area shape="rect" id="node10" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="899,193,1069,219"/>
<area shape="rect" id="node11" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="923,243,1045,270"/>
</map>
</div>

</div>
</div>
<a id="a26684f20241548e01da824ff9248207f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a26684f20241548e01da824ff9248207f">&sect;&nbsp;</a></span>pointOnLineSeg() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool pointOnLineSeg </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>pt</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>line</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Arg 1: <a class="el" href="struct_point.html">Point</a> structure Arg 2: Line defined by end points, array of 6 doubles endPoint1 and endpoint 2, {x1, y1, z1, x2, y2, z2} Return: True if the point lies on the line segment False otherwise </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l01151">1151</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>

</div>
</div>
<a id="a5e3e0a14f3ad58c314ce2e6a29b03fa2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5e3e0a14f3ad58c314ce2e6a29b03fa2">&sect;&nbsp;</a></span>pointToLineSeg() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double pointToLineSeg </td>
          <td>(</td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>point</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>line</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Arg 1: <a class="el" href="struct_point.html">Point</a> in 3D space (array of three doubles) Arg 2: Line (array of 6 doubles. Enpoint 1 and end point 2: {x1, y1, z1, x2, y2, z2} Return: Returns the shortest distance between the point and the line segment </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l01054">1054</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a5e3e0a14f3ad58c314ce2e6a29b03fa2_cgraph.png" border="0" usemap="#computational_geometry_8cpp_a5e3e0a14f3ad58c314ce2e6a29b03fa2_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a5e3e0a14f3ad58c314ce2e6a29b03fa2_cgraph" id="computational_geometry_8cpp_a5e3e0a14f3ad58c314ce2e6a29b03fa2_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="171,5,274,32"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="181,56,265,83"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="179,107,266,133"/>
<area shape="rect" id="node5" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="183,157,263,184"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a5e3e0a14f3ad58c314ce2e6a29b03fa2_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a5e3e0a14f3ad58c314ce2e6a29b03fa2_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a5e3e0a14f3ad58c314ce2e6a29b03fa2_icgraph" id="computational_geometry_8cpp_a5e3e0a14f3ad58c314ce2e6a29b03fa2_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a69f93a65c39c49d1b705fad32f790e98" title="shrinkIntersection" alt="" coords="399,5,526,32"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="613,56,736,83"/>
<area shape="rect" id="node12" href="computational_geometry_8h.html#a63cb49a89f3b90a72aea7b6a24548633" title="checkDistanceFromNodes" alt="" coords="171,107,349,133"/>
<area shape="rect" id="node13" href="computational_geometry_8h.html#a545f45434dcbd126c6ff994b9ec2588b" title="lineSegToLineSegSep" alt="" coords="183,157,337,184"/>
<area shape="rect" id="node4" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="822,132,882,159"/>
<area shape="rect" id="node5" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="931,132,1077,159"/>
<area shape="rect" id="node6" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="1344,132,1395,159"/>
<area shape="rect" id="node7" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="1162,56,1259,83"/>
<area shape="rect" id="node8" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="1136,107,1285,133"/>
<area shape="rect" id="node9" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="1152,157,1269,184"/>
<area shape="rect" id="node10" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="1126,208,1295,235"/>
<area shape="rect" id="node11" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="1149,259,1272,285"/>
<area shape="rect" id="node14" href="computational_geometry_8h.html#a5edbf5558b99624dfb90275aa07ba149" title="lineSegToLineSeg" alt="" coords="397,157,528,184"/>
<area shape="rect" id="node15" href="computational_geometry_8h.html#ac1228db3b0fb85b1a5233b1fb78edd4a" title="checkDistToOldIntersections" alt="" coords="579,107,771,133"/>
<area shape="rect" id="node16" href="computational_geometry_8h.html#a4c94ffa2818f164dbda3f1cb6f0fb9a8" title="checkDistToNewIntersections" alt="" coords="576,157,773,184"/>
<area shape="rect" id="node17" href="computational_geometry_8h.html#a237899188f8ca6cf74a2da890cd13868" title="checkForTripleIntersections" alt="" coords="582,208,767,235"/>
</map>
</div>

</div>
</div>
<a id="ad263d6aadd25eaf48d5fe67b6b7e7a2a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad263d6aadd25eaf48d5fe67b6b7e7a2a">&sect;&nbsp;</a></span>pointToLineSeg() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double pointToLineSeg </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="struct_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>point</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const double *&#160;</td>
          <td class="paramname"><em>line</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Arg 1: <a class="el" href="struct_point.html">Point</a> structure. <a class="el" href="struct_point.html">Point</a> in 3D space Arg 2: Line (array of 6 doubles. Enpoint 1 and end point 2: {x1, y1, z1, x2, y2, z2} Return: Returns the shortest distance between the point and the line segment </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l01079">1079</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_ad263d6aadd25eaf48d5fe67b6b7e7a2a_cgraph.png" border="0" usemap="#computational_geometry_8cpp_ad263d6aadd25eaf48d5fe67b6b7e7a2a_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_ad263d6aadd25eaf48d5fe67b6b7e7a2a_cgraph" id="computational_geometry_8cpp_ad263d6aadd25eaf48d5fe67b6b7e7a2a_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="171,5,274,32"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="181,56,265,83"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="179,107,266,133"/>
<area shape="rect" id="node5" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="183,157,263,184"/>
</map>
</div>

</div>
</div>
<a id="a06628fbaa79aad7eec7a74c5341e77bd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a06628fbaa79aad7eec7a74c5341e77bd">&sect;&nbsp;</a></span>polyAndIntersection_RotationToXY()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="struct_int_points.html">IntPoints</a> polyAndIntersection_RotationToXY </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_int_points.html">IntPoints</a> &amp;&#160;</td>
          <td class="paramname"><em>intersection</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>newPoly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>triplePoints</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">std::vector&lt; <a class="el" href="struct_point.html">Point</a> &gt; &amp;&#160;</td>
          <td class="paramname"><em>tempTripPts</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Rotates intersections to x-y plane, including triple intersection points. While doing this, if poly is not already on x-y plane, poly will also be rotated to x-y plane. Doing these all at once keeps us from having to re-calulate rotation matricies, or cary them in memory, increasing performance Return rotated intersectoins - don't change original intersections Original, non-rotated intersections are need to rotate to the other intersecting polys Function is used to wrtie intersection.inp output files Arg 1: Intersection, belonging to newPoly(arg 2), to be rotated Arg 2: <a class="el" href="struct_poly.html">Poly</a> which is being rotated (OK if already on x-y plane) Arg 3: Vecor array of all triple intersection points in DFN Arg 4: OUTPUT, Array to place rotated triple intersection points Because triple intersection points are rotated 3 different ways, we must preserve the original points. Return: Rotated version of intersection passed in arg 1 </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00207">207</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a06628fbaa79aad7eec7a74c5341e77bd_cgraph.png" border="0" usemap="#computational_geometry_8cpp_a06628fbaa79aad7eec7a74c5341e77bd_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a06628fbaa79aad7eec7a74c5341e77bd_cgraph" id="computational_geometry_8cpp_a06628fbaa79aad7eec7a74c5341e77bd_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#a94303b1c8dd36d71e57fd0e4d5d26ae3" title="crossProduct" alt="" coords="345,5,445,32"/>
<area shape="rect" id="node3" href="computational_geometry_8cpp.html#a8aaea6ef9d977f6d7d571d45ace1ad5d" title="rotationMatrix" alt="" coords="193,56,295,83"/>
<area shape="rect" id="node4" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="351,56,438,83"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a06628fbaa79aad7eec7a74c5341e77bd_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a06628fbaa79aad7eec7a74c5341e77bd_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a06628fbaa79aad7eec7a74c5341e77bd_icgraph" id="computational_geometry_8cpp_a06628fbaa79aad7eec7a74c5341e77bd_icgraph">
<area shape="rect" id="node2" href="output_8h.html#a28522d95b2cb41e475acf0136cc6a58e" title="writeIntersectionFiles" alt="" coords="192,12,339,39"/>
<area shape="rect" id="node3" href="output_8h.html#ad84815b625587d2194321694a13f2477" title="writeOutput" alt="" coords="387,12,477,39"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="525,12,576,39"/>
</map>
</div>

</div>
</div>
<a id="a68c9aa4c8a1d635c5a662c94722bd19f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a68c9aa4c8a1d635c5a662c94722bd19f">&sect;&nbsp;</a></span>printBoundingBox()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void printBoundingBox </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>newPoly</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Bounding box print out to std out. Arg 1: <a class="el" href="struct_poly.html">Poly</a> whos bounding box to print to screen. </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00365">365</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>

</div>
</div>
<a id="a8aaea6ef9d977f6d7d571d45ace1ad5d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8aaea6ef9d977f6d7d571d45ace1ad5d">&sect;&nbsp;</a></span>rotationMatrix()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double* rotationMatrix </td>
          <td>(</td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>normalA</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>normalB</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns rotation matrix (double, 3x3) of rotation from normalA to normalB Requires normals to be normalized</p>
<p>Expects normalA and normalB to be normalized.</p>
<p>Arg1: double pointer to normalA, array of 3 doubles Arg2: double pointer to normalB, array of 3 doubles Return: pointer to 3x3 rotation matrix array NOTE: Must manually delete reurn pointer with delete[] </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00073">73</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a8aaea6ef9d977f6d7d571d45ace1ad5d_cgraph.png" border="0" usemap="#computational_geometry_8cpp_a8aaea6ef9d977f6d7d571d45ace1ad5d_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a8aaea6ef9d977f6d7d571d45ace1ad5d_cgraph" id="computational_geometry_8cpp_a8aaea6ef9d977f6d7d571d45ace1ad5d_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#a94303b1c8dd36d71e57fd0e4d5d26ae3" title="crossProduct" alt="" coords="158,5,258,32"/>
<area shape="rect" id="node3" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="165,56,251,83"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a8aaea6ef9d977f6d7d571d45ace1ad5d_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a8aaea6ef9d977f6d7d571d45ace1ad5d_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a8aaea6ef9d977f6d7d571d45ace1ad5d_icgraph" id="computational_geometry_8cpp_a8aaea6ef9d977f6d7d571d45ace1ad5d_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#a0d5da6b9c8dc5c9193e7ea07d2ba466e" title="applyRotation3D" alt="" coords="167,157,287,184"/>
<area shape="rect" id="node11" href="computational_geometry_8h.html#a06628fbaa79aad7eec7a74c5341e77bd" title="polyAndIntersection\l_RotationToXY" alt="" coords="157,255,296,297"/>
<area shape="rect" id="node3" href="insert_shape_8h.html#a4f91304a14fefba4d4f93f2f3e54dee4" title="generatePoly" alt="" coords="381,5,481,32"/>
<area shape="rect" id="node6" href="insert_shape_8h.html#a4a4d307b0a091a6159358f312371ae95" title="generatePoly_withRadius" alt="" coords="344,56,517,83"/>
<area shape="rect" id="node7" href="insert_shape_8h.html#afa95ede56e6ecb8918b61c5a2815d40d" title="reTranslatePoly" alt="" coords="373,107,489,133"/>
<area shape="rect" id="node8" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="575,157,673,184"/>
<area shape="rect" id="node9" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="565,208,683,235"/>
<area shape="rect" id="node10" href="output_8h.html#a05f2f6fb056bf06f18530445383e53d1" title="rotateFractures" alt="" coords="375,259,487,285"/>
<area shape="rect" id="node4" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="731,132,781,159"/>
<area shape="rect" id="node5" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="591,56,657,83"/>
<area shape="rect" id="node12" href="output_8h.html#a28522d95b2cb41e475acf0136cc6a58e" title="writeIntersectionFiles" alt="" coords="357,309,504,336"/>
<area shape="rect" id="node13" href="output_8h.html#ad84815b625587d2194321694a13f2477" title="writeOutput" alt="" coords="579,284,669,311"/>
</map>
</div>

</div>
</div>
<a id="a69f93a65c39c49d1b705fad32f790e98"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a69f93a65c39c49d1b705fad32f790e98">&sect;&nbsp;</a></span>shrinkIntersection()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool shrinkIntersection </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_int_points.html">IntPoints</a> &amp;&#160;</td>
          <td class="paramname"><em>intPts</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>edge</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>shrinkLimit</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>firstNodeMinDist</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>minDist</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Shrinks intersection untill the intersection is greater than 'minDist to 'edge', or intersection shrinks to length &lt; 'shrinkLimit'</p>
<p>'firstNodeMinDist' can be used to allow a shoter first discretized node distance. This allows for slight angles for intersections starting on the edges of polygons without there the intersection being shortened. If the first node is of distnace smaller than 'firstNodeMinDist', the 'minDist' will be used from this point on to shorten the intersection.</p>
<p>Arg 1: Intersection being shrunk Arg 2: Double array[6] of two end points which intersection is being tested against Arg 3: Minimum length intersection is allowed to shrink Arg 4: Fist node minimum distance Arg 5: Minimum allowed distance between intersection and edge Return: 0 If intersection successfully shortened and minDist &lt;= dist to edge &amp;&amp; shrinkLimit &lt;= intersection length 1 If intersection length shrinks to less than shrinkLimit </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00770">770</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the call graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a69f93a65c39c49d1b705fad32f790e98_cgraph.png" border="0" usemap="#computational_geometry_8cpp_a69f93a65c39c49d1b705fad32f790e98_cgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a69f93a65c39c49d1b705fad32f790e98_cgraph" id="computational_geometry_8cpp_a69f93a65c39c49d1b705fad32f790e98_cgraph">
<area shape="rect" id="node2" href="vector_functions_8h.html#a92da2058f3ed2a6db16d2fe0e445794a" title="magnitude" alt="" coords="357,5,441,32"/>
<area shape="rect" id="node3" href="generating_points_8cpp.html#a1765372f6dbad65b4d7cac36d830bdfe" title="lineFunction3D" alt="" coords="185,56,295,83"/>
<area shape="rect" id="node4" href="computational_geometry_8cpp.html#a5e3e0a14f3ad58c314ce2e6a29b03fa2" title="pointToLineSeg" alt="" coords="182,107,298,133"/>
<area shape="rect" id="node5" href="vector_functions_8h.html#ad5177d4868472616bd9fac80a8b65f78" title="sqrMagnitude" alt="" coords="347,56,450,83"/>
<area shape="rect" id="node6" href="vector_functions_8h.html#abb1d4beb5939c7a5ddd4978c15fab7bb" title="dotProduct" alt="" coords="355,107,442,133"/>
<area shape="rect" id="node7" href="vector_functions_8cpp.html#a3c2b95a1658779bf4d2b104fa9513e75" title="projection" alt="" coords="359,157,439,184"/>
</map>
</div>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a69f93a65c39c49d1b705fad32f790e98_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a69f93a65c39c49d1b705fad32f790e98_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a69f93a65c39c49d1b705fad32f790e98_icgraph" id="computational_geometry_8cpp_a69f93a65c39c49d1b705fad32f790e98_icgraph">
<area shape="rect" id="node2" href="computational_geometry_8h.html#adf34efb0050985566dfb41f51967680f" title="checkCloseEdge" alt="" coords="181,117,304,143"/>
<area shape="rect" id="node3" href="computational_geometry_8h.html#a7ada98067054623a6bcc19ab19403682" title="FRAM" alt="" coords="353,117,413,143"/>
<area shape="rect" id="node4" href="computational_geometry_8h.html#aff243280740a51cada5c0dd94021fb66" title="intersectionChecking" alt="" coords="462,117,607,143"/>
<area shape="rect" id="node5" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="875,117,925,143"/>
<area shape="rect" id="node6" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="693,41,790,67"/>
<area shape="rect" id="node7" href="insert_user_ell_by_coord_8cpp.html#a49e6b0be012ed44c6ef83ea66ed6dd86" title="insertUserEllByCoord" alt="" coords="667,91,816,118"/>
<area shape="rect" id="node8" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="683,142,800,169"/>
<area shape="rect" id="node9" href="insert_user_rects_by_coord_8cpp.html#a244f461634679dc91d08da3e183f9b8c" title="insertUserRectsByCoord" alt="" coords="657,193,826,219"/>
<area shape="rect" id="node10" href="remove_fractures_8h.html#a016a4a3e0104523549279e6f6cf6c6d8" title="removeFractures" alt="" coords="680,243,803,270"/>
</map>
</div>

</div>
</div>
<a id="a3098cccf29c7a47d2eae661b0f545224"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3098cccf29c7a47d2eae661b0f545224">&sect;&nbsp;</a></span>translate()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void translate </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="struct_poly.html">Poly</a> &amp;&#160;</td>
          <td class="paramname"><em>newPoly</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double *&#160;</td>
          <td class="paramname"><em>translation</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Translates 'newPoly' to 'translation' Assumes newPoly.numberOfNodes is initialized Arg 1: Polygon to translate Arg 2: translation (new x,y,z position) double[3] array </p>

<p>Definition at line <a class="el" href="computational_geometry_8cpp_source.html#l00047">47</a> of file <a class="el" href="computational_geometry_8cpp_source.html">computationalGeometry.cpp</a>.</p>
<div class="dynheader">
Here is the caller graph for this function:</div>
<div class="dyncontent">
<div class="center"><img src="computational_geometry_8cpp_a3098cccf29c7a47d2eae661b0f545224_icgraph.png" border="0" usemap="#computational_geometry_8cpp_a3098cccf29c7a47d2eae661b0f545224_icgraph" alt=""/></div>
<map name="computational_geometry_8cpp_a3098cccf29c7a47d2eae661b0f545224_icgraph" id="computational_geometry_8cpp_a3098cccf29c7a47d2eae661b0f545224_icgraph">
<area shape="rect" id="node2" href="insert_shape_8h.html#a4f91304a14fefba4d4f93f2f3e54dee4" title="generatePoly" alt="" coords="165,5,265,32"/>
<area shape="rect" id="node5" href="insert_shape_8h.html#a4a4d307b0a091a6159358f312371ae95" title="generatePoly_withRadius" alt="" coords="128,56,301,83"/>
<area shape="rect" id="node6" href="insert_shape_8h.html#afa95ede56e6ecb8918b61c5a2815d40d" title="reTranslatePoly" alt="" coords="157,107,273,133"/>
<area shape="rect" id="node7" href="insert_user_ell_8cpp.html#a9841b356b0460e297748d6648c301558" title="insertUserEll" alt="" coords="359,157,457,184"/>
<area shape="rect" id="node8" href="insert_user_rects_8cpp.html#af69365c2e0148366aabe6751ffc54a79" title="insertUserRects" alt="" coords="349,208,467,235"/>
<area shape="rect" id="node3" href="_d_f_nmain_8cpp.html#a3c04138a5bfe5d72780bb7e82a18e627" title="main" alt="" coords="515,107,565,133"/>
<area shape="rect" id="node4" href="fracture_estimating_8h.html#a7cf21b594fd24b2879af467e23bdac0a" title="dryRun" alt="" coords="375,56,441,83"/>
</map>
</div>

</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="computational_geometry_8cpp.html">computationalGeometry.cpp</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.12 </li>
  </ul>
</div>
</body>
</html>
