Ask Your Question

Revision history [back]

Not quite clear what you are asking. It would seem you defined your own Cone which returns a 3d graphics object.

In that case the error you get might be from sum, and this modified code might work for you:

sage: brown = Cone(1/8, 1, color='brown').translate(0, 0, -3)
sage: green = (Cone(exp(-n/5), 4/3*exp(-n/5),
....:               color=(0, .5, 0)).translate(0, 0, -3*exp(-n/5))
....:          for n in [1 .. 7])
sage: T = sum(green, brown)
sage: T.show(aspect_ratio=1, frame=False)