\section{lib/neatogen/hedges.c File Reference}
\label{hedges_8c}\index{lib/neatogen/hedges.\-c@{lib/neatogen/hedges.\-c}}
{\ttfamily \#include \char`\"{}mem.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}hedges.\-h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}render.\-h\char`\"{}}\\*
Include dependency graph for hedges.\-c\-:\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=350pt]{hedges_8c__incl}
\end{center}
\end{figure}
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define {\bf D\-E\-L\-E\-T\-E\-D}~-\/2
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void {\bf E\-Lcleanup} ()
\item 
void {\bf E\-Linitialize} ()
\item 
{\bf Site} $\ast$ {\bf hintersect} ({\bf Halfedge} $\ast$el1, {\bf Halfedge} $\ast$el2)
\item 
{\bf int} {\bf right\-\_\-of} ({\bf Halfedge} $\ast${\bf el}, {\bf Point} $\ast$p)
\item 
{\bf Halfedge} $\ast$ {\bf H\-Ecreate} ({\bf Edge} $\ast$e, char pm)
\item 
void {\bf E\-Linsert} ({\bf Halfedge} $\ast$lb, {\bf Halfedge} $\ast$new)
\item 
{\bf Halfedge} $\ast$ {\bf E\-Lleftbnd} ({\bf Point} $\ast$p)
\item 
void {\bf E\-Ldelete} ({\bf Halfedge} $\ast$he)
\item 
{\bf Halfedge} $\ast$ {\bf E\-Lright} ({\bf Halfedge} $\ast$he)
\item 
{\bf Halfedge} $\ast$ {\bf E\-Lleft} ({\bf Halfedge} $\ast$he)
\item 
{\bf Site} $\ast$ {\bf leftreg} ({\bf Halfedge} $\ast$he)
\item 
{\bf Site} $\ast$ {\bf rightreg} ({\bf Halfedge} $\ast$he)
\end{DoxyCompactItemize}
\subsection*{Variables}
\begin{DoxyCompactItemize}
\item 
{\bf Halfedge} $\ast$ {\bf E\-Lleftend}
\item 
{\bf Halfedge} $\ast$ {\bf E\-Lrightend}
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\index{hedges.\-c@{hedges.\-c}!D\-E\-L\-E\-T\-E\-D@{D\-E\-L\-E\-T\-E\-D}}
\index{D\-E\-L\-E\-T\-E\-D@{D\-E\-L\-E\-T\-E\-D}!hedges.c@{hedges.\-c}}
\subsubsection[{D\-E\-L\-E\-T\-E\-D}]{\setlength{\rightskip}{0pt plus 5cm}\#define D\-E\-L\-E\-T\-E\-D~-\/2}\label{hedges_8c_ab792dfd97ab00abb6a5fc20191a9e952}


Definition at line 19 of file hedges.\-c.



Referenced by E\-Ldelete().



\subsection{Function Documentation}
\index{hedges.\-c@{hedges.\-c}!E\-Lcleanup@{E\-Lcleanup}}
\index{E\-Lcleanup@{E\-Lcleanup}!hedges.c@{hedges.\-c}}
\subsubsection[{E\-Lcleanup}]{\setlength{\rightskip}{0pt plus 5cm}void E\-Lcleanup (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{hedges_8c_aa5ce36a23e8a551ad6506a506ada396c}


Definition at line 28 of file hedges.\-c.



References freeinit(), and N\-U\-L\-L.

\index{hedges.\-c@{hedges.\-c}!E\-Ldelete@{E\-Ldelete}}
\index{E\-Ldelete@{E\-Ldelete}!hedges.c@{hedges.\-c}}
\subsubsection[{E\-Ldelete}]{\setlength{\rightskip}{0pt plus 5cm}void E\-Ldelete (
\begin{DoxyParamCaption}
\item[{{\bf Halfedge} $\ast$}]{he}
\end{DoxyParamCaption}
)}\label{hedges_8c_ae26b538084fd834f914bce6717b39c8d}


Definition at line 232 of file hedges.\-c.



References D\-E\-L\-E\-T\-E\-D, Halfedge\-::\-E\-Ledge, Halfedge\-::\-E\-Lleft, Halfedge\-::\-E\-Lright, and E\-Lright().



Referenced by voronoi().

\index{hedges.\-c@{hedges.\-c}!E\-Linitialize@{E\-Linitialize}}
\index{E\-Linitialize@{E\-Linitialize}!hedges.c@{hedges.\-c}}
\subsubsection[{E\-Linitialize}]{\setlength{\rightskip}{0pt plus 5cm}void E\-Linitialize (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{hedges_8c_a39d1fc3acdb256cf09b910d6592c1de5}


Definition at line 35 of file hedges.\-c.



References Halfedge\-::\-E\-Lleft, E\-Lleftend, Halfedge\-::\-E\-Lright, E\-Lrightend, freeinit(), H\-Ecreate(), N\-\_\-\-G\-N\-E\-W, N\-U\-L\-L, and sqrt\-\_\-nsites.



Referenced by voronoi().

\index{hedges.\-c@{hedges.\-c}!E\-Linsert@{E\-Linsert}}
\index{E\-Linsert@{E\-Linsert}!hedges.c@{hedges.\-c}}
\subsubsection[{E\-Linsert}]{\setlength{\rightskip}{0pt plus 5cm}void E\-Linsert (
\begin{DoxyParamCaption}
\item[{{\bf Halfedge} $\ast$}]{lb, }
\item[{{\bf Halfedge} $\ast$}]{new}
\end{DoxyParamCaption}
)}\label{hedges_8c_a5d76757228b2928afc1ae92e7e98d8dc}


Definition at line 160 of file hedges.\-c.



References E\-Lleft(), and Halfedge\-::\-E\-Lright.



Referenced by voronoi().

\index{hedges.\-c@{hedges.\-c}!E\-Lleft@{E\-Lleft}}
\index{E\-Lleft@{E\-Lleft}!hedges.c@{hedges.\-c}}
\subsubsection[{E\-Lleft}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Halfedge}$\ast$ E\-Lleft (
\begin{DoxyParamCaption}
\item[{{\bf Halfedge} $\ast$}]{he}
\end{DoxyParamCaption}
)}\label{hedges_8c_ac964b11ec796fd9febb21ba8cc8a342d}


Definition at line 245 of file hedges.\-c.



References Halfedge\-::\-E\-Lleft.



Referenced by E\-Linsert(), and voronoi().

\index{hedges.\-c@{hedges.\-c}!E\-Lleftbnd@{E\-Lleftbnd}}
\index{E\-Lleftbnd@{E\-Lleftbnd}!hedges.c@{hedges.\-c}}
\subsubsection[{E\-Lleftbnd}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Halfedge} $\ast$ E\-Lleftbnd (
\begin{DoxyParamCaption}
\item[{{\bf Point} $\ast$}]{p}
\end{DoxyParamCaption}
)}\label{hedges_8c_a7edceef6674883927b1c4df1528acc78}


Definition at line 186 of file hedges.\-c.



References deltax, Halfedge\-::\-E\-Lleft, Halfedge\-::\-E\-Lrefcnt, Halfedge\-::\-E\-Lright, N\-U\-L\-L, right\-\_\-of(), Point\-::x, and xmin.



Referenced by voronoi().

\index{hedges.\-c@{hedges.\-c}!E\-Lright@{E\-Lright}}
\index{E\-Lright@{E\-Lright}!hedges.c@{hedges.\-c}}
\subsubsection[{E\-Lright}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Halfedge}$\ast$ E\-Lright (
\begin{DoxyParamCaption}
\item[{{\bf Halfedge} $\ast$}]{he}
\end{DoxyParamCaption}
)}\label{hedges_8c_a0ff655df508b03e4f649b20804c36852}


Definition at line 240 of file hedges.\-c.



References Halfedge\-::\-E\-Lright.



Referenced by E\-Ldelete(), and voronoi().

\index{hedges.\-c@{hedges.\-c}!H\-Ecreate@{H\-Ecreate}}
\index{H\-Ecreate@{H\-Ecreate}!hedges.c@{hedges.\-c}}
\subsubsection[{H\-Ecreate}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Halfedge}$\ast$ H\-Ecreate (
\begin{DoxyParamCaption}
\item[{{\bf Edge} $\ast$}]{e, }
\item[{char}]{pm}
\end{DoxyParamCaption}
)}\label{hedges_8c_a456f621a1814a015a7746f9e3f41b6bd}


Definition at line 147 of file hedges.\-c.



References Halfedge\-::\-E\-Ledge, Halfedge\-::\-E\-Lpm, Halfedge\-::\-E\-Lrefcnt, getfree(), N\-U\-L\-L, Halfedge\-::\-P\-Qnext, and Halfedge\-::vertex.



Referenced by E\-Linitialize(), and voronoi().

\index{hedges.\-c@{hedges.\-c}!hintersect@{hintersect}}
\index{hintersect@{hintersect}!hedges.c@{hedges.\-c}}
\subsubsection[{hintersect}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Site}$\ast$ hintersect (
\begin{DoxyParamCaption}
\item[{{\bf Halfedge} $\ast$}]{el1, }
\item[{{\bf Halfedge} $\ast$}]{el2}
\end{DoxyParamCaption}
)}\label{hedges_8c_a7eeea44beaf938e52b56a85f0a01636a}


Definition at line 56 of file hedges.\-c.



References Edge\-::a, Edge\-::b, Edge\-::c, Site\-::coord, el(), Halfedge\-::\-E\-Ledge, Halfedge\-::\-E\-Lpm, getsite(), le, N\-U\-L\-L, re, Site\-::refcnt, Edge\-::reg, Point\-::x, and Point\-::y.



Referenced by voronoi().

\index{hedges.\-c@{hedges.\-c}!leftreg@{leftreg}}
\index{leftreg@{leftreg}!hedges.c@{hedges.\-c}}
\subsubsection[{leftreg}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Site}$\ast$ leftreg (
\begin{DoxyParamCaption}
\item[{{\bf Halfedge} $\ast$}]{he}
\end{DoxyParamCaption}
)}\label{hedges_8c_aa13d8e76f8a6b4ae7a2648aef3a6b999}


Definition at line 251 of file hedges.\-c.



References bottomsite, Halfedge\-::\-E\-Ledge, Halfedge\-::\-E\-Lpm, le, N\-U\-L\-L, re, and Edge\-::reg.



Referenced by voronoi().

\index{hedges.\-c@{hedges.\-c}!right\-\_\-of@{right\-\_\-of}}
\index{right\-\_\-of@{right\-\_\-of}!hedges.c@{hedges.\-c}}
\subsubsection[{right\-\_\-of}]{\setlength{\rightskip}{0pt plus 5cm}{\bf int} right\-\_\-of (
\begin{DoxyParamCaption}
\item[{{\bf Halfedge} $\ast$}]{el, }
\item[{{\bf Point} $\ast$}]{p}
\end{DoxyParamCaption}
)}\label{hedges_8c_adf7345243af4d9fcc046d70f5f121e0f}


Definition at line 100 of file hedges.\-c.



References Edge\-::a, Edge\-::b, Edge\-::c, Site\-::coord, coord(), Halfedge\-::\-E\-Ledge, Halfedge\-::\-E\-Lpm, le, re, Edge\-::reg, Point\-::x, pointf\-\_\-s\-::x, and Point\-::y.



Referenced by E\-Lleftbnd().

\index{hedges.\-c@{hedges.\-c}!rightreg@{rightreg}}
\index{rightreg@{rightreg}!hedges.c@{hedges.\-c}}
\subsubsection[{rightreg}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Site}$\ast$ rightreg (
\begin{DoxyParamCaption}
\item[{{\bf Halfedge} $\ast$}]{he}
\end{DoxyParamCaption}
)}\label{hedges_8c_aceeb3992b315d985375f2f2c0b71122f}


Definition at line 258 of file hedges.\-c.



References bottomsite, Halfedge\-::\-E\-Ledge, Halfedge\-::\-E\-Lpm, le, N\-U\-L\-L, re, and Edge\-::reg.



Referenced by voronoi().



\subsection{Variable Documentation}
\index{hedges.\-c@{hedges.\-c}!E\-Lleftend@{E\-Lleftend}}
\index{E\-Lleftend@{E\-Lleftend}!hedges.c@{hedges.\-c}}
\subsubsection[{E\-Lleftend}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Halfedge}$\ast$ E\-Lleftend}\label{hedges_8c_aa968dfa19b5282b22171aa0bc996498b}


Definition at line 21 of file hedges.\-c.



Referenced by E\-Linitialize(), and voronoi().

\index{hedges.\-c@{hedges.\-c}!E\-Lrightend@{E\-Lrightend}}
\index{E\-Lrightend@{E\-Lrightend}!hedges.c@{hedges.\-c}}
\subsubsection[{E\-Lrightend}]{\setlength{\rightskip}{0pt plus 5cm}{\bf Halfedge} $\ast$ E\-Lrightend}\label{hedges_8c_a64b0347dcb521dfc249e15bea702f7bd}


Definition at line 21 of file hedges.\-c.



Referenced by E\-Linitialize(), and voronoi().

