-
Notifications
You must be signed in to change notification settings - Fork 0
/
building_errors.tex
40 lines (35 loc) · 1.58 KB
/
building_errors.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
\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}}
\tikzset{error/.style={line width=3pt}}
\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=0]
\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=0]
\path[face,shade] (0,0) rectangle (2,3);
\end{scope}
\begin{scope}[canvas is zy plane at x=3]
\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=4]
\path[face] (0,0) rectangle (2,3);
\end{scope}
\path[face] (0,0,2) -- (0,1.75,2.5) -- (3,0,2) -- cycle;
\path[face] (3,0,2) -- (0,1.75,2.5) -- (3,2.5,2.75) -- cycle;
\path[face] (0,4,2) -- (3,2.5,2.75) -- (0,1.75,2.5) -- cycle;
\path[face] (0,4,2) -- (3,2.5,2.75) -- (3,4,2) -- cycle;
\path[error, red] (0,1.75,2.5) edge node[midway,below,align=center] {} (3,2.5,2.75);
\path[error, blue] (3,0,2) edge node[above,align=left] {} (0,1.75,2.5);
\path[error, blue] (0,4,2) edge node[below,align=right] {} (3,2.5,2.75);
\end{tikzpicture}
\end{document}