[ home ] [ math / cs / ai / phy / as / chem / bio / geo ] [ civ / aero / mech / ee / hdl / os / dev / web / app / sys / net / sec ] [ med / fin / psy / soc / his / lit / lin / phi / arch ] [ off / vg / jp / 2hu / tc / ts / adv / hr / meta / tex ] [ chat ] [ wiki ]

Viewing source code

The following is the source code for post >>>/test/37

\documentclass{article}
\usepackage{xcolor}
\usepackage{tikz}
\usetikzlibrary{scopes}
\begin{document}
\begin{tikzpicture}[line width=1.1pt]
    \draw(0,0) circle(5cm);
    \draw(0,0) circle(1cm);
    \draw(0,0) node {\Huge$\mathbf{A}$};
    \draw(0,0) circle(4.5cm);
    \draw(-48:2.5) arc(-48:240:2.5cm);
    %% The outer nodes
    \foreach \x in {36,72,...,360}
    	\shade[ball color=black](\x:5) circle(4pt);
    \foreach \nodes in {12,24,...,360}
    	\shade[ball color=black](\nodes:3.5) circle(4pt);
    %%% The connecting nodes
    \foreach \angle in {-48,-12,...,240}
    	\draw(\angle:2.5) --++(\angle:0.9cm);
    %%% outer interconnects
    \foreach \angle in {-24,12,...,306}
    	\draw(\angle:3.6) --++(\angle:0.9cm);
    \foreach \y in {-24,12,...,240}
    	\shade[ball color=black](\y:4.5cm) circle(4pt);

    %% outer most connections
    \foreach \angle in{-36,0,...,306}
    	\draw(\angle:4.9cm) --(\angle:4.7cm) [rotate=\angle]arc(0:180:0.20cm);
    \foreach \angle in{-36,0,...,306}
    	\draw(\angle:4.3cm) --(\angle:3.6cm);
    %% Outer connects and leads
    \shade[ball color=black](276:6) circle(4pt);
    \draw(276:6)circle(4pt)--(276:5.2)[rotate=276]arc(0:180:0.25cm);
    \draw(276:7)node {$\mathbf{K_0}$};
    \draw(276:4.2)[rotate=276]arc(180:360:0.25cm);
    \draw(276:4.2)--(276:3.5);

    %% Exploitation of circular symmetry of the required figure

    {[rotate=72]
    	\shade[ball color=black](276:6) circle(4pt);
    	\draw(276:6)circle(4pt)--(276:5.2)[rotate=276]arc(0:180:0.25cm);
    	\draw(270:6)node {$\mathbf{K_1-K_9}$};
    	\draw(276:4.2)[rotate=276]arc(180:360:0.25cm);%%%
    	\draw(276:4.2)--(276:3.5);
    }

    {[rotate=-48]
    	\shade[ball color=black](276:6) circle(4pt);
    	\draw(276:6)circle(4pt)--(276:5.2)[rotate=276]arc(0:180:0.20cm);
    	\draw(276:7)node {$\mathbf{g_2}$};
    	\draw(276:4.8)--(276:4.5);
    }

    \draw(180:5)--(180:6);
    \shade[ball color=black](180:6) circle(4pt);
    \draw(180:6.5)node{$\mathbf{g_1}$};
\end{tikzpicture}
\end{document}