0
$\begingroup$

The following code doesn´t fill the base of the picture. ¿Why?

Clear["Global`*"];
SetOptions[ParametricPlot3D, Axes -> False, Boxed -> False, PlotRange -> All];
fy[x_] := Sqrt[1 - (x^2/4)];
latas = ParametricPlot3D[{t, fy[t], s}, {t, -2, 2}, {s, 0, .5}];
latai = ParametricPlot3D[{t, -fy[t], s}, {t, -2, 2}, {s, 0, .5}];
latab = ParametricPlot3D[{t, s, 0}, {t, -2, 2}, {s, -fy[t], fy[t]}];
Show[{latai, latas, latab}]
$\endgroup$
2
  • $\begingroup$ Please post your code in copyable format so that we can help. $\endgroup$ Commented Mar 16, 2015 at 23:21
  • $\begingroup$ Welcome to Mathematica.SE! I suggest that: 1) You take the introductory Tour now! 2) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! 3) As you receive help, try to give it too, by answering questions in your area of expertise. $\endgroup$
    – bbgodfrey
    Commented Mar 16, 2015 at 23:27

1 Answer 1

1
$\begingroup$
Clear["Global`*"];
SetOptions[ParametricPlot3D, Axes -> False, Boxed -> False, 
  PlotRange -> All];
fy[x_] := Sqrt[1 - (x^2/4)];
latas = ParametricPlot3D[{t, fy[t], s}, {t, -2, 2}, {s, 0, .5}, 
   PlotPoints -> 50];
latai = ParametricPlot3D[{t, -fy[t], s}, {t, -2, 2}, {s, 0, .5}, 
   PlotPoints -> 50];
latab = ParametricPlot3D[{t, s, 0}, {t, -2, 2}, {s, -fy[t], fy[t]}, 
   PlotPoints -> 50];
Show[{latai, latas, latab}]
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.