create a new XML when button is pressed, renaming some variables
save the points and triangle datas