-
Notifications
You must be signed in to change notification settings - Fork 0
/
geometric_features.tex
46 lines (36 loc) · 1.4 KB
/
geometric_features.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
\documentclass[tikz, border=7pt]{standalone}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{fourier}
\usepackage{xcolor}
\definecolor{wheat}{RGB}{245,222,179}
\definecolor{darkgreen}{RGB}{0, 155, 85}
\usepackage{standalone}
\usepackage{pgfplots}
\usepackage{tikz}
\usetikzlibrary{shapes, arrows, shadows, calc, decorations}
\usepackage{mathrsfs, amsmath}
\pgfplotsset{compat=1.14}
\begin{document}
\begin{tikzpicture}
\node (facet_graph) {\includestandalone[mode=buildnew, height=4cm]{building_graph}};
\path (facet_graph) + (-.2, -1) node (f) {\small $f$};
\path (facet_graph) + (2, -.8) node (g) {\small $g$};
\path (f) + (-2, -1) node[darkgreen] (facet_attributes) {\tiny
$\begin{bmatrix}
Degree(f)\\
Area(f)\\
Circumference(f)
\end{bmatrix}$
};
\path (f) + (1.5, -1.5) node[blue] (edge_attributes) {\tiny
$\begin{bmatrix}
\vert\vert Centroid(f)- Centroid(g) \vert\vert_2\\
\arccos(\vec{n}(f) . \vec{n}(g))
\end{bmatrix}$
};
\path[draw, ->, line width=1pt, rounded corners=10pt] (f.185) -- (facet_attributes.north);
\path (edge_attributes.north |- f.east) + (-.25, .4) node (edge) {};
\path[draw, ->, line width=1pt, rounded corners=10pt] (edge) -- (edge |- edge_attributes.north);
\end{tikzpicture}
\end{document}