BaseMesh.UpdateSemantics Method ()
Allows the user to change the mesh declaration without changing the data layout of the vertex buffer.
The call is valid only if the old and new declaration formats have the same vertex size.
Overload List
public void UpdateSemantics(GraphicsStream); public void UpdateSemantics(VertexElement[]);
Remarks
The BaseMesh.Clone method is used to reformat and change the vertex data layout. For example, it can be used to add space for new normals, texture coordinates, colors, and weights that were not present before.
The BaseMesh.UpdateSemantics method updates the vertex declaration with new semantic information without changing the layout of the vertex buffer. For example, it can be used to re-label a 3-D texture coordinate as a binormal or a tangent, or vice versa.
Exceptions
The method call is invalid. For example, a method's parameter might contain an invalid value.