dodecahedron

Edit and compile if you like:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{patterns}
%\usetikzlibrary{math}
\usepackage{tikz-3dplot}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\setlength\PreviewBorder{0.125pt}
%
% File name: dodecahedron.tex
% Description: 
% A geometric representation of the dodecahedron is shown.
% 
% Date of creation: May, 17th, 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 459 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{70}{110}
%
\begin{tikzpicture}[tdplot_main_coords]
	% Change the value of the number at {\escala}{##} to scale the figure up or down
	\pgfmathsetmacro{\escala}{1.5}
	% Coordinates of the vertices
	\coordinate(1) at (-\escala*1.37638, \escala*0., \escala*0.262866);
	\coordinate(2) at (\escala*1.37638, \escala*0., -\escala*0.262866);
	\coordinate(3) at (-\escala*0.425325, -\escala*1.30902, \escala*0.262866);
	\coordinate(4) at (-\escala*0.425325, \escala*1.30902, \escala*0.262866);
	\coordinate(5) at (\escala*1.11352, -\escala*0.809017, \escala*0.262866);
	\coordinate(6) at (\escala*1.11352, \escala*0.809017, \escala*0.262866);
	\coordinate(7) at (-\escala*0.262866, -\escala*0.809017, \escala*1.11352);
	\coordinate(8) at (-\escala*0.262866, \escala*0.809017, \escala*1.11352);
	\coordinate(9) at (-\escala*0.688191, -\escala*0.5, -\escala*1.11352);
	\coordinate(10) at (-\escala*0.688191, \escala*0.5, -\escala*1.11352);
	%
	\coordinate(11) at (\escala*0.688191, -\escala*0.5, \escala*1.11352);
	\coordinate(12) at (\escala*0.688191, \escala*0.5, \escala*1.11352);
	\coordinate(13) at (\escala*0.850651, \escala*0., -\escala*1.11352);
	\coordinate(14) at (-\escala*1.11352, -\escala*0.809017, -\escala*0.262866);
	\coordinate(15) at (-\escala*1.11352, \escala*0.809017, -\escala*0.262866);
	\coordinate(16) at (-\escala*0.850651, \escala*0., \escala*1.11352);
	\coordinate(17) at (\escala*0.262866, -\escala*0.809017, -\escala*1.11352);
	\coordinate(18) at (\escala*0.262866, \escala*0.809017, -\escala*1.11352);
	\coordinate(19) at (\escala*0.425325, -\escala*1.30902, -\escala*0.262866);
	\coordinate(20) at (\escala*0.425325, \escala*1.30902, -\escala*0.262866);
	% Faces of the dodecahedron
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (2) -- (6) -- (12) -- (11) -- (5) -- (2);
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (5) -- (11) -- (7) -- (3) -- (19) -- (5);
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (11) -- (12) -- (8) -- (16) -- (7) -- (11);
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (12) -- (6) -- (20) -- (4) -- (8) -- (12);
	%
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (6) -- (2) -- (13) -- (18) -- (20) -- (6);
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (2) -- (5) -- (19) -- (17) -- (13) -- (2);
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (4) -- (20) -- (18) -- (10) -- (15) -- (4);
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (18) -- (13) -- (17) -- (9) -- (10) -- (18);
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (17) -- (19) -- (3) -- (14) -- (9) -- (17);
	%
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (3) -- (7) -- (16) -- (1) -- (14) -- (3);
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (16) -- (8) -- (4) -- (15) -- (1) -- (16);
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (15) -- (10) -- (9) -- (14) -- (1) -- (15);
	%
	\end{tikzpicture}
	%
\end{document}




Click to download: dodecahedron.texdodecahedron.pdf
Open in Overleaf:
dodecahedron.tex
See more on the author page of Efraín Soto Apolinar.

Leave a Reply

Your email address will not be published.