Diminished Hexagonal Trapezohedron

diminished-hexagonal-trapezohedron

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: diminished-hexagonal-trapezohedron.tex
% Description: 
% A geometric representation of the diminished hexagonal trapezohedron is shown.
% 
% Date of creation: July, 07th, 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 481 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}{115}
%
\begin{tikzpicture}[tdplot_main_coords]
	% Change the value of the number at {\escala}{##} to scale the figure up or down
	\pgfmathsetmacro{\escala}{2.0} 
	\pgfmathsetmacro{\r}{\escala}
	\pgfmathsetmacro{\cero}{sqrt(2.0 * (3.0 * sqrt(3.0) - 5.0)) / 4.0}
	\pgfmathsetmacro{\uno}{sqrt(3.0) / 2.0}
	\pgfmathsetmacro{\dos}{sqrt(2.0 * (19.0 + 11.0 * sqrt(3.0))) / 4.0}
	% Coordinates of the vertices
	\coordinate(1) at (\escala*0.0,\escala*0.0,\escala*\dos);
	\coordinate(2) at (\escala*0.0, \escala*0.0, -\escala*\dos);
	\coordinate(3) at (\escala*0.0, \escala*1.0, \escala*\cero);
	\coordinate(4) at (\escala*0.0, -\escala*1.0, \escala*\cero);
	\coordinate(5) at (\escala*1.0, \escala*0.0, -\escala*\cero);
	\coordinate(6) at (-\escala*1.0, \escala*0.0, -\escala*\cero);
	\coordinate(7) at (\escala*\uno, \escala*0.5, \escala*\cero);
	\coordinate(8) at (\escala*\uno, -\escala*0.5, \escala*\cero);
	\coordinate(9) at (-\escala*\uno, \escala*0.5, \escala*\cero);
	\coordinate(10) at (-\escala*\uno, -\escala*0.5, \escala*\cero);
	%
	\coordinate(11) at (\escala*0.5, \escala*\uno, -\escala*\cero);
	\coordinate(12) at (\escala*0.5, -\escala*\uno, -\escala*\cero);
	\coordinate(13) at (-\escala*0.5, \escala*\uno, -\escala*\cero);
	\coordinate(14) at (-\escala*0.5, -\escala*\uno, -\escala*\cero);		
	% Faces of the polyhedron
	% Hexagonal face
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (13) -- (11) -- (5) -- (12) -- (14) -- (6) -- cycle;
	% Triangular faces (back)
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (12) -- (4) -- (14) -- cycle;
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (14) -- (10) -- (6) -- cycle;
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (6) -- (9) -- (13) -- cycle;	
	% Deltoids (back)
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (1) -- (9) -- (6) -- (10) -- cycle;
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (1) -- (10) -- (14) -- (4) -- cycle;
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (1) -- (3) -- (13) -- (9) -- cycle;
	% More deltoids (front)
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (1) -- (4) -- (12) -- (8) -- cycle;
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (1) -- (8) -- (5) -- (7) -- cycle;
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (1) -- (7) -- (11) -- (3) -- cycle;
	% More triangular faces (front)
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (3) -- (11) -- (13) -- cycle;
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (11) -- (7) -- (5) -- cycle;
	\draw[red,thick,fill=cyan!35,opacity=0.75]  (5) -- (8) -- (12) -- cycle;
	%
	\end{tikzpicture}
	%
\end{document}




Click to download: diminished-hexagonal-trapezohedron.texdiminished-hexagonal-trapezohedron.pdf
Open in Overleaf:
diminished-hexagonal-trapezohedron.tex
See more on the author page of Efraín Soto Apolinar.

Leave a Reply

Your email address will not be published.