Problem with .stl and Graph
Hi everyone!
I have a problem with SageMath, and I need your help :).
I want to save my personal Graph from a list to a .stl file (.stl for 3d object representation, "stereolithography").
My code:
p = [[0,0,0],[1,2,3],[2,3,1],[2,1,0],[1,3,2],[3,2,1]]
points = PointConfiguration(p)
triang = points.triangulate()
triang.save('mygraph.stl')
triang.plot(axes=False)
When I try to save my file it's in the .sobj extension. (I research this extension and it's just an extension SageObject, so it's not useful for me). I want to draw a graph with a list of point and to convert them in a .stl file.
I already tried:
save the plot:
triang.plot().save('mygraph.stl') # Fails as there is no attribute face_list
save the all[-1]:
triang.all[-1].save('test.stl') # Fails as PointConfiguration don't have argument all.
I don't know what is the problem, so I ask for your help.
Thank you very much.
Thank you for the edits you made to the question, it is now easier to read.