Add a function to merge meshes