Investigating the morphology of the supernova remnant G349.7+00.2 in the medium with a density gradient