How can I generate and export the support structure for an object as a mesh?
You could try Meshmixer its free and the supports generated with it are embedded into the 3D model.

Here you can find a reference on Meshmixer supports. Meshmixer is well known for making custom supports for complex 3D models.