   Manipulate vertices
  Hello all ;)First off, I am new to C++/C (I have been using Delphi for a long time now so programming concepts are not a new thing to me) but I was wondering if maybe someone could point me in the right direction:I am using a language with a game engine, called Lite-C. So I can easily convert and C/C++ code to match:Using D3d functions, is it possible to modify the mesh structure (namely vertices and indices)? If so, what functions must I use? I have searched the MSDN and the internet and I didn't really find any help...I have this so far:if (SUCCEEDED(pMesh -> GetVertexBuffer(pVertexBuffer))){//Lock Vertex BufferBYTE* pVertices;if (SUCCEEDED(pVertexBuffer -> Lock(0,0,&pVertices,0))){//}}Is this even correct? I tried to get the vertex buffer, then tried to unlock it - whats gone into the pVertices byte? a memory address to what/where? :PI am new to all this, so just tell me if its not even possible or something :PThanks,Adoado ;)   
  When you lock a vertex buffer as you have done there the pVertices variable is given the address of the first raw vertex stored within the buffer. So, depending on the flags you have locked with, you can either read/write or both.   ;  And the format of the vertices depends on the mesh. For instance, if it uses D3DFVF_XYZ | D3DFVF_NORMAL, your vertex struct would be:struct Vertex{   D3DXVECTOR3 pos;   D3DXVECTOR3 normal;};   