sage: n=2 sage: q=[[1,0,0],[0,1,0],[0,0,1]]+ [[1,i,-i] for i in range(1,n+1)]+[ [1,i,1-i] for i in range(1,n+1)]+[[0,0,0]] sage: p = PointConfiguration(q) sage: regular =p.restrict_to_regular_triangulations(True).triangulations_list() sage: with open("sageoutput.txt", "w") as f: f.write(str(regular)) sage: a=open("sageoutput.txt", "r") sage: texto=a.read() sage: texto=texto.replace("(","[") sage: texto=texto.replace("<","[") sage: texto=texto.replace(")","]") sage: texto=texto.replace(">","]") sage: texto=texto.replace(" ","") sage: with open("sageoutput.txt", "w") as f: f.write(texto)