Learning to Edit 3D Objects and Scenes