edge sampling viz

This commit is contained in:
CDaut 2023-06-18 15:09:12 +02:00
parent 257108290e
commit b2be2b6d43
2 changed files with 96 additions and 2 deletions

View file

@ -0,0 +1,90 @@
\begin{minipage}{0.4\linewidth}
\begin{figure}
\begin{tikzpicture}
%tri after movement
\draw[
fill,
kit-green40
] (0,0.3) -- (6,0.3) -- (3,3.3) -- cycle;
%primary tri
\draw[
fill,
kit-green100
] (0,0) -- (6,0) -- (3,3) -- cycle;
%arrow
\draw[
-to,
line width = 1.2pt,
kit-red100
] (3,3) -- (3,4);
% occlusion tri
\draw[
fill,
kit-red100
] (3,2) -- (4.5,0.2) -- (6,3);
% samples
\foreach \x/\y in {
1/0.5,
1/2.5,
3/0.5,
3/2.5,
5/0.5,
5/2.5
}
\node[fill = yellow] at (\x,\y) {};
\end{tikzpicture}
\caption[area sampling]{area sampling}
\end{figure}
\end{minipage}
\hspace{10mm}
\begin{minipage}{0.4\linewidth}
\begin{figure}
\begin{tikzpicture}
%tri after movement
\draw[
fill,
kit-green40
] (0,0.3) -- (6,0.3) -- (3,3.3) -- cycle;
%primary tri
\draw[
fill,
kit-green100
] (0,0) -- (6,0) -- (3,3) -- cycle;
%arrow
\draw[
-to,
line width = 1.2pt,
kit-red100
] (3,3) -- (3,4);
% occlusion tri
\draw[
fill,
kit-red100
] (3,2) -- (4.5,0.2) -- (6,3);
% samples
\foreach \x/\y in {
0.5/0.5,
1.5/1.5,
2.5/2.5,
3.5/2.5,
5.5/0.5
}
\node[fill = yellow] at (\x,\y) {};
\node[
fill = yellow,
fill opacity = 0.4,
] at (4.5,1.5) {};
\end{tikzpicture}
\caption[edge sampling]{edge sampling}
\end{figure}
\end{minipage}

View file

@ -3,13 +3,17 @@
\usepackage{tikz}
\usepackage{calc}
\usepackage{ifthen}
\usetikzlibrary{calc,patterns,angles,quotes,shapes,arrows, positioning,overlay-beamer-styles}
\usetikzlibrary{calc,
patterns,
angles,quotes,shapes,arrows, positioning,overlay-beamer-styles,
arrows.meta}
\begin{document}
\begin{frame}
\input{diagrams/diagramm_occlusion.tex}
\centering
\input{diagrams/edge_sampling.tex}
\end{frame}
\end{document}