\hypertarget{class_ogre_1_1_edge_data}{}\section{Ogre\+:\+:Edge\+Data Class Reference}
\label{class_ogre_1_1_edge_data}\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}


This class contains the information required to describe the edge connectivity of a given set of vertices and indexes.  




{\ttfamily \#include $<$Ogre\+Edge\+List\+Builder.\+h$>$}



Inheritance diagram for Ogre\+:\+:Edge\+Data\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=173pt]{class_ogre_1_1_edge_data__inherit__graph}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{struct_ogre_1_1_edge_data_1_1_edge}{Edge}
\begin{DoxyCompactList}\small\item\em \hyperlink{struct_ogre_1_1_edge_data_1_1_edge}{Edge} data. \end{DoxyCompactList}\item 
struct \hyperlink{struct_ogre_1_1_edge_data_1_1_edge_group}{Edge\+Group}
\begin{DoxyCompactList}\small\item\em A group of edges sharing the same vertex data. \end{DoxyCompactList}\item 
struct \hyperlink{struct_ogre_1_1_edge_data_1_1_triangle}{Triangle}
\begin{DoxyCompactList}\small\item\em Basic triangle structure. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef std\+::vector$<$ \hyperlink{struct_ogre_1_1_edge_data_1_1_edge_group}{Edge\+Group} $>$ \hyperlink{class_ogre_1_1_edge_data_aead5d3649daa5415ad9418859ba1b20d}{Edge\+Group\+List}
\item 
typedef std\+::vector$<$ \hyperlink{struct_ogre_1_1_edge_data_1_1_edge}{Edge} $>$ \hyperlink{class_ogre_1_1_edge_data_aa25f4ff55b3a62137c8d74b417a2e127}{Edge\+List}
\item 
typedef \hyperlink{namespace_ogre_a0dd9e0f32187e7f37d1e1fff9e3cb7cb}{aligned\+\_\+vector}$<$ \hyperlink{class_ogre_1_1_vector4}{Vector4} $>$ \hyperlink{class_ogre_1_1_edge_data_a64e153ea58ec4f80064986f2d9db201d}{Triangle\+Face\+Normal\+List}
\begin{DoxyCompactList}\small\item\em Array of 4D vector of triangle face normal, which is unit vector orthogonal to the triangles, plus distance from origin. \end{DoxyCompactList}\item 
typedef std\+::vector$<$ char $>$ \hyperlink{class_ogre_1_1_edge_data_a40386af98df21e634c60b85d4434684b}{Triangle\+Light\+Facing\+List}
\begin{DoxyCompactList}\small\item\em Working vector used when calculating the silhouette. \end{DoxyCompactList}\item 
typedef std\+::vector$<$ \hyperlink{struct_ogre_1_1_edge_data_1_1_triangle}{Triangle} $>$ \hyperlink{class_ogre_1_1_edge_data_afaf35a82abd84227e184cf35be1255b6}{Triangle\+List}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_edge_data_aca13bc3f48d35cacaac6fb72834ab649}{Edge\+Data} ()
\item 
\hyperlink{class_ogre_1_1_edge_data}{Edge\+Data} $\ast$ \hyperlink{class_ogre_1_1_edge_data_a98e91393c7d803ddc96ba3c6b36625ef}{clone} () \hyperlink{_ogre_platform_8h_a11162eebee0099930c48076229cc6f04}{O\+G\+R\+E\+\_\+\+N\+O\+D\+I\+S\+C\+A\+RD}
\item 
void \hyperlink{class_ogre_1_1_edge_data_a325ca9f8c825077c2ce6e67d11fd0558}{log} (\hyperlink{class_ogre_1_1_log}{Log} $\ast$log)
\begin{DoxyCompactList}\small\item\em Debugging method. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_edge_data_a06f4e92565a4b5334aafc92dd923bd12}{update\+Face\+Normals} (size\+\_\+t vertex\+Set, const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&position\+Buffer)
\begin{DoxyCompactList}\small\item\em Updates the face normals for this edge list based on (changed) position information, useful for animated objects. \end{DoxyCompactList}\item 
void \hyperlink{class_ogre_1_1_edge_data_abc392e96ecd65467b7e17e56f5b6751d}{update\+Triangle\+Light\+Facing} (const \hyperlink{class_ogre_1_1_vector4}{Vector4} \&light\+Pos)
\begin{DoxyCompactList}\small\item\em Calculate the light facing state of the triangles in this edge list. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_ogre_1_1_edge_data_aead5d3649daa5415ad9418859ba1b20d}{Edge\+Group\+List} \hyperlink{class_ogre_1_1_edge_data_a87c571c8ebe68b3ca039a003ffbe07ad}{edge\+Groups}
\begin{DoxyCompactList}\small\item\em All edge groups of this edge list. \end{DoxyCompactList}\item 
bool \hyperlink{class_ogre_1_1_edge_data_a85e8278c626ea184a00081f199d14959}{is\+Closed}
\begin{DoxyCompactList}\small\item\em Flag indicate the mesh is manifold. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_edge_data_a64e153ea58ec4f80064986f2d9db201d}{Triangle\+Face\+Normal\+List} \hyperlink{class_ogre_1_1_edge_data_ad171b0cbf84c2266e90ccb093485ea9b}{triangle\+Face\+Normals}
\begin{DoxyCompactList}\small\item\em All triangle face normals. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_edge_data_a40386af98df21e634c60b85d4434684b}{Triangle\+Light\+Facing\+List} \hyperlink{class_ogre_1_1_edge_data_a846bb6792590b4a3dc9c9f03845feef3}{triangle\+Light\+Facings}
\begin{DoxyCompactList}\small\item\em \hyperlink{struct_ogre_1_1_edge_data_1_1_triangle}{Triangle} light facing states. \end{DoxyCompactList}\item 
\hyperlink{class_ogre_1_1_edge_data_afaf35a82abd84227e184cf35be1255b6}{Triangle\+List} \hyperlink{class_ogre_1_1_edge_data_adcd3d9c03ce2bf3a8634b12fe78a9677}{triangles}
\begin{DoxyCompactList}\small\item\em Main triangles array, stores all triangles of this edge list. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
This class contains the information required to describe the edge connectivity of a given set of vertices and indexes. 

\begin{DoxyRemark}{Remarks}
This information is built using the \hyperlink{class_ogre_1_1_edge_list_builder}{Edge\+List\+Builder} class. Note that for a given mesh, which can be made up of multiple submeshes, there are separate edge lists for when 
\end{DoxyRemark}


\subsection{Member Typedef Documentation}
\mbox{\Hypertarget{class_ogre_1_1_edge_data_a64e153ea58ec4f80064986f2d9db201d}\label{class_ogre_1_1_edge_data_a64e153ea58ec4f80064986f2d9db201d}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!Triangle\+Face\+Normal\+List@{Triangle\+Face\+Normal\+List}}
\index{Triangle\+Face\+Normal\+List@{Triangle\+Face\+Normal\+List}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{Triangle\+Face\+Normal\+List}{TriangleFaceNormalList}}
{\footnotesize\ttfamily typedef \hyperlink{namespace_ogre_a0dd9e0f32187e7f37d1e1fff9e3cb7cb}{aligned\+\_\+vector}$<$\hyperlink{class_ogre_1_1_vector4}{Vector4}$>$ \hyperlink{class_ogre_1_1_edge_data_a64e153ea58ec4f80064986f2d9db201d}{Ogre\+::\+Edge\+Data\+::\+Triangle\+Face\+Normal\+List}}



Array of 4D vector of triangle face normal, which is unit vector orthogonal to the triangles, plus distance from origin. 

Use aligned policy here because we are intended to use in S\+I\+MD optimised routines. \mbox{\Hypertarget{class_ogre_1_1_edge_data_a40386af98df21e634c60b85d4434684b}\label{class_ogre_1_1_edge_data_a40386af98df21e634c60b85d4434684b}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!Triangle\+Light\+Facing\+List@{Triangle\+Light\+Facing\+List}}
\index{Triangle\+Light\+Facing\+List@{Triangle\+Light\+Facing\+List}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{Triangle\+Light\+Facing\+List}{TriangleLightFacingList}}
{\footnotesize\ttfamily typedef std\+::vector$<$char$>$ \hyperlink{class_ogre_1_1_edge_data_a40386af98df21e634c60b85d4434684b}{Ogre\+::\+Edge\+Data\+::\+Triangle\+Light\+Facing\+List}}



Working vector used when calculating the silhouette. 

Use std\+::vector$<$char$>$ instead of std\+::vector$<$bool$>$ which might implemented similar bit-\/fields causing loss performance. \mbox{\Hypertarget{class_ogre_1_1_edge_data_afaf35a82abd84227e184cf35be1255b6}\label{class_ogre_1_1_edge_data_afaf35a82abd84227e184cf35be1255b6}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!Triangle\+List@{Triangle\+List}}
\index{Triangle\+List@{Triangle\+List}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{Triangle\+List}{TriangleList}}
{\footnotesize\ttfamily typedef std\+::vector$<$\hyperlink{struct_ogre_1_1_edge_data_1_1_triangle}{Triangle}$>$ \hyperlink{class_ogre_1_1_edge_data_afaf35a82abd84227e184cf35be1255b6}{Ogre\+::\+Edge\+Data\+::\+Triangle\+List}}

\mbox{\Hypertarget{class_ogre_1_1_edge_data_aa25f4ff55b3a62137c8d74b417a2e127}\label{class_ogre_1_1_edge_data_aa25f4ff55b3a62137c8d74b417a2e127}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!Edge\+List@{Edge\+List}}
\index{Edge\+List@{Edge\+List}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{Edge\+List}{EdgeList}}
{\footnotesize\ttfamily typedef std\+::vector$<$\hyperlink{struct_ogre_1_1_edge_data_1_1_edge}{Edge}$>$ \hyperlink{class_ogre_1_1_edge_data_aa25f4ff55b3a62137c8d74b417a2e127}{Ogre\+::\+Edge\+Data\+::\+Edge\+List}}

\mbox{\Hypertarget{class_ogre_1_1_edge_data_aead5d3649daa5415ad9418859ba1b20d}\label{class_ogre_1_1_edge_data_aead5d3649daa5415ad9418859ba1b20d}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!Edge\+Group\+List@{Edge\+Group\+List}}
\index{Edge\+Group\+List@{Edge\+Group\+List}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{Edge\+Group\+List}{EdgeGroupList}}
{\footnotesize\ttfamily typedef std\+::vector$<$\hyperlink{struct_ogre_1_1_edge_data_1_1_edge_group}{Edge\+Group}$>$ \hyperlink{class_ogre_1_1_edge_data_aead5d3649daa5415ad9418859ba1b20d}{Ogre\+::\+Edge\+Data\+::\+Edge\+Group\+List}}



\subsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_edge_data_aca13bc3f48d35cacaac6fb72834ab649}\label{class_ogre_1_1_edge_data_aca13bc3f48d35cacaac6fb72834ab649}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!Edge\+Data@{Edge\+Data}}
\index{Edge\+Data@{Edge\+Data}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{Edge\+Data()}{EdgeData()}}
{\footnotesize\ttfamily Ogre\+::\+Edge\+Data\+::\+Edge\+Data (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



\subsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_edge_data_abc392e96ecd65467b7e17e56f5b6751d}\label{class_ogre_1_1_edge_data_abc392e96ecd65467b7e17e56f5b6751d}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!update\+Triangle\+Light\+Facing@{update\+Triangle\+Light\+Facing}}
\index{update\+Triangle\+Light\+Facing@{update\+Triangle\+Light\+Facing}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{update\+Triangle\+Light\+Facing()}{updateTriangleLightFacing()}}
{\footnotesize\ttfamily void Ogre\+::\+Edge\+Data\+::update\+Triangle\+Light\+Facing (\begin{DoxyParamCaption}\item[{const \hyperlink{class_ogre_1_1_vector4}{Vector4} \&}]{light\+Pos }\end{DoxyParamCaption})}



Calculate the light facing state of the triangles in this edge list. 

\begin{DoxyRemark}{Remarks}
This is normally the first stage of calculating a silhouette, i.\+e. establishing which tris are facing the light and which are facing away. This state is stored in the \textquotesingle{}triangle\+Light\+Facings\textquotesingle{}. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em light\+Pos} & 4D position of the light in object space, note that for directional lights (which have no position), the w component is 0 and the x/y/z position are the direction. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_edge_data_a06f4e92565a4b5334aafc92dd923bd12}\label{class_ogre_1_1_edge_data_a06f4e92565a4b5334aafc92dd923bd12}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!update\+Face\+Normals@{update\+Face\+Normals}}
\index{update\+Face\+Normals@{update\+Face\+Normals}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{update\+Face\+Normals()}{updateFaceNormals()}}
{\footnotesize\ttfamily void Ogre\+::\+Edge\+Data\+::update\+Face\+Normals (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{vertex\+Set,  }\item[{const \hyperlink{namespace_ogre_a05ef9b65d4ed446b994636e371bf5aab}{Hardware\+Vertex\+Buffer\+Shared\+Ptr} \&}]{position\+Buffer }\end{DoxyParamCaption})}



Updates the face normals for this edge list based on (changed) position information, useful for animated objects. 


\begin{DoxyParams}{Parameters}
{\em vertex\+Set} & The vertex set we are updating \\
\hline
{\em position\+Buffer} & The updated position buffer, must contain O\+N\+LY xyz \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_edge_data_a98e91393c7d803ddc96ba3c6b36625ef}\label{class_ogre_1_1_edge_data_a98e91393c7d803ddc96ba3c6b36625ef}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!clone@{clone}}
\index{clone@{clone}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{clone()}{clone()}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_edge_data}{Edge\+Data}$\ast$ Ogre\+::\+Edge\+Data\+::clone (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_ogre_1_1_edge_data_a325ca9f8c825077c2ce6e67d11fd0558}\label{class_ogre_1_1_edge_data_a325ca9f8c825077c2ce6e67d11fd0558}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!log@{log}}
\index{log@{log}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{log()}{log()}}
{\footnotesize\ttfamily void Ogre\+::\+Edge\+Data\+::log (\begin{DoxyParamCaption}\item[{\hyperlink{class_ogre_1_1_log}{Log} $\ast$}]{log }\end{DoxyParamCaption})}



Debugging method. 



\subsection{Member Data Documentation}
\mbox{\Hypertarget{class_ogre_1_1_edge_data_adcd3d9c03ce2bf3a8634b12fe78a9677}\label{class_ogre_1_1_edge_data_adcd3d9c03ce2bf3a8634b12fe78a9677}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!triangles@{triangles}}
\index{triangles@{triangles}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{triangles}{triangles}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_edge_data_afaf35a82abd84227e184cf35be1255b6}{Triangle\+List} Ogre\+::\+Edge\+Data\+::triangles}



Main triangles array, stores all triangles of this edge list. 

Note that triangles are grouping against edge group. \mbox{\Hypertarget{class_ogre_1_1_edge_data_ad171b0cbf84c2266e90ccb093485ea9b}\label{class_ogre_1_1_edge_data_ad171b0cbf84c2266e90ccb093485ea9b}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!triangle\+Face\+Normals@{triangle\+Face\+Normals}}
\index{triangle\+Face\+Normals@{triangle\+Face\+Normals}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{triangle\+Face\+Normals}{triangleFaceNormals}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_edge_data_a64e153ea58ec4f80064986f2d9db201d}{Triangle\+Face\+Normal\+List} Ogre\+::\+Edge\+Data\+::triangle\+Face\+Normals}



All triangle face normals. 

It should be 1\+:1 with triangles. \mbox{\Hypertarget{class_ogre_1_1_edge_data_a846bb6792590b4a3dc9c9f03845feef3}\label{class_ogre_1_1_edge_data_a846bb6792590b4a3dc9c9f03845feef3}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!triangle\+Light\+Facings@{triangle\+Light\+Facings}}
\index{triangle\+Light\+Facings@{triangle\+Light\+Facings}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{triangle\+Light\+Facings}{triangleLightFacings}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_edge_data_a40386af98df21e634c60b85d4434684b}{Triangle\+Light\+Facing\+List} Ogre\+::\+Edge\+Data\+::triangle\+Light\+Facings}



\hyperlink{struct_ogre_1_1_edge_data_1_1_triangle}{Triangle} light facing states. 

It should be 1\+:1 with triangles. \mbox{\Hypertarget{class_ogre_1_1_edge_data_a87c571c8ebe68b3ca039a003ffbe07ad}\label{class_ogre_1_1_edge_data_a87c571c8ebe68b3ca039a003ffbe07ad}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!edge\+Groups@{edge\+Groups}}
\index{edge\+Groups@{edge\+Groups}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{edge\+Groups}{edgeGroups}}
{\footnotesize\ttfamily \hyperlink{class_ogre_1_1_edge_data_aead5d3649daa5415ad9418859ba1b20d}{Edge\+Group\+List} Ogre\+::\+Edge\+Data\+::edge\+Groups}



All edge groups of this edge list. 

\mbox{\Hypertarget{class_ogre_1_1_edge_data_a85e8278c626ea184a00081f199d14959}\label{class_ogre_1_1_edge_data_a85e8278c626ea184a00081f199d14959}} 
\index{Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}!is\+Closed@{is\+Closed}}
\index{is\+Closed@{is\+Closed}!Ogre\+::\+Edge\+Data@{Ogre\+::\+Edge\+Data}}
\subsubsection{\texorpdfstring{is\+Closed}{isClosed}}
{\footnotesize\ttfamily bool Ogre\+::\+Edge\+Data\+::is\+Closed}



Flag indicate the mesh is manifold. 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\hyperlink{_ogre_edge_list_builder_8h}{Ogre\+Edge\+List\+Builder.\+h}\end{DoxyCompactItemize}
