Ask Your Question

Cyrille Tago's profile - activity

2016-09-06 07:59:49 -0500 received badge  Student (source)
2016-09-06 07:59:21 -0500 received badge  Famous Question (source)
2016-09-05 14:40:34 -0500 received badge  Notable Question (source)
2016-09-05 14:40:34 -0500 received badge  Popular Question (source)
2016-04-05 11:00:22 -0500 asked a question Save a 3D in Sage as a '.stl' file

Hi Everyone,

I am trying to save a simple polyhedron, an icosahedron(center=(0,4,0)) as an STL file. I tried using

g= icosahedron(center=(0,4,0))'icosahedron.stl')

but I get the following error message:

 Error in lines 1-1
Traceback (most recent call last):
  File "/projects/sage/sage-6.10/local/lib/python2.7/site-packages/smc_sagews/", line 904, in execute
    exec compile(block+'\n', '', 'single') in namespace, locals
  File "", line 1, in <module>
  File "sage/plot/plot3d/base.pyx", line 1530, in (/projects/sage/sage-6.10/src/build/cythonized/sage/plot/plot3d/base.c:17931)
  File "sage/plot/plot3d/base.pyx", line 1591, in sage.plot.plot3d.base.Graphics3d.stl_ascii_string (/projects  /sage/sage-6.10/src/build/cythonized/sage/plot/plot3d/base.c:18510)
    faces = self.face_list()
 AttributeError: 'TransformGroup' object has no attribute 'face_list'

I also taugh of converting the '.wrl' extension to '.stl' but I am still having some problems with that. Can someone please help me to solve this problem? I will also appreciate if another approach to saving the file could be proposed.

Thank you for your help