Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problem with .stl and Graph

Hi everyone !

I have a problem with SageMath, and I need your help :). I want to save my personnal Graph from a list to a .stl file. 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 :

  • triang.plot().save('mygraph.stl') #Doesn't work because there is no attribute face_list

  • triang.all[-1].save('test.stl') #PointConfiguration don't have argument all.

I don't know what is the problem, so I ask for your Help.

Thank you very much.

Problem with .stl and Graph

Hi everyone !

I have a problem with SageMath, and I need your help :). I want to save my personnal personal Graph from a list to a .stl file. My code :

p = [[0,0,0],[1,2,3],[2,3,1],[2,1,0],[1,3,2],[3,2,1]]

[[0,0,0],[1,2,3],[2,3,1],[2,1,0],[1,3,2],[3,2,1]]

points = PointConfiguration(p)

PointConfiguration(p)

triang = points.triangulate()

points.triangulate() triang.save('mygraph.stl')

triang.save('mygraph.stl')

triang.plot(axes=False)

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 :

  • - triang.plot().save('mygraph.stl') #Doesn't work because there is no attribute face_list

  • face_list
  • - triang.all[-1].save('test.stl') #PointConfiguration don't have argument all.

all.

I don't know what is the problem, so I ask for your Help.

Thank you very much.

Problem with .stl and Graph

Hi everyone ! 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. file (.stl for 3d object representation, "stereolithography").

My code : 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 extension and it's just an extension SageObject, so it's not useful for me). I want to draw draw a graph with a list of point and to convert them in a .stl file.

I already tried : tried:

  • save the plot:

    - triang.plot().save('mygraph.stl') #Doesn't work because # Fails as there is no attribute face_list
    
    - 
  • save the all[-1]:

    triang.all[-1].save('test.stl') #PointConfiguration # Fails as PointConfiguration don't have argument all.
    

I don't know what is the problem, so I ask for your Help.help.

Thank you very much.