A Survey on 3D Editing Based on NeRF and 3DGS