<a href="v__base_8cc.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="comment">// Voro++, a 3D cell-based Voronoi library</span></div>
<div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * \brief Function implementations for the base Voronoi container class. */</span></div>
<div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment">/** This function is called during container construction. The routine scans</span></div>
<div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * all of the worklists in the wl[] array. For a given worklist of blocks</span></div>
<div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * labeled \f$w_1\f$ to \f$w_n\f$, it computes a sequence \f$r_0\f$ to</span></div>
<div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * \f$r_n\f$ so that $r_i$ is the minimum distance to all the blocks</span></div>
<div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * \f$w_{j}\f$ where \f$j>i\f$ and all blocks outside the worklist. The values</span></div>
<div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * of \f$r_n\f$ is calculated first, as the minimum distance to any block in</span></div>
<div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * the shell surrounding the worklist. The \f$r_i\f$ are then computed in</span></div>
<div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * reverse order by considering the distance to \f$w_{i+1}\f$. */</span></div>
<div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment">/** Computes the minimum distance from a subregion to a given block. If this distance</span></div>
<div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"> * is smaller than the value of minr, then it passes</span></div>
<div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"> * \param[in,out] minr a pointer to the current minimum distance. If the distance</span></div>
<div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"> * computed in this function is smaller, then this distance is</span></div>
<div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"> * set to the new one.</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"> * \param[out] (xlo,ylo,zlo) the lower coordinates of the subregion being</span></div>
<div class="line"><a name="l00080"></a><span class="lineno"> 80</span> <span class="comment"> * \param[in] (ti,tj,tk) the coordinates of the block. */</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment">/** Checks to see whether "%n" appears in a format sequence to determine</span></div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> * whether neighbor information is required or not.</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"> * \param[in] format the format string to check.</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment"> * \return True if a "%n" is found, false otherwise. */</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  <span class="comment">// Check to see if "%n" appears in the format sequence</span></div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span> <span class="preprocessor">#include "<a class="code" href="v__base__wl_8cc.html" title="The table of block worklists that are used during the cell computation, which is part of the voro_bas...">v_base_wl.cc</a>"</span></div>