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


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}
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \mbox{\hyperlink{struct_ogre_1_1_edge_data_1_1_edge}{Edge}}
\begin{DoxyCompactList}\small\item\em \mbox{\hyperlink{struct_ogre_1_1_edge_data_1_1_edge}{Edge}} data. \end{DoxyCompactList}\item 
struct \mbox{\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 \mbox{\hyperlink{struct_ogre_1_1_edge_data_1_1_triangle}{Triangle}}
\begin{DoxyCompactList}\small\item\em Basic triangle structure. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef std\+::vector$<$ \mbox{\hyperlink{struct_ogre_1_1_edge_data_1_1_edge_group}{Edge\+Group}} $>$ \mbox{\hyperlink{class_ogre_1_1_edge_data_aead5d3649daa5415ad9418859ba1b20d}{Edge\+Group\+List}}
\item 
typedef std\+::vector$<$ \mbox{\hyperlink{struct_ogre_1_1_edge_data_1_1_edge}{Edge}} $>$ \mbox{\hyperlink{class_ogre_1_1_edge_data_aa25f4ff55b3a62137c8d74b417a2e127}{Edge\+List}}
\item 
typedef \mbox{\hyperlink{namespace_ogre_a0dd9e0f32187e7f37d1e1fff9e3cb7cb}{aligned\+\_\+vector}}$<$ \mbox{\hyperlink{namespace_ogre_a739a289a4d5235f5f509a1795f5ffd5b}{Vector4}} $>$ \mbox{\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 $>$ \mbox{\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$<$ \mbox{\hyperlink{struct_ogre_1_1_edge_data_1_1_triangle}{Triangle}} $>$ \mbox{\hyperlink{class_ogre_1_1_edge_data_afaf35a82abd84227e184cf35be1255b6}{Triangle\+List}}
\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_edge_data_aca13bc3f48d35cacaac6fb72834ab649}{Edge\+Data}} ()
\item 
\mbox{\hyperlink{class_ogre_1_1_edge_data}{Edge\+Data}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_edge_data_a98e91393c7d803ddc96ba3c6b36625ef}{clone}} () \mbox{\hyperlink{_ogre_platform_8h_a11162eebee0099930c48076229cc6f04}{O\+G\+R\+E\+\_\+\+N\+O\+D\+I\+S\+C\+A\+RD}}
\item 
void \mbox{\hyperlink{class_ogre_1_1_edge_data_a325ca9f8c825077c2ce6e67d11fd0558}{log}} (\mbox{\hyperlink{class_ogre_1_1_log}{Log}} $\ast$log)
\begin{DoxyCompactList}\small\item\em Debugging method. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_edge_data_a06f4e92565a4b5334aafc92dd923bd12}{update\+Face\+Normals}} (size\+\_\+t vertex\+Set, const \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_edge_data_abc392e96ecd65467b7e17e56f5b6751d}{update\+Triangle\+Light\+Facing}} (const \mbox{\hyperlink{namespace_ogre_a739a289a4d5235f5f509a1795f5ffd5b}{Vector4}} \&light\+Pos)
\begin{DoxyCompactList}\small\item\em Calculate the light facing state of the triangles in this edge list. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_edge_data_aead5d3649daa5415ad9418859ba1b20d}{Edge\+Group\+List}} \mbox{\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 \mbox{\hyperlink{class_ogre_1_1_edge_data_a85e8278c626ea184a00081f199d14959}{is\+Closed}}
\begin{DoxyCompactList}\small\item\em Flag indicate the mesh is manifold. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_edge_data_a64e153ea58ec4f80064986f2d9db201d}{Triangle\+Face\+Normal\+List}} \mbox{\hyperlink{class_ogre_1_1_edge_data_ad171b0cbf84c2266e90ccb093485ea9b}{triangle\+Face\+Normals}}
\begin{DoxyCompactList}\small\item\em All triangle face normals. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_edge_data_a40386af98df21e634c60b85d4434684b}{Triangle\+Light\+Facing\+List}} \mbox{\hyperlink{class_ogre_1_1_edge_data_a846bb6792590b4a3dc9c9f03845feef3}{triangle\+Light\+Facings}}
\begin{DoxyCompactList}\small\item\em \mbox{\hyperlink{struct_ogre_1_1_edge_data_1_1_triangle}{Triangle}} light facing states. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_edge_data_afaf35a82abd84227e184cf35be1255b6}{Triangle\+List}} \mbox{\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}


\doxysubsection{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 \mbox{\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}


\doxysubsection{Member Typedef Documentation}
\mbox{\Hypertarget{class_ogre_1_1_edge_data_a64e153ea58ec4f80064986f2d9db201d}\label{class_ogre_1_1_edge_data_a64e153ea58ec4f80064986f2d9db201d}} 
\index{Ogre::EdgeData@{Ogre::EdgeData}!TriangleFaceNormalList@{TriangleFaceNormalList}}
\index{TriangleFaceNormalList@{TriangleFaceNormalList}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{TriangleFaceNormalList}{TriangleFaceNormalList}}
{\footnotesize\ttfamily typedef \mbox{\hyperlink{namespace_ogre_a0dd9e0f32187e7f37d1e1fff9e3cb7cb}{aligned\+\_\+vector}}$<$\mbox{\hyperlink{namespace_ogre_a739a289a4d5235f5f509a1795f5ffd5b}{Vector4}}$>$ \mbox{\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::EdgeData@{Ogre::EdgeData}!TriangleLightFacingList@{TriangleLightFacingList}}
\index{TriangleLightFacingList@{TriangleLightFacingList}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{TriangleLightFacingList}{TriangleLightFacingList}}
{\footnotesize\ttfamily typedef std\+::vector$<$char$>$ \mbox{\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::EdgeData@{Ogre::EdgeData}!TriangleList@{TriangleList}}
\index{TriangleList@{TriangleList}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{TriangleList}{TriangleList}}
{\footnotesize\ttfamily typedef std\+::vector$<$\mbox{\hyperlink{struct_ogre_1_1_edge_data_1_1_triangle}{Triangle}}$>$ \mbox{\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::EdgeData@{Ogre::EdgeData}!EdgeList@{EdgeList}}
\index{EdgeList@{EdgeList}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{EdgeList}{EdgeList}}
{\footnotesize\ttfamily typedef std\+::vector$<$\mbox{\hyperlink{struct_ogre_1_1_edge_data_1_1_edge}{Edge}}$>$ \mbox{\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::EdgeData@{Ogre::EdgeData}!EdgeGroupList@{EdgeGroupList}}
\index{EdgeGroupList@{EdgeGroupList}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{EdgeGroupList}{EdgeGroupList}}
{\footnotesize\ttfamily typedef std\+::vector$<$\mbox{\hyperlink{struct_ogre_1_1_edge_data_1_1_edge_group}{Edge\+Group}}$>$ \mbox{\hyperlink{class_ogre_1_1_edge_data_aead5d3649daa5415ad9418859ba1b20d}{Ogre\+::\+Edge\+Data\+::\+Edge\+Group\+List}}}



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



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_edge_data_abc392e96ecd65467b7e17e56f5b6751d}\label{class_ogre_1_1_edge_data_abc392e96ecd65467b7e17e56f5b6751d}} 
\index{Ogre::EdgeData@{Ogre::EdgeData}!updateTriangleLightFacing@{updateTriangleLightFacing}}
\index{updateTriangleLightFacing@{updateTriangleLightFacing}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{updateTriangleLightFacing()}{updateTriangleLightFacing()}}
{\footnotesize\ttfamily void Ogre\+::\+Edge\+Data\+::update\+Triangle\+Light\+Facing (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_a739a289a4d5235f5f509a1795f5ffd5b}{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::EdgeData@{Ogre::EdgeData}!updateFaceNormals@{updateFaceNormals}}
\index{updateFaceNormals@{updateFaceNormals}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{updateFaceNormals()}{updateFaceNormals()}}
{\footnotesize\ttfamily void Ogre\+::\+Edge\+Data\+::update\+Face\+Normals (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{vertex\+Set,  }\item[{const \mbox{\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::EdgeData@{Ogre::EdgeData}!clone@{clone}}
\index{clone@{clone}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{clone()}{clone()}}
{\footnotesize\ttfamily \mbox{\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::EdgeData@{Ogre::EdgeData}!log@{log}}
\index{log@{log}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{log()}{log()}}
{\footnotesize\ttfamily void Ogre\+::\+Edge\+Data\+::log (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_log}{Log}} $\ast$}]{log }\end{DoxyParamCaption})}



Debugging method. 



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{class_ogre_1_1_edge_data_adcd3d9c03ce2bf3a8634b12fe78a9677}\label{class_ogre_1_1_edge_data_adcd3d9c03ce2bf3a8634b12fe78a9677}} 
\index{Ogre::EdgeData@{Ogre::EdgeData}!triangles@{triangles}}
\index{triangles@{triangles}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{triangles}{triangles}}
{\footnotesize\ttfamily \mbox{\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::EdgeData@{Ogre::EdgeData}!triangleFaceNormals@{triangleFaceNormals}}
\index{triangleFaceNormals@{triangleFaceNormals}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{triangleFaceNormals}{triangleFaceNormals}}
{\footnotesize\ttfamily \mbox{\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::EdgeData@{Ogre::EdgeData}!triangleLightFacings@{triangleLightFacings}}
\index{triangleLightFacings@{triangleLightFacings}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{triangleLightFacings}{triangleLightFacings}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_edge_data_a40386af98df21e634c60b85d4434684b}{Triangle\+Light\+Facing\+List}} Ogre\+::\+Edge\+Data\+::triangle\+Light\+Facings}



\mbox{\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::EdgeData@{Ogre::EdgeData}!edgeGroups@{edgeGroups}}
\index{edgeGroups@{edgeGroups}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{edgeGroups}{edgeGroups}}
{\footnotesize\ttfamily \mbox{\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::EdgeData@{Ogre::EdgeData}!isClosed@{isClosed}}
\index{isClosed@{isClosed}!Ogre::EdgeData@{Ogre::EdgeData}}
\doxysubsubsection{\texorpdfstring{isClosed}{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 
\mbox{\hyperlink{_ogre_edge_list_builder_8h}{Ogre\+Edge\+List\+Builder.\+h}}\end{DoxyCompactItemize}
