Edit and compile if you like:
\documentclass{article}\usepackage{tikz}\usepackage{tikz-3dplot}\usetikzlibrary{patterns}\usetikzlibrary{math}\usepackage[active,tightpage]{preview}\PreviewEnvironment{tikzpicture}\setlength\PreviewBorder{0.125pt}%% File name: toroidal-polyhedron.tex% Description:% A geometric representation of toroidal-polyhedron is shown.%% Date of creation: July, 06th, 2021.% Date of last modification: October, 9th, 2022.% Author: Efraín Soto Apolinar.% https://www.aprendematematicas.org.mx/author/efrain-soto-apolinar/instructing-courses/% Source: page 351 of the% Glosario Ilustrado de Matem\'aticas Escolares.% https://tinyurl.com/5udm2ufy%% Terms of use:% According to TikZ.net% https://creativecommons.org/licenses/by-nc-sa/4.0/% Your commitment to the terms of use is greatly appreciated.%\begin{document}%\tdplotsetmaincoords{35}{115}%\begin{tikzpicture}[tdplot_main_coords,scale=0.85]\pgfmathsetmacro{\rInt}{2.5} % inner radius\pgfmathsetmacro{\rExt}{4.0} % outer radius\pgfmathsetmacro{\r}{0.5*(\rInt+\rExt)}\pgfmathsetmacro{\h}{0.5*(\rExt-\rInt)}\pgfmathsetmacro{\n}{5} % number of pseudovertices of the toroidal polyhedron\pgfmathsetmacro{\anguloi}{30}\pgfmathsetmacro{\angulo}{360.0/\n}\pgfmathsetmacro{\criterio}{int(0.5*\n)}\pgfmathsetmacro{\pxn}{\r*cos(0.5*\anguloi)}\pgfmathsetmacro{\pyn}{\r*sin(0.5*\anguloi)}
Click to download: toroidal-polyhedron.tex • toroidal-polyhedron.pdf
Open in Overleaf: toroidal-polyhedron.tex
See more on the author page of Efraín Soto Apolinar.