\hypertarget{class_ogre_1_1_sub_mesh}{}\doxysection{Ogre\+::Sub\+Mesh Class Reference}
\label{class_ogre_1_1_sub_mesh}\index{Ogre::SubMesh@{Ogre::SubMesh}}


Defines a part of a complete mesh.  




{\ttfamily \#include $<$Ogre\+Sub\+Mesh.\+h$>$}



Inheritance diagram for Ogre\+::Sub\+Mesh\+:
\nopagebreak
\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=170pt]{class_ogre_1_1_sub_mesh__inherit__graph}
\end{center}
\end{figure}
\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef \mbox{\hyperlink{class_ogre_1_1_const_map_iterator}{Const\+Map\+Iterator}}$<$ \mbox{\hyperlink{group___general_ga5dafc9e68bde8099ec5ad6c94e4cf19b}{Alias\+Texture\+Name\+Pair\+List}} $>$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a243e656daab531eea35d8b9fb5dc3b11}{Alias\+Texture\+Iterator}}
\item 
typedef \mbox{\hyperlink{class_ogre_1_1_map_iterator}{Map\+Iterator}}$<$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ab396ad138e9d8b48355d495215989881}{Vertex\+Bone\+Assignment\+List}} $>$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a9c23baff85d3b4f60e37f2a514be1ada}{Bone\+Assignment\+Iterator}}
\item 
typedef std\+::vector$<$ unsigned short $>$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a77002e2ac2d5f5041e4b0fe3bd228245}{Index\+Map}}
\begin{DoxyCompactList}\small\item\em Dedicated index map for translate blend index to bone index (only valid if use\+Shared\+Vertices = false). \end{DoxyCompactList}\item 
typedef std\+::vector$<$ \mbox{\hyperlink{class_ogre_1_1_index_data}{Index\+Data}} $\ast$ $>$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a75594d10e60849696ca80f4d6cf375f4}{L\+O\+D\+Face\+List}}
\item 
typedef std\+::multimap$<$ size\+\_\+t, \mbox{\hyperlink{group___animation_gaf7318ddaeea193a759de6349554ec3a4}{Vertex\+Bone\+Assignment}} $>$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ab396ad138e9d8b48355d495215989881}{Vertex\+Bone\+Assignment\+List}}
\begin{DoxyCompactList}\small\item\em Multimap of verex bone assignments (orders by vertex index) \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_sub_mesh_aa5e04097716119c5cfed229c8425fc60}{Sub\+Mesh}} ()
\item 
\mbox{\hyperlink{class_ogre_1_1_sub_mesh_ad0a51b024271c2042968e9e967dd39e8}{$\sim$\+Sub\+Mesh}} ()
\item 
void \mbox{\hyperlink{class_ogre_1_1_sub_mesh_acd127d162c4271ac6b844161e1ea777a}{\+\_\+compile\+Bone\+Assignments}} (void)
\begin{DoxyCompactList}\small\item\em Must be called once to compile bone assignments into geometry buffer. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a4770787312a616e8735c5d1a864bb1cb}{\+\_\+get\+Render\+Operation}} (\mbox{\hyperlink{class_ogre_1_1_render_operation}{Render\+Operation}} \&rend, \mbox{\hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort}} lod\+Index=0)
\begin{DoxyCompactList}\small\item\em Returns a \mbox{\hyperlink{class_ogre_1_1_render_operation}{Render\+Operation}} structure required to render this mesh. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_sub_mesh_abdd303710ef1131801f5017ef2eda1f2}{add\+Bone\+Assignment}} (const \mbox{\hyperlink{group___animation_gaf7318ddaeea193a759de6349554ec3a4}{Vertex\+Bone\+Assignment}} \&vert\+Bone\+Assign)
\begin{DoxyCompactList}\small\item\em Assigns a vertex to a bone with a given weight, for skeletal animation. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_sub_mesh_abe04d5342331ad434e47ca9b934a7622}{add\+Texture\+Alias}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&alias\+Name, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&texture\+Name)
\begin{DoxyCompactList}\small\item\em Adds the alias or replaces an existing one and associates the texture name to it. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a2c29dd4601e67d3f6d26d7d74c017995}{clear\+Bone\+Assignments}} (void)
\begin{DoxyCompactList}\small\item\em Removes all bone assignments for this mesh. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_sub_mesh}{Sub\+Mesh}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a2ec4714cce3f0c922670c038ff95a5b7}{clone}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&new\+Name, \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$parent\+Mesh=0)
\begin{DoxyCompactList}\small\item\em Makes a copy of this submesh object and gives it a new name. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_sub_mesh_af32a20ce7dd6ca470ce7e33e5dc7d7d9}{generate\+Extremes}} (size\+\_\+t count)
\begin{DoxyCompactList}\small\item\em Generate the submesh extremes (. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_sub_mesh_a243e656daab531eea35d8b9fb5dc3b11}{Alias\+Texture\+Iterator}} \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ab284e1061042026fa872f3b76b701caf}{get\+Alias\+Texture\+Iterator}} (void) const
\begin{DoxyCompactList}\small\item\em Gets an constant iterator to access all texture alias names assigned to this submesh. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_sub_mesh_a9c23baff85d3b4f60e37f2a514be1ada}{Bone\+Assignment\+Iterator}} \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ab37844a411ccea1cf06d1c95e10b71e2}{get\+Bone\+Assignment\+Iterator}} (void)
\begin{DoxyCompactList}\small\item\em Gets an iterator for access all bone assignments. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ab396ad138e9d8b48355d495215989881}{Vertex\+Bone\+Assignment\+List}} \& \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a03901f7c72762aa3794af16b88c3e196}{get\+Bone\+Assignments}} ()
\begin{DoxyCompactList}\small\item\em Gets a const reference to the list of bone assignments. \end{DoxyCompactList}\item 
const \mbox{\hyperlink{namespace_ogre_a57ef769e80226674c3971ce58b58c91d}{Material\+Ptr}} \& \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ac183f5e168bd734c6388589975af155d}{get\+Material}} () const
\item 
const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \& \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a78df2f25365fcf452af62aacd85c83a3}{get\+Material\+Name}} (void) const
\item 
size\+\_\+t \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a0aca2c1ed5b5f115e882ea2481bb1769}{get\+Texture\+Alias\+Count}} (void) const
\begin{DoxyCompactList}\small\item\em Gets the number of texture aliases assigned to the sub mesh. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_sub_mesh_af9bf141e65f964f131229501804940e5}{get\+Vertex\+Animation\+Includes\+Normals}} () const
\begin{DoxyCompactList}\small\item\em Returns whether animation on dedicated vertex data includes normals. \end{DoxyCompactList}\item 
\mbox{\hyperlink{group___animation_ga9046e6e0d12c46c57a9056987e9d158e}{Vertex\+Animation\+Type}} \mbox{\hyperlink{class_ogre_1_1_sub_mesh_add91fed2eb2a3330b2004248572642e4}{get\+Vertex\+Animation\+Type}} (void) const
\begin{DoxyCompactList}\small\item\em Get the type of any vertex animation used by dedicated geometry. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a7277f01fb328b268deffb94b351c5c1d}{has\+Texture\+Aliases}} (void) const
\begin{DoxyCompactList}\small\item\em returns true if the sub mesh has texture aliases \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_sub_mesh_acae45080848d0e53474aaf11c0ce5209}{is\+Build\+Edges\+Enabled}} (void) const
\begin{DoxyCompactList}\small\item\em Returns true(by default) if the submesh should be included in the mesh Edge\+List, otherwise returns false. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a6c7371d6d8aaa3e8117f26b3be958b44}{is\+Mat\+Initialised}} (void) const
\item 
void \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a8446f2b030ecd536933c0a39cdb3d61a}{remove\+All\+Texture\+Aliases}} (void)
\begin{DoxyCompactList}\small\item\em removes all texture aliases from the sub mesh \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a9007b549c95c6fb1402818bf55b65b16}{remove\+Texture\+Alias}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&alias\+Name)
\begin{DoxyCompactList}\small\item\em Remove a specific texture alias name from the sub mesh. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{class_ogre_1_1_sub_mesh_acc667dc8cf61d4fa25f005fd5cb9082a}{set\+Build\+Edges\+Enabled}} (bool b)
\item 
void \mbox{\hyperlink{class_ogre_1_1_sub_mesh_afc7f071088a6ab4dbc0618537deea652}{set\+Material}} (const \mbox{\hyperlink{namespace_ogre_a57ef769e80226674c3971ce58b58c91d}{Material\+Ptr}} \&mat)
\item 
void \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a8ad6c0cae3c325cd8953ab66bd97e72d}{set\+Material\+Name}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&mat\+Name, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&group\+Name=\mbox{\hyperlink{class_ogre_1_1_resource_group_manager_a2a3698b4303d782938455e649b2e22a2}{Resource\+Group\+Manager\+::\+A\+U\+T\+O\+D\+E\+T\+E\+C\+T\+\_\+\+R\+E\+S\+O\+U\+R\+C\+E\+\_\+\+G\+R\+O\+U\+P\+\_\+\+N\+A\+ME}})
\begin{DoxyCompactList}\small\item\em Sets the name of the \mbox{\hyperlink{class_ogre_1_1_material}{Material}} which this \mbox{\hyperlink{class_ogre_1_1_sub_mesh}{Sub\+Mesh}} will use. \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a2107e531c7161b312571d8977f9539e2}{update\+Material\+Using\+Texture\+Aliases}} (void)
\begin{DoxyCompactList}\small\item\em The current material used by the submesh is copied into a new material and the submesh\textquotesingle{}s texture aliases are applied if the current texture alias names match those found in the original material. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Public Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{class_ogre_1_1_sub_mesh_a77002e2ac2d5f5041e4b0fe3bd228245}{Index\+Map}} \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ae6b4c1d0724fe6a9a961b73bd646d3cf}{blend\+Index\+To\+Bone\+Index\+Map}}
\item 
std\+::vector$<$ \mbox{\hyperlink{namespace_ogre_ac94fc4008c1165dea017263fee56b273}{Vector3}} $>$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ac63766998cb839ca582947d7545214f5}{extremity\+Points}}
\begin{DoxyCompactList}\small\item\em A list of extreme points on the submesh (optional). \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_index_data}{Index\+Data}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_aad428fa6595c7fb01ef7543e5d8d6454}{index\+Data}}
\begin{DoxyCompactList}\small\item\em Face index data. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_sub_mesh_a75594d10e60849696ca80f4d6cf375f4}{L\+O\+D\+Face\+List}} \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a821d2587eb2dc9746a2b1a5c0deada32}{m\+Lod\+Face\+List}}
\item 
\mbox{\hyperlink{class_ogre_1_1_render_operation_a7a272218dae54048c87f31176c19e10d}{Render\+Operation\+::\+Operation\+Type}} \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a10ed3ef8bb24a001bb89dc9e3cd88c31}{operation\+Type}}
\begin{DoxyCompactList}\small\item\em The render operation type used to render this submesh. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ac2b9fd25eb56625716d9e8915f4e0e7d}{parent}}
\begin{DoxyCompactList}\small\item\em Reference to parent \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} (not a smart pointer so child does not keep parent alive). \end{DoxyCompactList}\item 
bool \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a931e3764e3bf1c3ef7431fc852770fb1}{use\+Shared\+Vertices}}
\begin{DoxyCompactList}\small\item\em Indicates if this submesh shares vertex data with other meshes or whether it has it\textquotesingle{}s own vertices. \end{DoxyCompactList}\item 
\mbox{\hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data}} $\ast$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a1862a3ec9a3f2ed4ade8af69b41a809d}{vertex\+Data}}
\begin{DoxyCompactList}\small\item\em Dedicated vertex data (only valid if use\+Shared\+Vertices = false). \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Friends}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{class_ogre_1_1_sub_mesh_aa41a130f156b145bffb3f4b5172c4c93}{Mesh}}
\item 
class \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a48305c54a01e0c7a3376ea0a077c467f}{Mesh\+Serializer\+Impl}}
\item 
class \mbox{\hyperlink{class_ogre_1_1_sub_mesh_aef9901d67ded13a151aa3d4fde3a7b17}{Mesh\+Serializer\+Impl\+\_\+v1\+\_\+1}}
\item 
class \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ae60e96165c5d5495195fa0d49f031372}{Mesh\+Serializer\+Impl\+\_\+v1\+\_\+2}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Defines a part of a complete mesh. 

\begin{DoxyRemark}{Remarks}
Meshes which make up the definition of a discrete 3D object are made up of potentially multiple parts. This is because different parts of the mesh may use different materials or use different vertex formats, such that a rendering state change is required between them. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
Like the \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} class, instantiations of 3D objects in the scene share the \mbox{\hyperlink{class_ogre_1_1_sub_mesh}{Sub\+Mesh}} instances, and have the option of overriding their material differences on a per-\/object basis if required. See the \mbox{\hyperlink{class_ogre_1_1_sub_entity}{Sub\+Entity}} class for more information. 
\end{DoxyParagraph}


\doxysubsection{Member Typedef Documentation}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a77002e2ac2d5f5041e4b0fe3bd228245}\label{class_ogre_1_1_sub_mesh_a77002e2ac2d5f5041e4b0fe3bd228245}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!IndexMap@{IndexMap}}
\index{IndexMap@{IndexMap}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{IndexMap}{IndexMap}}
{\footnotesize\ttfamily typedef std\+::vector$<$unsigned short$>$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a77002e2ac2d5f5041e4b0fe3bd228245}{Ogre\+::\+Sub\+Mesh\+::\+Index\+Map}}}



Dedicated index map for translate blend index to bone index (only valid if use\+Shared\+Vertices = false). 

\begin{DoxyRemark}{Remarks}
This data is completely owned by this submesh. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
We collect actually used bones of all bone assignments, and build the blend index in \textquotesingle{}packed\textquotesingle{} form, then the range of the blend index in vertex data V\+E\+S\+\_\+\+B\+L\+E\+N\+D\+\_\+\+I\+N\+D\+I\+C\+ES element is continuous, with no gaps. Thus, by minimising the world matrix array constants passing to G\+PU, we can support more bones for a mesh when hardware skinning is used. The hardware skinning support limit is applied to each set of vertex data in the mesh, in other words, the hardware skinning support limit is applied only to the actually used bones of each Sub\+Meshes, not all bones across the entire \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}}. 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
Because the blend index is different to the bone index, therefore, we use the index map to translate the blend index to bone index. 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
The use of shared or non-\/shared index map is determined when model data is converted to the O\+G\+RE .mesh format. 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a75594d10e60849696ca80f4d6cf375f4}\label{class_ogre_1_1_sub_mesh_a75594d10e60849696ca80f4d6cf375f4}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!LODFaceList@{LODFaceList}}
\index{LODFaceList@{LODFaceList}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{LODFaceList}{LODFaceList}}
{\footnotesize\ttfamily typedef std\+::vector$<$\mbox{\hyperlink{class_ogre_1_1_index_data}{Index\+Data}}$\ast$$>$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a75594d10e60849696ca80f4d6cf375f4}{Ogre\+::\+Sub\+Mesh\+::\+L\+O\+D\+Face\+List}}}

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_ab396ad138e9d8b48355d495215989881}\label{class_ogre_1_1_sub_mesh_ab396ad138e9d8b48355d495215989881}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!VertexBoneAssignmentList@{VertexBoneAssignmentList}}
\index{VertexBoneAssignmentList@{VertexBoneAssignmentList}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{VertexBoneAssignmentList}{VertexBoneAssignmentList}}
{\footnotesize\ttfamily typedef std\+::multimap$<$size\+\_\+t, \mbox{\hyperlink{group___animation_gaf7318ddaeea193a759de6349554ec3a4}{Vertex\+Bone\+Assignment}}$>$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ab396ad138e9d8b48355d495215989881}{Ogre\+::\+Sub\+Mesh\+::\+Vertex\+Bone\+Assignment\+List}}}



Multimap of verex bone assignments (orders by vertex index) 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a9c23baff85d3b4f60e37f2a514be1ada}\label{class_ogre_1_1_sub_mesh_a9c23baff85d3b4f60e37f2a514be1ada}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!BoneAssignmentIterator@{BoneAssignmentIterator}}
\index{BoneAssignmentIterator@{BoneAssignmentIterator}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{BoneAssignmentIterator}{BoneAssignmentIterator}}
{\footnotesize\ttfamily typedef \mbox{\hyperlink{class_ogre_1_1_map_iterator}{Map\+Iterator}}$<$\mbox{\hyperlink{class_ogre_1_1_sub_mesh_ab396ad138e9d8b48355d495215989881}{Vertex\+Bone\+Assignment\+List}}$>$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a9c23baff85d3b4f60e37f2a514be1ada}{Ogre\+::\+Sub\+Mesh\+::\+Bone\+Assignment\+Iterator}}}

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a243e656daab531eea35d8b9fb5dc3b11}\label{class_ogre_1_1_sub_mesh_a243e656daab531eea35d8b9fb5dc3b11}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!AliasTextureIterator@{AliasTextureIterator}}
\index{AliasTextureIterator@{AliasTextureIterator}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{AliasTextureIterator}{AliasTextureIterator}}
{\footnotesize\ttfamily typedef \mbox{\hyperlink{class_ogre_1_1_const_map_iterator}{Const\+Map\+Iterator}}$<$\mbox{\hyperlink{group___general_ga5dafc9e68bde8099ec5ad6c94e4cf19b}{Alias\+Texture\+Name\+Pair\+List}}$>$ \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a243e656daab531eea35d8b9fb5dc3b11}{Ogre\+::\+Sub\+Mesh\+::\+Alias\+Texture\+Iterator}}}



\doxysubsection{Constructor \& Destructor Documentation}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_aa5e04097716119c5cfed229c8425fc60}\label{class_ogre_1_1_sub_mesh_aa5e04097716119c5cfed229c8425fc60}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!SubMesh@{SubMesh}}
\index{SubMesh@{SubMesh}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{SubMesh()}{SubMesh()}}
{\footnotesize\ttfamily Ogre\+::\+Sub\+Mesh\+::\+Sub\+Mesh (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_ad0a51b024271c2042968e9e967dd39e8}\label{class_ogre_1_1_sub_mesh_ad0a51b024271c2042968e9e967dd39e8}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!````~SubMesh@{$\sim$SubMesh}}
\index{````~SubMesh@{$\sim$SubMesh}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{$\sim$SubMesh()}{~SubMesh()}}
{\footnotesize\ttfamily Ogre\+::\+Sub\+Mesh\+::$\sim$\+Sub\+Mesh (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})}



\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a8ad6c0cae3c325cd8953ab66bd97e72d}\label{class_ogre_1_1_sub_mesh_a8ad6c0cae3c325cd8953ab66bd97e72d}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!setMaterialName@{setMaterialName}}
\index{setMaterialName@{setMaterialName}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{setMaterialName()}{setMaterialName()}}
{\footnotesize\ttfamily void Ogre\+::\+Sub\+Mesh\+::set\+Material\+Name (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{mat\+Name,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{group\+Name = {\ttfamily \mbox{\hyperlink{class_ogre_1_1_resource_group_manager_a2a3698b4303d782938455e649b2e22a2}{Resource\+Group\+Manager\+::\+A\+U\+T\+O\+D\+E\+T\+E\+C\+T\+\_\+\+R\+E\+S\+O\+U\+R\+C\+E\+\_\+\+G\+R\+O\+U\+P\+\_\+\+N\+A\+ME}}} }\end{DoxyParamCaption})}



Sets the name of the \mbox{\hyperlink{class_ogre_1_1_material}{Material}} which this \mbox{\hyperlink{class_ogre_1_1_sub_mesh}{Sub\+Mesh}} will use. 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a78df2f25365fcf452af62aacd85c83a3}\label{class_ogre_1_1_sub_mesh_a78df2f25365fcf452af62aacd85c83a3}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!getMaterialName@{getMaterialName}}
\index{getMaterialName@{getMaterialName}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{getMaterialName()}{getMaterialName()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}\& Ogre\+::\+Sub\+Mesh\+::get\+Material\+Name (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const}

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_afc7f071088a6ab4dbc0618537deea652}\label{class_ogre_1_1_sub_mesh_afc7f071088a6ab4dbc0618537deea652}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!setMaterial@{setMaterial}}
\index{setMaterial@{setMaterial}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{setMaterial()}{setMaterial()}}
{\footnotesize\ttfamily void Ogre\+::\+Sub\+Mesh\+::set\+Material (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_a57ef769e80226674c3971ce58b58c91d}{Material\+Ptr}} \&}]{mat }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_ac183f5e168bd734c6388589975af155d}\label{class_ogre_1_1_sub_mesh_ac183f5e168bd734c6388589975af155d}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!getMaterial@{getMaterial}}
\index{getMaterial@{getMaterial}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{getMaterial()}{getMaterial()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{namespace_ogre_a57ef769e80226674c3971ce58b58c91d}{Material\+Ptr}}\& Ogre\+::\+Sub\+Mesh\+::get\+Material (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a6c7371d6d8aaa3e8117f26b3be958b44}\label{class_ogre_1_1_sub_mesh_a6c7371d6d8aaa3e8117f26b3be958b44}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!isMatInitialised@{isMatInitialised}}
\index{isMatInitialised@{isMatInitialised}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{isMatInitialised()}{isMatInitialised()}}
{\footnotesize\ttfamily bool Ogre\+::\+Sub\+Mesh\+::is\+Mat\+Initialised (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000192}{Deprecated}}]use \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ac183f5e168bd734c6388589975af155d}{get\+Material()}} instead \end{DoxyRefDesc}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a4770787312a616e8735c5d1a864bb1cb}\label{class_ogre_1_1_sub_mesh_a4770787312a616e8735c5d1a864bb1cb}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!\_getRenderOperation@{\_getRenderOperation}}
\index{\_getRenderOperation@{\_getRenderOperation}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{\_getRenderOperation()}{\_getRenderOperation()}}
{\footnotesize\ttfamily void Ogre\+::\+Sub\+Mesh\+::\+\_\+get\+Render\+Operation (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{class_ogre_1_1_render_operation}{Render\+Operation}} \&}]{rend,  }\item[{\mbox{\hyperlink{namespace_ogre_af851e71354d841df7138f9877c6f5931}{ushort}}}]{lod\+Index = {\ttfamily 0} }\end{DoxyParamCaption})}



Returns a \mbox{\hyperlink{class_ogre_1_1_render_operation}{Render\+Operation}} structure required to render this mesh. 


\begin{DoxyParams}{Parameters}
{\em rend} & Reference to a \mbox{\hyperlink{class_ogre_1_1_render_operation}{Render\+Operation}} structure to populate. \\
\hline
{\em lod\+Index} & The index of the L\+OD to use. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_abdd303710ef1131801f5017ef2eda1f2}\label{class_ogre_1_1_sub_mesh_abdd303710ef1131801f5017ef2eda1f2}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!addBoneAssignment@{addBoneAssignment}}
\index{addBoneAssignment@{addBoneAssignment}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{addBoneAssignment()}{addBoneAssignment()}}
{\footnotesize\ttfamily void Ogre\+::\+Sub\+Mesh\+::add\+Bone\+Assignment (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{group___animation_gaf7318ddaeea193a759de6349554ec3a4}{Vertex\+Bone\+Assignment}} \&}]{vert\+Bone\+Assign }\end{DoxyParamCaption})}



Assigns a vertex to a bone with a given weight, for skeletal animation. 

\begin{DoxyRemark}{Remarks}
~\newline
 This method is only valid after calling set\+Skeleton\+Name. Since this is a one-\/off process there exists only \textquotesingle{}add\+Bone\+Assignment\textquotesingle{} and \textquotesingle{}clear\+Bone\+Assignments\textquotesingle{} methods, no \textquotesingle{}edit\+Bone\+Assignment\textquotesingle{}. You should not need to modify bone assignments during rendering (only the positions of bones) and O\+G\+RE reserves the right to do some internal data reformatting of this information, depending on render system requirements. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
This method is for assigning weights to the dedicated geometry of the \mbox{\hyperlink{class_ogre_1_1_sub_mesh}{Sub\+Mesh}}. To assign weights to the shared \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} geometry, see the equivalent methods on \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}}. 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a2c29dd4601e67d3f6d26d7d74c017995}\label{class_ogre_1_1_sub_mesh_a2c29dd4601e67d3f6d26d7d74c017995}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!clearBoneAssignments@{clearBoneAssignments}}
\index{clearBoneAssignments@{clearBoneAssignments}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{clearBoneAssignments()}{clearBoneAssignments()}}
{\footnotesize\ttfamily void Ogre\+::\+Sub\+Mesh\+::clear\+Bone\+Assignments (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Removes all bone assignments for this mesh. 

\begin{DoxyParagraph}{}
This method is for assigning weights to the dedicated geometry of the \mbox{\hyperlink{class_ogre_1_1_sub_mesh}{Sub\+Mesh}}. To assign weights to the shared \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} geometry, see the equivalent methods on \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}}. 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_ab37844a411ccea1cf06d1c95e10b71e2}\label{class_ogre_1_1_sub_mesh_ab37844a411ccea1cf06d1c95e10b71e2}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!getBoneAssignmentIterator@{getBoneAssignmentIterator}}
\index{getBoneAssignmentIterator@{getBoneAssignmentIterator}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{getBoneAssignmentIterator()}{getBoneAssignmentIterator()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a9c23baff85d3b4f60e37f2a514be1ada}{Bone\+Assignment\+Iterator}} Ogre\+::\+Sub\+Mesh\+::get\+Bone\+Assignment\+Iterator (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Gets an iterator for access all bone assignments. 

\begin{DoxyRemark}{Remarks}
Only valid if this \mbox{\hyperlink{class_ogre_1_1_sub_mesh}{Sub\+Mesh}} has dedicated geometry. 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a03901f7c72762aa3794af16b88c3e196}\label{class_ogre_1_1_sub_mesh_a03901f7c72762aa3794af16b88c3e196}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!getBoneAssignments@{getBoneAssignments}}
\index{getBoneAssignments@{getBoneAssignments}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{getBoneAssignments()}{getBoneAssignments()}}
{\footnotesize\ttfamily const \mbox{\hyperlink{class_ogre_1_1_sub_mesh_ab396ad138e9d8b48355d495215989881}{Vertex\+Bone\+Assignment\+List}}\& Ogre\+::\+Sub\+Mesh\+::get\+Bone\+Assignments (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}}



Gets a const reference to the list of bone assignments. 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_acd127d162c4271ac6b844161e1ea777a}\label{class_ogre_1_1_sub_mesh_acd127d162c4271ac6b844161e1ea777a}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!\_compileBoneAssignments@{\_compileBoneAssignments}}
\index{\_compileBoneAssignments@{\_compileBoneAssignments}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{\_compileBoneAssignments()}{\_compileBoneAssignments()}}
{\footnotesize\ttfamily void Ogre\+::\+Sub\+Mesh\+::\+\_\+compile\+Bone\+Assignments (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



Must be called once to compile bone assignments into geometry buffer. 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_ab284e1061042026fa872f3b76b701caf}\label{class_ogre_1_1_sub_mesh_ab284e1061042026fa872f3b76b701caf}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!getAliasTextureIterator@{getAliasTextureIterator}}
\index{getAliasTextureIterator@{getAliasTextureIterator}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{getAliasTextureIterator()}{getAliasTextureIterator()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a243e656daab531eea35d8b9fb5dc3b11}{Alias\+Texture\+Iterator}} Ogre\+::\+Sub\+Mesh\+::get\+Alias\+Texture\+Iterator (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const}



Gets an constant iterator to access all texture alias names assigned to this submesh. 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_abe04d5342331ad434e47ca9b934a7622}\label{class_ogre_1_1_sub_mesh_abe04d5342331ad434e47ca9b934a7622}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!addTextureAlias@{addTextureAlias}}
\index{addTextureAlias@{addTextureAlias}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{addTextureAlias()}{addTextureAlias()}}
{\footnotesize\ttfamily void Ogre\+::\+Sub\+Mesh\+::add\+Texture\+Alias (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{alias\+Name,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{texture\+Name }\end{DoxyParamCaption})}



Adds the alias or replaces an existing one and associates the texture name to it. 

\begin{DoxyRemark}{Remarks}
The submesh uses the texture alias to replace textures used in the material applied to the submesh. 
\end{DoxyRemark}

\begin{DoxyParams}{Parameters}
{\em alias\+Name} & is the name of the alias. \\
\hline
{\em texture\+Name} & is the name of the texture to be associated with the alias \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a9007b549c95c6fb1402818bf55b65b16}\label{class_ogre_1_1_sub_mesh_a9007b549c95c6fb1402818bf55b65b16}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!removeTextureAlias@{removeTextureAlias}}
\index{removeTextureAlias@{removeTextureAlias}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{removeTextureAlias()}{removeTextureAlias()}}
{\footnotesize\ttfamily void Ogre\+::\+Sub\+Mesh\+::remove\+Texture\+Alias (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{alias\+Name }\end{DoxyParamCaption})}



Remove a specific texture alias name from the sub mesh. 


\begin{DoxyParams}{Parameters}
{\em alias\+Name} & is the name of the alias to be removed. If it is not found then it is ignored. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a8446f2b030ecd536933c0a39cdb3d61a}\label{class_ogre_1_1_sub_mesh_a8446f2b030ecd536933c0a39cdb3d61a}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!removeAllTextureAliases@{removeAllTextureAliases}}
\index{removeAllTextureAliases@{removeAllTextureAliases}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{removeAllTextureAliases()}{removeAllTextureAliases()}}
{\footnotesize\ttfamily void Ogre\+::\+Sub\+Mesh\+::remove\+All\+Texture\+Aliases (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



removes all texture aliases from the sub mesh 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a7277f01fb328b268deffb94b351c5c1d}\label{class_ogre_1_1_sub_mesh_a7277f01fb328b268deffb94b351c5c1d}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!hasTextureAliases@{hasTextureAliases}}
\index{hasTextureAliases@{hasTextureAliases}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{hasTextureAliases()}{hasTextureAliases()}}
{\footnotesize\ttfamily bool Ogre\+::\+Sub\+Mesh\+::has\+Texture\+Aliases (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



returns true if the sub mesh has texture aliases 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a0aca2c1ed5b5f115e882ea2481bb1769}\label{class_ogre_1_1_sub_mesh_a0aca2c1ed5b5f115e882ea2481bb1769}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!getTextureAliasCount@{getTextureAliasCount}}
\index{getTextureAliasCount@{getTextureAliasCount}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{getTextureAliasCount()}{getTextureAliasCount()}}
{\footnotesize\ttfamily size\+\_\+t Ogre\+::\+Sub\+Mesh\+::get\+Texture\+Alias\+Count (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Gets the number of texture aliases assigned to the sub mesh. 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a2107e531c7161b312571d8977f9539e2}\label{class_ogre_1_1_sub_mesh_a2107e531c7161b312571d8977f9539e2}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!updateMaterialUsingTextureAliases@{updateMaterialUsingTextureAliases}}
\index{updateMaterialUsingTextureAliases@{updateMaterialUsingTextureAliases}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{updateMaterialUsingTextureAliases()}{updateMaterialUsingTextureAliases()}}
{\footnotesize\ttfamily bool Ogre\+::\+Sub\+Mesh\+::update\+Material\+Using\+Texture\+Aliases (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption})}



The current material used by the submesh is copied into a new material and the submesh\textquotesingle{}s texture aliases are applied if the current texture alias names match those found in the original material. 

\begin{DoxyRemark}{Remarks}
The submesh\textquotesingle{}s texture aliases must be setup prior to calling this method. If a new material has to be created, the sub\+Mesh autogenerates the new name. The new name is the old name + \char`\"{}\+\_\+\char`\"{} + number. 
\end{DoxyRemark}
\begin{DoxyReturn}{Returns}
True if texture aliases were applied and a new material was created. 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_add91fed2eb2a3330b2004248572642e4}\label{class_ogre_1_1_sub_mesh_add91fed2eb2a3330b2004248572642e4}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!getVertexAnimationType@{getVertexAnimationType}}
\index{getVertexAnimationType@{getVertexAnimationType}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{getVertexAnimationType()}{getVertexAnimationType()}}
{\footnotesize\ttfamily \mbox{\hyperlink{group___animation_ga9046e6e0d12c46c57a9056987e9d158e}{Vertex\+Animation\+Type}} Ogre\+::\+Sub\+Mesh\+::get\+Vertex\+Animation\+Type (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const}



Get the type of any vertex animation used by dedicated geometry. 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_af9bf141e65f964f131229501804940e5}\label{class_ogre_1_1_sub_mesh_af9bf141e65f964f131229501804940e5}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!getVertexAnimationIncludesNormals@{getVertexAnimationIncludesNormals}}
\index{getVertexAnimationIncludesNormals@{getVertexAnimationIncludesNormals}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{getVertexAnimationIncludesNormals()}{getVertexAnimationIncludesNormals()}}
{\footnotesize\ttfamily bool Ogre\+::\+Sub\+Mesh\+::get\+Vertex\+Animation\+Includes\+Normals (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Returns whether animation on dedicated vertex data includes normals. 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_af32a20ce7dd6ca470ce7e33e5dc7d7d9}\label{class_ogre_1_1_sub_mesh_af32a20ce7dd6ca470ce7e33e5dc7d7d9}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!generateExtremes@{generateExtremes}}
\index{generateExtremes@{generateExtremes}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{generateExtremes()}{generateExtremes()}}
{\footnotesize\ttfamily void Ogre\+::\+Sub\+Mesh\+::generate\+Extremes (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{count }\end{DoxyParamCaption})}



Generate the submesh extremes (. 

\begin{DoxySeeAlso}{See also}
\mbox{\hyperlink{class_ogre_1_1_sub_mesh_ac63766998cb839ca582947d7545214f5}{extremity\+Points}}). 
\end{DoxySeeAlso}

\begin{DoxyParams}{Parameters}
{\em count} & Number of extreme points to compute for the submesh. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_acae45080848d0e53474aaf11c0ce5209}\label{class_ogre_1_1_sub_mesh_acae45080848d0e53474aaf11c0ce5209}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!isBuildEdgesEnabled@{isBuildEdgesEnabled}}
\index{isBuildEdgesEnabled@{isBuildEdgesEnabled}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{isBuildEdgesEnabled()}{isBuildEdgesEnabled()}}
{\footnotesize\ttfamily bool Ogre\+::\+Sub\+Mesh\+::is\+Build\+Edges\+Enabled (\begin{DoxyParamCaption}\item[{void}]{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}}



Returns true(by default) if the submesh should be included in the mesh Edge\+List, otherwise returns false. 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_acc667dc8cf61d4fa25f005fd5cb9082a}\label{class_ogre_1_1_sub_mesh_acc667dc8cf61d4fa25f005fd5cb9082a}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!setBuildEdgesEnabled@{setBuildEdgesEnabled}}
\index{setBuildEdgesEnabled@{setBuildEdgesEnabled}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{setBuildEdgesEnabled()}{setBuildEdgesEnabled()}}
{\footnotesize\ttfamily void Ogre\+::\+Sub\+Mesh\+::set\+Build\+Edges\+Enabled (\begin{DoxyParamCaption}\item[{bool}]{b }\end{DoxyParamCaption})}

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a2ec4714cce3f0c922670c038ff95a5b7}\label{class_ogre_1_1_sub_mesh_a2ec4714cce3f0c922670c038ff95a5b7}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!clone@{clone}}
\index{clone@{clone}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{clone()}{clone()}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_sub_mesh}{Sub\+Mesh}}$\ast$ Ogre\+::\+Sub\+Mesh\+::clone (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{new\+Name,  }\item[{\mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} $\ast$}]{parent\+Mesh = {\ttfamily 0} }\end{DoxyParamCaption})}



Makes a copy of this submesh object and gives it a new name. 


\begin{DoxyParams}{Parameters}
{\em new\+Name} & The name to give the clone. \\
\hline
{\em parent\+Mesh} & Optional mesh to make the parent of the newly created clone. If you leave this blank, the clone will be parented to the same \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} as the original. \\
\hline
\end{DoxyParams}


\doxysubsection{Friends And Related Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_aa41a130f156b145bffb3f4b5172c4c93}\label{class_ogre_1_1_sub_mesh_aa41a130f156b145bffb3f4b5172c4c93}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!Mesh@{Mesh}}
\index{Mesh@{Mesh}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{Mesh}{Mesh}}
{\footnotesize\ttfamily friend class \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}}\hspace{0.3cm}{\ttfamily [friend]}}

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a48305c54a01e0c7a3376ea0a077c467f}\label{class_ogre_1_1_sub_mesh_a48305c54a01e0c7a3376ea0a077c467f}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!MeshSerializerImpl@{MeshSerializerImpl}}
\index{MeshSerializerImpl@{MeshSerializerImpl}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{MeshSerializerImpl}{MeshSerializerImpl}}
{\footnotesize\ttfamily friend class Mesh\+Serializer\+Impl\hspace{0.3cm}{\ttfamily [friend]}}

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_ae60e96165c5d5495195fa0d49f031372}\label{class_ogre_1_1_sub_mesh_ae60e96165c5d5495195fa0d49f031372}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!MeshSerializerImpl\_v1\_2@{MeshSerializerImpl\_v1\_2}}
\index{MeshSerializerImpl\_v1\_2@{MeshSerializerImpl\_v1\_2}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{MeshSerializerImpl\_v1\_2}{MeshSerializerImpl\_v1\_2}}
{\footnotesize\ttfamily friend class Mesh\+Serializer\+Impl\+\_\+v1\+\_\+2\hspace{0.3cm}{\ttfamily [friend]}}

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_aef9901d67ded13a151aa3d4fde3a7b17}\label{class_ogre_1_1_sub_mesh_aef9901d67ded13a151aa3d4fde3a7b17}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!MeshSerializerImpl\_v1\_1@{MeshSerializerImpl\_v1\_1}}
\index{MeshSerializerImpl\_v1\_1@{MeshSerializerImpl\_v1\_1}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{MeshSerializerImpl\_v1\_1}{MeshSerializerImpl\_v1\_1}}
{\footnotesize\ttfamily friend class Mesh\+Serializer\+Impl\+\_\+v1\+\_\+1\hspace{0.3cm}{\ttfamily [friend]}}



\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a931e3764e3bf1c3ef7431fc852770fb1}\label{class_ogre_1_1_sub_mesh_a931e3764e3bf1c3ef7431fc852770fb1}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!useSharedVertices@{useSharedVertices}}
\index{useSharedVertices@{useSharedVertices}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{useSharedVertices}{useSharedVertices}}
{\footnotesize\ttfamily bool Ogre\+::\+Sub\+Mesh\+::use\+Shared\+Vertices}



Indicates if this submesh shares vertex data with other meshes or whether it has it\textquotesingle{}s own vertices. 



Referenced by Ogre\+::\+Lod0\+Stripifier\+::\+Strip\+Lod0\+Vertices().

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a10ed3ef8bb24a001bb89dc9e3cd88c31}\label{class_ogre_1_1_sub_mesh_a10ed3ef8bb24a001bb89dc9e3cd88c31}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!operationType@{operationType}}
\index{operationType@{operationType}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{operationType}{operationType}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_render_operation_a7a272218dae54048c87f31176c19e10d}{Render\+Operation\+::\+Operation\+Type}} Ogre\+::\+Sub\+Mesh\+::operation\+Type}



The render operation type used to render this submesh. 

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a1862a3ec9a3f2ed4ade8af69b41a809d}\label{class_ogre_1_1_sub_mesh_a1862a3ec9a3f2ed4ade8af69b41a809d}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!vertexData@{vertexData}}
\index{vertexData@{vertexData}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{vertexData}{vertexData}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_vertex_data}{Vertex\+Data}}$\ast$ Ogre\+::\+Sub\+Mesh\+::vertex\+Data}



Dedicated vertex data (only valid if use\+Shared\+Vertices = false). 

\begin{DoxyRemark}{Remarks}
This data is completely owned by this submesh. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
The use of shared or non-\/shared buffers is determined when model data is converted to the O\+G\+RE .mesh format. 
\end{DoxyParagraph}


Referenced by Ogre\+::\+Lod0\+Stripifier\+::\+Strip\+Lod0\+Vertices().

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_aad428fa6595c7fb01ef7543e5d8d6454}\label{class_ogre_1_1_sub_mesh_aad428fa6595c7fb01ef7543e5d8d6454}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!indexData@{indexData}}
\index{indexData@{indexData}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{indexData}{indexData}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_index_data}{Index\+Data}}$\ast$ Ogre\+::\+Sub\+Mesh\+::index\+Data}



Face index data. 



Referenced by Ogre\+::\+Lod0\+Stripifier\+::\+Strip\+Lod0\+Vertices().

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_ae6b4c1d0724fe6a9a961b73bd646d3cf}\label{class_ogre_1_1_sub_mesh_ae6b4c1d0724fe6a9a961b73bd646d3cf}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!blendIndexToBoneIndexMap@{blendIndexToBoneIndexMap}}
\index{blendIndexToBoneIndexMap@{blendIndexToBoneIndexMap}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{blendIndexToBoneIndexMap}{blendIndexToBoneIndexMap}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a77002e2ac2d5f5041e4b0fe3bd228245}{Index\+Map}} Ogre\+::\+Sub\+Mesh\+::blend\+Index\+To\+Bone\+Index\+Map}

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_a821d2587eb2dc9746a2b1a5c0deada32}\label{class_ogre_1_1_sub_mesh_a821d2587eb2dc9746a2b1a5c0deada32}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!mLodFaceList@{mLodFaceList}}
\index{mLodFaceList@{mLodFaceList}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{mLodFaceList}{mLodFaceList}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_sub_mesh_a75594d10e60849696ca80f4d6cf375f4}{L\+O\+D\+Face\+List}} Ogre\+::\+Sub\+Mesh\+::m\+Lod\+Face\+List}



Referenced by Ogre\+::\+Lod0\+Stripifier\+::\+Strip\+Lod0\+Vertices().

\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_ac63766998cb839ca582947d7545214f5}\label{class_ogre_1_1_sub_mesh_ac63766998cb839ca582947d7545214f5}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!extremityPoints@{extremityPoints}}
\index{extremityPoints@{extremityPoints}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{extremityPoints}{extremityPoints}}
{\footnotesize\ttfamily std\+::vector$<$\mbox{\hyperlink{namespace_ogre_ac94fc4008c1165dea017263fee56b273}{Vector3}}$>$ Ogre\+::\+Sub\+Mesh\+::extremity\+Points}



A list of extreme points on the submesh (optional). 

\begin{DoxyRemark}{Remarks}
These points are some arbitrary points on the mesh that are used by engine to better sort submeshes by depth. This doesn\textquotesingle{}t matter much for non-\/transparent submeshes, as Z-\/buffer takes care of invisible surface culling anyway, but is pretty useful for semi-\/transparent submeshes because the order in which transparent submeshes must be rendered cannot be always correctly deduced from entity position. 
\end{DoxyRemark}
\begin{DoxyParagraph}{}
These points are intelligently chosen from the points that make up the submesh, the criteria for choosing them should be that these points somewhat characterize the submesh outline, e.\+g. they should not be close to each other, and they should be on the outer hull of the submesh. They can be stored in the .mesh file, or generated at runtime (see generate\+Extremes ()). 
\end{DoxyParagraph}
\begin{DoxyParagraph}{}
If this array is empty, submesh sorting is done like in older versions -\/ by comparing the positions of the owning entity. 
\end{DoxyParagraph}
\mbox{\Hypertarget{class_ogre_1_1_sub_mesh_ac2b9fd25eb56625716d9e8915f4e0e7d}\label{class_ogre_1_1_sub_mesh_ac2b9fd25eb56625716d9e8915f4e0e7d}} 
\index{Ogre::SubMesh@{Ogre::SubMesh}!parent@{parent}}
\index{parent@{parent}!Ogre::SubMesh@{Ogre::SubMesh}}
\doxysubsubsection{\texorpdfstring{parent}{parent}}
{\footnotesize\ttfamily \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}}$\ast$ Ogre\+::\+Sub\+Mesh\+::parent}



Reference to parent \mbox{\hyperlink{class_ogre_1_1_mesh}{Mesh}} (not a smart pointer so child does not keep parent alive). 



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_sub_mesh_8h}{Ogre\+Sub\+Mesh.\+h}}\end{DoxyCompactItemize}
