add seekg(0) for stream that represents meshes