edge sampling section for handout
This commit is contained in:
parent
2bf100bf94
commit
b182bfcd07
6 changed files with 150 additions and 9 deletions
37
handout/diagrams/area_sampling.tex
Normal file
37
handout/diagrams/area_sampling.tex
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
\begin{tikzpicture}[scale = 0.6, every node/.style={scale=0.6}]
|
||||
%tri after movement
|
||||
\draw[
|
||||
fill,
|
||||
lightgray
|
||||
] (-0.3,0) -- (6.3,0) -- (3,3.3) -- cycle;
|
||||
|
||||
%primary tri
|
||||
\draw[
|
||||
fill,
|
||||
gray
|
||||
] (0,0) -- (6,0) -- (3,3) -- cycle;
|
||||
|
||||
%arrow
|
||||
\draw[
|
||||
-to,
|
||||
line width = 1.2pt,
|
||||
black
|
||||
] (3,3) -- (3,4);
|
||||
|
||||
% occlusion tri
|
||||
\draw[
|
||||
fill,
|
||||
red
|
||||
] (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}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
\begin{tikzpicture}
|
||||
\begin{tikzpicture}[scale = 0.9, every node/.style={scale=0.9}]
|
||||
|
||||
\def\raynum{60}
|
||||
|
||||
|
|
@ -7,7 +7,7 @@
|
|||
{
|
||||
\draw[color = darkgray] (\x /\raynum * 6 ,0) -- (3,4);
|
||||
}{
|
||||
\draw[color = cyan] (\x /\raynum * 6 ,0) -- (3,4);
|
||||
\draw[color = red] (\x /\raynum * 6 ,0) -- (3,4);
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
|
||||
\draw [color=darkgray] (0,0) -- node[below]{wall} (6,0) ; % wall
|
||||
\draw [color=cyan](1.5,1) -- node[below]{blocker} (4.5,1); %blocker
|
||||
\draw [color=red](1.5,1) -- node[below]{blocker} (4.5,1); %blocker
|
||||
|
||||
%cam
|
||||
\node[
|
||||
|
|
@ -37,11 +37,11 @@
|
|||
|
||||
|
||||
\fill[
|
||||
cyan
|
||||
red
|
||||
] (5,3) -- (6.7,3) -- (6.7,3.3) -- (5,3.3) -- cycle;
|
||||
|
||||
\draw[darkgray] (8,2) coordinate (darkgray_ray_isec) -- (5,5) coordinate (orig);
|
||||
\draw[cyan] (6.4,3.3) coordinate (cyan_ray_isec) -- (5,5);
|
||||
\draw[red] (6.4,3.3) coordinate (red_ray_isec) -- (5,5);
|
||||
|
||||
%line
|
||||
\draw (mag.north east) -- (7,2);
|
||||
|
|
@ -57,6 +57,6 @@
|
|||
angle eccentricity=1,
|
||||
pic text options={shift={(3mm,3mm)}}
|
||||
]
|
||||
{angle = cyan_ray_isec--orig--darkgray_ray_isec};
|
||||
{angle = red_ray_isec--orig--darkgray_ray_isec};
|
||||
|
||||
\end{tikzpicture}
|
||||
|
|
|
|||
42
handout/diagrams/edge_sampling.tex
Normal file
42
handout/diagrams/edge_sampling.tex
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
\begin{tikzpicture}[scale = 0.6, every node/.style={scale=0.6}]
|
||||
|
||||
%tri after movement
|
||||
\draw[
|
||||
fill,
|
||||
lightgray
|
||||
] (-0.3,0) -- (6.3,0) -- (3,3.3) -- cycle;
|
||||
|
||||
%primary tri
|
||||
\draw[
|
||||
fill,
|
||||
gray
|
||||
] (0,0) -- (6,0) -- (3,3) -- cycle;
|
||||
|
||||
%arrow
|
||||
\draw[
|
||||
-to,
|
||||
line width = 1.2pt,
|
||||
black
|
||||
] (3,3) -- (3,4);
|
||||
|
||||
% occlusion tri
|
||||
\draw[
|
||||
fill,
|
||||
red
|
||||
] (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}
|
||||
34
handout/diagrams/halfspaces.tex
Normal file
34
handout/diagrams/halfspaces.tex
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
\begin{tikzpicture}[scale = 0.6, every node/.style={scale=0.8}]
|
||||
\draw[
|
||||
fill,
|
||||
lightgray
|
||||
] (-2,0) -- (3,0) -- (-0.5,-6) -- (-2,-6) -- cycle;
|
||||
|
||||
|
||||
\draw[
|
||||
fill,
|
||||
red
|
||||
] (-2, -3) -- (-2,-4) -- (2,-6) -- (4.3,-6) -- (4.3,-4) -- cycle;
|
||||
|
||||
\draw[
|
||||
-to,
|
||||
line width = 1.5pt,
|
||||
] (3,-1) -- (4.3,-1);
|
||||
|
||||
\draw[
|
||||
fill,
|
||||
blue
|
||||
] (1.7,-2) circle (15pt);
|
||||
|
||||
\draw[
|
||||
fill,
|
||||
blue
|
||||
] (0.4,-4.2) circle (15pt);
|
||||
|
||||
\node (fu) at (1.4,-1) {\LARGE $f_u$ $(+)$};
|
||||
|
||||
\node (fl) at (2.4,-3) {\LARGE $f_l$ $(-)$};
|
||||
|
||||
\node (nocontrin) at (2,-4.5) {\LARGE $f_u=f_l$};
|
||||
|
||||
\end{tikzpicture}
|
||||
Loading…
Add table
Add a link
Reference in a new issue