答案1
这是一种相当不成熟的绘制此类事物的方法。
\documentclass[tikz,border=3mm]{standalone}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{70}{30}
\begin{tikzpicture}[tdplot_main_coords,
declare function={b=3;h=2;l=4;}]
\draw[dashed] (-b/2,-l/2,0) -- (-b/2,l/2,0) edge (b/2,l/2,0) -- (0,l/2,h);
\draw (b/2,l/2,0) -- (0,l/2,h) -- (0,-l/2,h);
\draw[fill=gray,fill opacity=0.3] (b/2,-l/2,0) -- (0,-l/2,h) -- (-b/2,-l/2,0);
\draw[blue] (b/2,-l/2,0) -- node[below] {$\ell$} (b/2,l/2,0);
\draw[green!70!black] (b/2,-l/2,0) -- node[below] {$b$} (-b/2,-l/2,0);
\draw[red] (0,-l/2,0) -- node[left] {$h$} (0,-l/2,h);
\end{tikzpicture}
\end{document}