This is a part of the second picture
\documentclass[border=2mm]{standalone}
\usepackage{tikz}
%\usetikzlibrary{spath3}
\usetikzlibrary{3dtools,calc}% https://github.com/marmotghost/tikz-3dtools
\begin{document}
\begin{tikzpicture}[3d/install view={phi=120,theta=70},line cap=butt,
line join=round,declare function={R=1; },c/.style={circle,fill,inner sep=1pt}]
\path
(-2, -2, -2) coordinate (A)
(-2, 2, -2) coordinate (B)
(2, 2, -2) coordinate (C)
(2, -2, -2) coordinate (D)
(-2, -2, -1) coordinate (E)
(-2, 2, -1) coordinate (F)
(2, 2, -1) coordinate (G)
(2, -2, -1) coordinate (H)
;
\path(0,0,2)[save named path=sph,3d/screen coords] circle[radius=R];
\path[save named path=rec1] (-3, -3, -2)--(-3, 3, -2) -- (3, 3, -2) --(3, -3, -2)--cycle;
\path[save named path=triangle] (-2, 0, 2)--(2, 0, 2) -- (0, 0, 4) --cycle;
\path (0,0,-1) [3d/visible/.style={save named path=cyc,draw={none}}] pic{3d/frustum={R=R,r=R,h=2}};
\path[save named path=convex,convex hull of={H,D,C,B,F,E}];
\path[save named path=lineHEF] (H) -- (E)-- (F);
\draw[3d/visible] (H) -- (G) -- (F) (C) -- (G) (D) -- (H) (B) -- (F) (D) -- (C) -- (B);
\draw[3d/hidden] (D) -- (A) -- (B) (E) --(A) ;
\tikzset{3d/ordered paths/.cd, convex/.style={draw=none}};
\tikzset{3d/draw ordered paths={rec1,triangle,lineHEF,cyc,convex,sph}}
%\path foreach \p/\g in {A/90,B/0,C/0,D/0,E/90,F/0,G/0,H/0}
%{(\p)node[c]{}+(\g:2.5mm) node{$\p$}};
\end{tikzpicture}
\end{document}
