Do it like clootie suggested, or in a worst case dump everything in one big vertex array and recreate indices, like I did in this thread.