16
How can we depict a turned shape simply and nicely using ascii characters in 3D space?
I suggest this method :
Instead of a circle we use a square rotated by 45° for the cutting section so that we only need '/' and '\' characters to draw it.
/\ / \ \ / \/
And we use '_' character for the profiles: upper, lower and median.
_________ /\ \ / \________\ \ / / \/________/
Isn't it Turning complete? Well, if you agree, write a full program or a function taking an unsigned integer value N , representing a number of steps , producing a 3d shape as described below.
The profile of this turned shape has the form of a stair step curve raising from 0 to N steps and lowering back to 0 where each step is 2 char('/') high and 5 char long ('_').
Maybe some examples describes it more clearly.
For N = 0 you may output nothing but it's not mandatory to handle it.
N = 1 _____ /\ \ / \____\ \ / / \/____/ .
N = 2 _____ /\ \ ___/_ \ \__ /\ \ \ \ \ / \____\ \____\_\ \ / / / / / \/____/ / /_/ \ / / \/____/ .
N = 3 _____ /\ \ ___/_ \ \__ /\ \ \ \ \ ___/_ \ \ \ \ \__ /\ \ \ \ \ \ \ \ / \____\ \____\ \____\_\_\ \ / / / / / / / / \/____/ / / / / /_/ \ / / / / / \/____/ / /_/ \ / / \/____/
Rules :
- Margins are not specified.
- Standard loopholes are forbidden.
- Standard input/output methods.
- Shortest answer in bytes wins.
3What if I don't agree ? I may be wrong, but I don't have any task in that case. – The random guy – 2019-10-15T07:32:55.387
Sandbox: https://codegolf.meta.stackexchange.com/a/18149/84844
– AZTECCO – 2019-10-15T07:37:54.033