I wanted to parameterize and draw a pyramid with a square base. The base was parameterized as a function of t , getting:
Show[ParametricPlot3D[{t, 0, 0}, {t, 0, 4}],
ParametricPlot3D[{4, t - 4, 0}, {t, 4, 8}],
ParametricPlot3D[{12 - t, 4, 0}, {t, 8, 12}],
ParametricPlot3D[{0, 16 - t, 0}, {t, 12, 16}], PlotRange -> Full]
The pyramid would be lifted from a point (2,2,8) , but when I draw the line between that vertex and one of the base lines, nothing works, and it separates all the graphs. Is there a better way for me to do this?
Pyramid
. Also, instead ofParametricPlot3D
, you can simply useLine
. $\endgroup$