I am trying to draw insphere of tetrahedron DABC. My code
\documentclass[tikz,border=3mm]{standalone}
\usepackage{tikz-3dplot}
\begin{document}
\tdplotsetmaincoords{60}{100}
\begin{tikzpicture} [tdplot_main_coords]
\path
(0,0,0) coordinate (D)
(3,0,0) coordinate (B)
(0,6,0) coordinate (C)
(0,0,9) coordinate (A)
(1,1,1) coordinate (I)
;
\fill (D) circle (1.5pt) node [right] {$D$};
\fill (A) circle (1.5pt) node [above] {$A$};
\fill (B) circle (1.5pt) node [left] {$A$};
\fill (C) circle (1.5pt) node [right] {$C$};
\fill (I) circle (1.5pt) node [right] {$I$};
\draw[dashed,red] (I) circle[radius = 1];
\draw (C) -- (A) -- (B) -- cycle;
\draw[dashed] (D) -- (C) (D) --(A) (D) -- (B);
\end{tikzpicture}
\end{document}
I got
I can not get the correct result of the sphere. My questions:
- How can I get correct result;
- Is there a way to draw insphere without using the center
Iand radiusR = 1like my code?


\draw[dashed,red] (I) circle[radius = 1 cm];and you'll get the spherical form. I don't know without some computations if the resulting sphere is the insphere or not. – Juan Castaño Sep 01 '21 at 12:49