\hypertarget{a01228}{\section{Open\+Mesh\+:\+:Subdivider\+:\+:Uniform\+:\+:Sqrt3\+T$<$ Mesh\+Type, Real\+Type $>$ Class Template Reference}
\label{a01228}\index{Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3\+T$<$ Mesh\+Type, Real\+Type $>$@{Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3\+T$<$ Mesh\+Type, Real\+Type $>$}}
}


{\ttfamily \#include $<$libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Subdivider/\+Uniform/\+Sqrt3\+T.\+hh$>$}

Inheritance diagram for Open\+Mesh\+:\+:Subdivider\+:\+:Uniform\+:\+:Sqrt3\+T$<$ Mesh\+Type, Real\+Type $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{a01228}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a00446}{compute\+\_\+weight}
\end{DoxyCompactItemize}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01228_abab76d80f2522d1bdbc5f4ff11d3c95c}{typedef Real\+Type {\bfseries real\+\_\+t}}\label{a01228_abab76d80f2522d1bdbc5f4ff11d3c95c}

\item 
\hypertarget{a01228_ae085211ce0a2e82eb81851f45a1efbf6}{typedef Mesh\+Type {\bfseries mesh\+\_\+t}}\label{a01228_ae085211ce0a2e82eb81851f45a1efbf6}

\item 
\hypertarget{a01228_a6117dbf761d8a921f3c936ac0ec277c3}{typedef \hyperlink{a01257}{Subdivider\+T}$<$ mesh\+\_\+t, \\*
real\+\_\+t $>$ {\bfseries parent\+\_\+t}}\label{a01228_a6117dbf761d8a921f3c936ac0ec277c3}

\item 
\hypertarget{a01228_a1ce43ef49e5b32053e6fd7b06e015159}{typedef std\+::pair$<$ real\+\_\+t, real\+\_\+t $>$ {\bfseries weight\+\_\+t}}\label{a01228_a1ce43ef49e5b32053e6fd7b06e015159}

\item 
\hypertarget{a01228_a57cb39595d89810510b4f84ff166ef55}{typedef std\+::vector$<$ std\+::pair\\*
$<$ real\+\_\+t, real\+\_\+t $>$ $>$ {\bfseries weights\+\_\+t}}\label{a01228_a57cb39595d89810510b4f84ff166ef55}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01228_a9de00f401a7ad1a8e22d97a005802681}{{\bfseries Sqrt3\+T} (Mesh\+Type \&\+\_\+m)}\label{a01228_a9de00f401a7ad1a8e22d97a005802681}

\item 
\hypertarget{a01228_a66f90f4a7f98b18a1ad3cd7ec0475536}{const char $\ast$ \hyperlink{a01228_a66f90f4a7f98b18a1ad3cd7ec0475536}{name} () const }\label{a01228_a66f90f4a7f98b18a1ad3cd7ec0475536}

\begin{DoxyCompactList}\small\item\em Return name of subdivision algorithm. \end{DoxyCompactList}\item 
\hypertarget{a01228_aec838a28eb4759848342b57db5fe6593}{void \hyperlink{a01228_aec838a28eb4759848342b57db5fe6593}{init\+\_\+weights} (size\+\_\+t \+\_\+max\+\_\+valence=50)}\label{a01228_aec838a28eb4759848342b57db5fe6593}

\begin{DoxyCompactList}\small\item\em Pre-\/compute weights. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01228_aa74bb10de4aaa773f41b07f8c4a863b9}{bool \hyperlink{a01228_aa74bb10de4aaa773f41b07f8c4a863b9}{prepare} (Mesh\+Type \&\+\_\+m)}\label{a01228_aa74bb10de4aaa773f41b07f8c4a863b9}

\begin{DoxyCompactList}\small\item\em Prepare mesh, e.\+g. add properties. \end{DoxyCompactList}\item 
\hypertarget{a01228_a7185838c78aa7a8e6d38d51e6267ec8b}{bool \hyperlink{a01228_a7185838c78aa7a8e6d38d51e6267ec8b}{cleanup} (Mesh\+Type \&\+\_\+m)}\label{a01228_a7185838c78aa7a8e6d38d51e6267ec8b}

\begin{DoxyCompactList}\small\item\em Cleanup mesh after usage, e.\+g. remove added properties. \end{DoxyCompactList}\item 
bool \hyperlink{a01228_aaeec0da9349a085753d752f77d95c346}{subdivide} (Mesh\+Type \&\+\_\+m, size\+\_\+t \+\_\+n, const bool \+\_\+update\+\_\+points=true)
\begin{DoxyCompactList}\small\item\em Subdivide mesh {\ttfamily \+\_\+m} {\ttfamily \+\_\+n} times. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01228_a239f261bbb1f0c6da9b48dfcbd1fe356}{void {\bfseries compute\+\_\+new\+\_\+boundary\+\_\+points} (Mesh\+Type \&\+\_\+m, const typename Mesh\+Type\+::\+Edge\+Handle \&\+\_\+eh)}\label{a01228_a239f261bbb1f0c6da9b48dfcbd1fe356}

\item 
\hypertarget{a01228_ad830f345d0e6f4396f838cb52dceda95}{void {\bfseries boundary\+\_\+split} (Mesh\+Type \&\+\_\+m, const typename Mesh\+Type\+::\+Face\+Handle \&\+\_\+fh)}\label{a01228_ad830f345d0e6f4396f838cb52dceda95}

\item 
\hypertarget{a01228_a2b76153f38132ff21a93aab3c42b61f0}{void {\bfseries boundary\+\_\+split} (Mesh\+Type \&\+\_\+m, const typename Mesh\+Type\+::\+Halfedge\+Handle \&\+\_\+heh, const typename Mesh\+Type\+::\+Vertex\+Handle \&\+\_\+vh)}\label{a01228_a2b76153f38132ff21a93aab3c42b61f0}

\item 
\hypertarget{a01228_a75f508d3f8d75e600b4e848bb0a494de}{void {\bfseries boundary\+\_\+split} (Mesh\+Type \&\+\_\+m, const typename Mesh\+Type\+::\+Halfedge\+Handle \&\+\_\+heh)}\label{a01228_a75f508d3f8d75e600b4e848bb0a494de}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a01228_a88d4df8fd45488a25114c03dbec26738}{weights\+\_\+t {\bfseries weights\+\_\+}}\label{a01228_a88d4df8fd45488a25114c03dbec26738}

\item 
\hypertarget{a01228_ae04f7ade88d83a34d4b5d098e43640e1}{\hyperlink{a01470}{Open\+Mesh\+::\+V\+Prop\+Handle\+T}\\*
$<$ typename Mesh\+Type\+::\+Point $>$ {\bfseries vp\+\_\+pos\+\_\+}}\label{a01228_ae04f7ade88d83a34d4b5d098e43640e1}

\item 
\hypertarget{a01228_a7bd2c41696bef35f68baa51e26ef3bba}{\hyperlink{a00543}{Open\+Mesh\+::\+E\+Prop\+Handle\+T}\\*
$<$ std\+::pair$<$ typename \\*
Mesh\+Type\+::\+Vertex\+Handle, \\*
typename \\*
Mesh\+Type\+::\+Vertex\+Handle $>$ $>$ {\bfseries ep\+\_\+nv\+\_\+}}\label{a01228_a7bd2c41696bef35f68baa51e26ef3bba}

\item 
\hypertarget{a01228_a48a99de5d0a702cc8b534bb3e592e24a}{\hyperlink{a00865}{Open\+Mesh\+::\+M\+Prop\+Handle\+T}$<$ size\+\_\+t $>$ {\bfseries mp\+\_\+gen\+\_\+}}\label{a01228_a48a99de5d0a702cc8b534bb3e592e24a}

\item 
\hypertarget{a01228_aab6c3b4155682718afd7ab4180629666}{const real\+\_\+t {\bfseries \+\_\+1over3}}\label{a01228_aab6c3b4155682718afd7ab4180629666}

\item 
\hypertarget{a01228_a38292acf333cb6a677546582d23d425e}{const real\+\_\+t {\bfseries \+\_\+1over27}}\label{a01228_a38292acf333cb6a677546582d23d425e}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Mesh\+Type, typename Real\+Type = float$>$class Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3\+T$<$ Mesh\+Type, Real\+Type $>$}

Uniform Sqrt3 subdivision algorithm

Implementation as described in

L. Kobbelt, \href{http://www-i8.informatik.rwth-aachen.de/publications/downloads/sqrt3.pdf}{\tt \char`\"{}\+Sqrt(3) subdivision\char`\"{}}, Proceedings of S\+I\+G\+G\+R\+A\+P\+H 2000. 

Definition at line 103 of file Sqrt3\+T.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a01228_aaeec0da9349a085753d752f77d95c346}{\index{Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3\+T@{Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3\+T}!subdivide@{subdivide}}
\index{subdivide@{subdivide}!Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3\+T@{Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3\+T}}
\subsubsection[{subdivide}]{\setlength{\rightskip}{0pt plus 5cm}template$<$typename Mesh\+Type, typename Real\+Type = float$>$ bool {\bf Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3\+T}$<$ Mesh\+Type, Real\+Type $>$\+::subdivide (
\begin{DoxyParamCaption}
\item[{Mesh\+Type \&}]{\+\_\+m, }
\item[{size\+\_\+t}]{\+\_\+n, }
\item[{const bool}]{\+\_\+update\+\_\+points = {\ttfamily true}}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [protected]}, {\ttfamily [virtual]}}}\label{a01228_aaeec0da9349a085753d752f77d95c346}


Subdivide mesh {\ttfamily \+\_\+m} {\ttfamily \+\_\+n} times. 

T\+O\+D\+O\+:Implement fixed positions 

Implements \hyperlink{a01257_aacf8b2b63d1512d3c174fbe1781ee311}{Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Subdivider\+T$<$ Mesh\+Type, Real\+Type $>$}.



Definition at line 165 of file Sqrt3\+T.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Tools/\+Subdivider/\+Uniform/\hyperlink{a02072}{Sqrt3\+T.\+hh}\end{DoxyCompactItemize}
