Ask Your Question

Revision history [back]

3D tree(fractal)

We want to make this tree by using fractal.

sage: T = sum(Cone(exp(-n/5), 4/3exp(-n/5), color=(0, .5, 0)).translate(0, 0, - ˓→3exp(-n/5)) for n in [1..7]) sage: T += Cone(1/8, 1, color='brown').translate(0, 0, -3) sage: T.show(aspect_ratio=1, frame=False)
We find this code. but error we want to get 3D tree graph.

click to hide/show revision 2
None

3D tree(fractal)

We want to make this tree by using fractal.

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

We find this code. but error we want to get 3D tree graph.

3D tree(fractal)

We want to make this tree by using fractal.

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

We find this code. but error we want to get 3D tree graph.