Question: Plotting a filled semicircle rotated across one axis in 3D.

December 01 2012 Jarekkk 434
Maple
1

I can't solve probably very easy problem. How to plot a filled semicircle which is rotated across one axis by an angle alpha? I came to the solution which I don't consider as the best one (since e.g. it will not work for alpha=Pi/2*(odd integer)) and I believe someone of you will show me a better approach. Thank you in advance.

My solution:

alpha := (1/6)*Pi:
plot3d([x, y, y*tan(alpha)], x = -1 .. 1, y = 0 .. sqrt(1-x^2)*cos(alpha), axes = normal, labels = ["x", "y", "z"], scaling = constrained, view = [-1 .. 1, -1 .. 1, -1 .. 1]);


Please Wait...