added functions to create wireframe meshes from a vertex buffer