aboutsummaryrefslogtreecommitdiff
path: root/commands.tex
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-01-12 16:19:35 +0100
committerAdrian Kummerlaender2019-01-12 16:19:35 +0100
commitaa5d1ffe9b61a4c56a1f9b9a45216915affccd7e (patch)
tree1fa8ba533c2e92a0f303e5cdb828d208efdd32e9 /commands.tex
parente55d46b41a82268f6d2bfb4cec09765638ab0690 (diff)
downloadgrid_refinement_bsc_thesis-aa5d1ffe9b61a4c56a1f9b9a45216915affccd7e.tar
grid_refinement_bsc_thesis-aa5d1ffe9b61a4c56a1f9b9a45216915affccd7e.tar.gz
grid_refinement_bsc_thesis-aa5d1ffe9b61a4c56a1f9b9a45216915affccd7e.tar.bz2
grid_refinement_bsc_thesis-aa5d1ffe9b61a4c56a1f9b9a45216915affccd7e.tar.lz
grid_refinement_bsc_thesis-aa5d1ffe9b61a4c56a1f9b9a45216915affccd7e.tar.xz
grid_refinement_bsc_thesis-aa5d1ffe9b61a4c56a1f9b9a45216915affccd7e.tar.zst
grid_refinement_bsc_thesis-aa5d1ffe9b61a4c56a1f9b9a45216915affccd7e.zip
Expand, visualize simulation domain definition
Diffstat (limited to 'commands.tex')
-rw-r--r--commands.tex15
1 files changed, 13 insertions, 2 deletions
diff --git a/commands.tex b/commands.tex
index 283a8a8..74c60c5 100644
--- a/commands.tex
+++ b/commands.tex
@@ -30,5 +30,16 @@
\newcommand{\V}[2]{\ensuremath{\begin{pmatrix}#1\\#2\end{pmatrix}}}
\newenvironment{rcases}{\left.\begin{aligned}}{\end{aligned}\right\rbrace}
-%\renewcommand{\labelenumii}{\theenumii}
-%\renewcommand{\theenumii}{\theenumi.\arabic{enumii}.}
+% See: https://tex.stackexchange.com/questions/108140/draw-3d-rectangle
+\makeatletter
+\tikzoption{canvas is xy plane at z}[]{%
+ \def\tikz@plane@origin{\pgfpointxyz{0}{0}{#1}}%
+ \def\tikz@plane@x{\pgfpointxyz{1}{0}{#1}}%
+ \def\tikz@plane@y{\pgfpointxyz{0}{1}{#1}}%
+ \tikz@canvas@is@plane
+}
+\makeatother
+
+\tikzset{xyp/.style={canvas is xy plane at z=#1}}
+\tikzset{xzp/.style={canvas is xz plane at y=#1}}
+\tikzset{yzp/.style={canvas is yz plane at x=#1}}