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


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

Inheritance diagram for Open\+Mesh\+:\+:Subdivider\+:\+:Uniform\+:\+:Sqrt3T$<$ Mesh\+Type, Real\+Type $>$\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{a09240}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a09244}{compute\+\_\+weight}
\end{DoxyCompactItemize}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a09240_abab76d80f2522d1bdbc5f4ff11d3c95c}\label{a09240_abab76d80f2522d1bdbc5f4ff11d3c95c}} 
typedef Real\+Type {\bfseries real\+\_\+t}
\item 
\mbox{\Hypertarget{a09240_ae085211ce0a2e82eb81851f45a1efbf6}\label{a09240_ae085211ce0a2e82eb81851f45a1efbf6}} 
typedef Mesh\+Type {\bfseries mesh\+\_\+t}
\item 
\mbox{\Hypertarget{a09240_a6117dbf761d8a921f3c936ac0ec277c3}\label{a09240_a6117dbf761d8a921f3c936ac0ec277c3}} 
typedef \hyperlink{a09248}{SubdividerT}$<$ mesh\+\_\+t, real\+\_\+t $>$ {\bfseries parent\+\_\+t}
\item 
\mbox{\Hypertarget{a09240_a1ce43ef49e5b32053e6fd7b06e015159}\label{a09240_a1ce43ef49e5b32053e6fd7b06e015159}} 
typedef std\+::pair$<$ real\+\_\+t, real\+\_\+t $>$ {\bfseries weight\+\_\+t}
\item 
\mbox{\Hypertarget{a09240_a57cb39595d89810510b4f84ff166ef55}\label{a09240_a57cb39595d89810510b4f84ff166ef55}} 
typedef std\+::vector$<$ std\+::pair$<$ real\+\_\+t, real\+\_\+t $>$ $>$ {\bfseries weights\+\_\+t}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a09240_a9de00f401a7ad1a8e22d97a005802681}\label{a09240_a9de00f401a7ad1a8e22d97a005802681}} 
{\bfseries Sqrt3T} (Mesh\+Type \&\+\_\+m)
\item 
\mbox{\Hypertarget{a09240_a986159148514c5994136578e0afda69e}\label{a09240_a986159148514c5994136578e0afda69e}} 
const char $\ast$ \hyperlink{a09240_a986159148514c5994136578e0afda69e}{name} () const
\begin{DoxyCompactList}\small\item\em Return name of subdivision algorithm. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09240_aec838a28eb4759848342b57db5fe6593}\label{a09240_aec838a28eb4759848342b57db5fe6593}} 
void \hyperlink{a09240_aec838a28eb4759848342b57db5fe6593}{init\+\_\+weights} (size\+\_\+t \+\_\+max\+\_\+valence=50)
\begin{DoxyCompactList}\small\item\em Pre-\/compute weights. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a09240_aa74bb10de4aaa773f41b07f8c4a863b9}\label{a09240_aa74bb10de4aaa773f41b07f8c4a863b9}} 
bool \hyperlink{a09240_aa74bb10de4aaa773f41b07f8c4a863b9}{prepare} (Mesh\+Type \&\+\_\+m)
\begin{DoxyCompactList}\small\item\em Prepare mesh, e.\+g. add properties. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a09240_a7185838c78aa7a8e6d38d51e6267ec8b}\label{a09240_a7185838c78aa7a8e6d38d51e6267ec8b}} 
bool \hyperlink{a09240_a7185838c78aa7a8e6d38d51e6267ec8b}{cleanup} (Mesh\+Type \&\+\_\+m)
\begin{DoxyCompactList}\small\item\em Cleanup mesh after usage, e.\+g. remove added properties. \end{DoxyCompactList}\item 
bool \hyperlink{a09240_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 
\mbox{\Hypertarget{a09240_a239f261bbb1f0c6da9b48dfcbd1fe356}\label{a09240_a239f261bbb1f0c6da9b48dfcbd1fe356}} 
void {\bfseries compute\+\_\+new\+\_\+boundary\+\_\+points} (Mesh\+Type \&\+\_\+m, const typename Mesh\+Type\+::\+Edge\+Handle \&\+\_\+eh)
\item 
\mbox{\Hypertarget{a09240_ad830f345d0e6f4396f838cb52dceda95}\label{a09240_ad830f345d0e6f4396f838cb52dceda95}} 
void {\bfseries boundary\+\_\+split} (Mesh\+Type \&\+\_\+m, const typename Mesh\+Type\+::\+Face\+Handle \&\+\_\+fh)
\item 
\mbox{\Hypertarget{a09240_a2b76153f38132ff21a93aab3c42b61f0}\label{a09240_a2b76153f38132ff21a93aab3c42b61f0}} 
void {\bfseries boundary\+\_\+split} (Mesh\+Type \&\+\_\+m, const typename Mesh\+Type\+::\+Halfedge\+Handle \&\+\_\+heh, const typename Mesh\+Type\+::\+Vertex\+Handle \&\+\_\+vh)
\item 
\mbox{\Hypertarget{a09240_a75f508d3f8d75e600b4e848bb0a494de}\label{a09240_a75f508d3f8d75e600b4e848bb0a494de}} 
void {\bfseries boundary\+\_\+split} (Mesh\+Type \&\+\_\+m, const typename Mesh\+Type\+::\+Halfedge\+Handle \&\+\_\+heh)
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a09240_a88d4df8fd45488a25114c03dbec26738}\label{a09240_a88d4df8fd45488a25114c03dbec26738}} 
weights\+\_\+t {\bfseries weights\+\_\+}
\item 
\mbox{\Hypertarget{a09240_ae04f7ade88d83a34d4b5d098e43640e1}\label{a09240_ae04f7ade88d83a34d4b5d098e43640e1}} 
\hyperlink{a08876}{Open\+Mesh\+::\+V\+Prop\+HandleT}$<$ typename Mesh\+Type\+::\+Point $>$ {\bfseries vp\+\_\+pos\+\_\+}
\item 
\mbox{\Hypertarget{a09240_a7bd2c41696bef35f68baa51e26ef3bba}\label{a09240_a7bd2c41696bef35f68baa51e26ef3bba}} 
\hyperlink{a08884}{Open\+Mesh\+::\+E\+Prop\+HandleT}$<$ std\+::pair$<$ typename Mesh\+Type\+::\+Vertex\+Handle, typename Mesh\+Type\+::\+Vertex\+Handle $>$ $>$ {\bfseries ep\+\_\+nv\+\_\+}
\item 
\mbox{\Hypertarget{a09240_a48a99de5d0a702cc8b534bb3e592e24a}\label{a09240_a48a99de5d0a702cc8b534bb3e592e24a}} 
\hyperlink{a08892}{Open\+Mesh\+::\+M\+Prop\+HandleT}$<$ size\+\_\+t $>$ {\bfseries mp\+\_\+gen\+\_\+}
\item 
\mbox{\Hypertarget{a09240_aab6c3b4155682718afd7ab4180629666}\label{a09240_aab6c3b4155682718afd7ab4180629666}} 
const real\+\_\+t {\bfseries \+\_\+1over3}
\item 
\mbox{\Hypertarget{a09240_a38292acf333cb6a677546582d23d425e}\label{a09240_a38292acf333cb6a677546582d23d425e}} 
const real\+\_\+t {\bfseries \+\_\+1over27}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
\subsubsection*{template$<$typename Mesh\+Type, typename Real\+Type = double$>$\newline
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\+PH 2000. 

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



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a09240_aaeec0da9349a085753d752f77d95c346}\label{a09240_aaeec0da9349a085753d752f77d95c346}} 
\index{Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3T@{Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3T}!subdivide@{subdivide}}
\index{subdivide@{subdivide}!Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3T@{Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3T}}
\subsubsection{\texorpdfstring{subdivide()}{subdivide()}}
{\footnotesize\ttfamily template$<$typename Mesh\+Type, typename Real\+Type = double$>$ \\
bool \hyperlink{a09240}{Open\+Mesh\+::\+Subdivider\+::\+Uniform\+::\+Sqrt3T}$<$ 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]}}



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

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

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



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



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