-
Notifications
You must be signed in to change notification settings - Fork 0
/
building_graph.tex
59 lines (51 loc) · 2.35 KB
/
building_graph.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
\documentclass[tikz, border=7pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{tikz}
\usepackage{fourier}
\usetikzlibrary{calc, 3d}
\begin{document}
\tikzset{face/.style={fill=lightgray,draw=black,very thin,line join=round,fill opacity=0.8}}
\tikzset{graph_edge/.style={draw=black,ultra thick,dashed}}
\begin{tikzpicture}[x = {(-0.5cm,-0.5cm)},
y = {(0.9659cm,-0.25882cm)},
z = {(0cm,1cm)},
scale = 1,
color = {lightgray}]
\begin{scope}[canvas is zy plane at x=-2]
\path[face,shade] (0,0) -- (2,0) -- (2.5,1.75) -- (2,4) -- (0,4) -- cycle;
\end{scope}
\begin{scope}[canvas is zx plane at y=-2]
\path[face,shade] (0,0) rectangle (2,3);
\end{scope}
\begin{scope}[canvas is xy plane at z=1]
\path[graph_edge] (-2,2) edge (1.5,6);
\path[graph_edge] (4,2) edge (1.5,6);
\path[graph_edge] (4,2) edge (1.5,-2);
\path[graph_edge] (-2,2) edge (1.5,-2);
\end{scope}
\path[graph_edge] (1,4.5,30/12) edge (1.5,6,1);
\path[graph_edge] (1,4.5,30/12) edge (4,2,1);
\path[graph_edge] (1,4.5,30/12) edge (-2,2,1);
\path[graph_edge] (1,4.5,30/12) edge (1.5,2.5,3.25);
\path[graph_edge] (1.5,2.5,3.25) edge (4,2,1);
\path[graph_edge] (1.5,2.5,3.25) edge (-2,2,1);
\path[graph_edge] (1.5,2.5,3.25) edge (2,1.5,3.5);
\path[graph_edge] (2,1.5,3.5) edge (-2,2,1);
\path[graph_edge] (2,1.5,3.5) edge (4,2,1);
\path[graph_edge] (2,1.5,3.5) edge (1,-1,2.25);
\path[graph_edge] (1,-1,2.25) edge (-2,2,1);
\path[graph_edge] (1,-1,2.25) edge (4,2,1);
\path[graph_edge] (1,-1,2.25) edge (1.5,-2,1);
\begin{scope}[canvas is zy plane at x=5]
\path[face] (0,0) -- (2,0) -- (2.75,2.5) -- (2,4) -- (0,4) -- cycle;
\end{scope}
\begin{scope}[canvas is zx plane at y=6]
\path[face] (0,0) rectangle (2,3);
\end{scope}
\path[face] (0,-1,2.5) -- (0,.75,3) -- (3,-1,2.5) -- cycle;
\path[face] (3,0,3) -- (0,1.75,3.5) -- (3,2.5,3.75) -- cycle;
\path[face] (0,4,2.5) -- (3,2.5,3.25) -- (0,1.75,3) -- cycle;
\path[face] (0,5,2.5) -- (3,3.5,3.25) -- (3,5,2.5) -- cycle;
\end{tikzpicture}
\end{document}