\hypertarget{MeshNavigationT_8hh}{}\section{Open\+Flipper/libs\+\_\+required/\+Mesh\+Tools/\+Mesh\+NavigationT.hh File Reference}
\label{MeshNavigationT_8hh}\index{Open\+Flipper/libs\+\_\+required/\+Mesh\+Tools/\+Mesh\+Navigation\+T.\+hh@{Open\+Flipper/libs\+\_\+required/\+Mesh\+Tools/\+Mesh\+Navigation\+T.\+hh}}


Functions for getting information about a mesh.  


{\ttfamily \#include $<$vector$>$}\newline
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
{\footnotesize template$<$typename MeshT $>$ }\\Mesh\+T\+::\+Halfedge\+Handle \hyperlink{MeshNavigationT_8hh_a66a5c17919f1d5addfa2c9dda357d043}{Mesh\+Navigation\+::opposite\+\_\+halfedge} (MeshT \&\+\_\+mesh, typename Mesh\+T\+::\+Halfedge\+Handle \+\_\+he)
\item 
{\footnotesize template$<$typename MeshT $>$ }\\Mesh\+T\+::\+Vertex\+Handle \hyperlink{MeshNavigationT_8hh_a9effd717675144b141fe0bc68856399e}{Mesh\+Navigation\+::find\+Closest\+Boundary} (MeshT $\ast$\+\_\+mesh, typename Mesh\+T\+::\+Vertex\+Handle \+\_\+vh)
\begin{DoxyCompactList}\small\item\em Find the closest boundary vertex to another vertex. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Functions for getting information about a mesh. 

Functions for Navigation on a Mesh.

\subsection{Function Documentation}
\mbox{\Hypertarget{MeshNavigationT_8hh_file_a9effd717675144b141fe0bc68856399e}\label{MeshNavigationT_8hh_file_a9effd717675144b141fe0bc68856399e}} 
\index{Mesh\+Navigation\+T.\+hh@{Mesh\+Navigation\+T.\+hh}!find\+Closest\+Boundary@{find\+Closest\+Boundary}}
\index{find\+Closest\+Boundary@{find\+Closest\+Boundary}!Mesh\+Navigation\+T.\+hh@{Mesh\+Navigation\+T.\+hh}}
\subsubsection{\texorpdfstring{find\+Closest\+Boundary()}{findClosestBoundary()}}
{\footnotesize\ttfamily template$<$typename MeshT $>$ \\
Mesh\+T\+::\+Vertex\+Handle Mesh\+Navigation\+::find\+Closest\+Boundary (\begin{DoxyParamCaption}\item[{MeshT $\ast$}]{\+\_\+mesh,  }\item[{typename Mesh\+T\+::\+Vertex\+Handle}]{\+\_\+vh }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Find the closest boundary vertex to another vertex. 

This function will start at a single vertex and walk across the edges of the mesh to find a vertex on the boundary. The vertex at the boundary with the minimal number of edges to be traversed to reach the starting vertex is returned. If no vertex is found (i.\+e. no boundary), an invalid Vertex\+Handle is returned.


\begin{DoxyParams}{Parameters}
{\em \+\_\+mesh} & Mesh to work on \\
\hline
{\em \+\_\+vh} & Start vertex handle \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Closest vertex at the boundary 
\end{DoxyReturn}


Definition at line 83 of file Mesh\+Navigation\+T\+\_\+impl.\+hh.

\mbox{\Hypertarget{MeshNavigationT_8hh_file_a66a5c17919f1d5addfa2c9dda357d043}\label{MeshNavigationT_8hh_file_a66a5c17919f1d5addfa2c9dda357d043}} 
\index{Mesh\+Navigation\+T.\+hh@{Mesh\+Navigation\+T.\+hh}!opposite\+\_\+halfedge@{opposite\+\_\+halfedge}}
\index{opposite\+\_\+halfedge@{opposite\+\_\+halfedge}!Mesh\+Navigation\+T.\+hh@{Mesh\+Navigation\+T.\+hh}}
\subsubsection{\texorpdfstring{opposite\+\_\+halfedge()}{opposite\_halfedge()}}
{\footnotesize\ttfamily template$<$typename MeshT $>$ \\
Mesh\+T\+::\+Halfedge\+Handle Mesh\+Navigation\+::opposite\+\_\+halfedge (\begin{DoxyParamCaption}\item[{MeshT \&}]{\+\_\+mesh,  }\item[{typename Mesh\+T\+::\+Halfedge\+Handle}]{\+\_\+he }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

For Valence 6 Vertices Only!! iterates 3 Halfedges around from Vertex of \+\_\+he. Returns the he on the other side 
\begin{DoxyParams}{Parameters}
{\em \+\_\+mesh} & Mesh to work on \\
\hline
{\em \+\_\+he} & Outgoing halfedge of Vertex to iterate around \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
Halfedge on the opposite side 
\end{DoxyReturn}


Definition at line 72 of file Mesh\+Navigation\+T\+\_\+impl.\+hh.

