   accessing vertices------directx-----helllllp
  i'm trying to simply move a cloned mesh by applying a translation to each vertex , with a loop using "GetNumVertices()" to contol the loop .this dosn't work and i a memory access complaint .the number of verts is 165213 , the highest number that dos'nt crash is a little more than 1/12 this .heres the code...sVertex    *pMORG_BODY_VB_POINTER ;DWORD  MORG_BODY_VERTSIZE = sizeof(sVertex) ;g_pCLONE_MORG_BODY_Mesh -> LockVertexBuffer( 0 , (void**)&pMORG_BODY_VB_POINTER );  g_pBLENDED_MORG_BODY_Mesh -> GetFVF( )) ;DWORD NUMBEROFVERTS = g_pCLONE_MORG_BODY_Mesh -> GetNumVertices() ; for( DWORD i=0;  i< NUMBEROFVERTS  ; i++ ) {/////////////////LOOP///////////////////////////D3DXVECTOR3 VERTEX  =pMORG_BODY_VB_POINTER -> vecPos ;VERTEX.x = 5.0f ;pMORG_BODY_VB_POINTER -> vecPos = VERTEX ;pMORG_BODY_VB_POINTER += MORG_BODY_VERTSIZE ;    }/////////////////LOOP///////////////////////////g_pCLONE_MORG_BODY_Mesh -> UnlockVertexBuffer();anyone else run into this   
  Code is very hard to read, but based on your question you want a clone of a mesh with a different position? That's what world transformations are for, you don't clone a mesh but render the same mesh twice with different world transformation. Or do you have a special reason you need to clone the mesh for?   ;  Yeah, it's much simpler to apply a world transform and render the same mesh twice. Do you know how to do this in D3D?   