Currently I can print out this using Graphics3d:
Here's the code:
a = (-5 \[Pi])/2;
b = (5 \[Pi])/2;
dx = (b - a)/50;
f[x_] := 2 Cos[x];
startpos[1, k_] := a + (k - 1) dx;
startpos[2, k_] := a + k*dx;
startpos[3, k_] := a + (2 k - 1)/2 dx;
model = Graphics3D[{Table[
Cuboid[{{a + (l - 1) dx, 0, 0}, {a + l*dx, +.01,
f[startpos[3, l]] + .01}}], {l, 1, 50, 1}]}];
Show[model]
I want to rotate it around the y-axis. I already tried using RevolutionPlot3d, but I'm not sure how to set it up exactly. Here's my failed attempt:
model = RevolutionPlot3D[{Table[
Cuboid[{{a + (l - 1) dx, 0, 0}, {a + l*dx, +.01,
f[startpos[3, l]] + .01}}], {l, 1, 50, 1}]}, {x, a, b},
RevolutionAxis -> "Y", AspectRatio -> Automatic, Mesh -> None,
BoundaryStyle -> Black, PlotStyle -> Thickness[.1]] ;
Show[model]


