Mentions légales du service

Skip to content
Snippets Groups Projects
Commit ceb10524 authored by Olivier COULAUD's avatar Olivier COULAUD
Browse files

no message

parent aad40224
No related branches found
No related tags found
No related merge requests found
No preview for this file type
\documentclass{minimal}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{tikz}
\usetikzlibrary{trees}
\tikzstyle{coordaxis}=[draw=red!50!black, thick, ->]
\tikzstyle{mapping}=[draw=blue!50!black, thick, ->]
\tikzstyle{connect}=[draw=green!50!black, thick, ->]
\newcommand{\sR}{\mathbb{R}}
\begin{document}
% grow=down,
% every node/.style={draw, circle, thin},
% edge from parent/.style={-latex, thick, draw}
\begin{tikzpicture}[scale=0.6]
\begin{tikzpicture}
[level distance=4cm,
level 1/.style={sibling distance=5cm},
level 2/.style={sibling distance=1.4cm},
level 3/.style={sibling distance=0.4cm},
every node/.style={draw, circle, thin}
]
\node (P) {Root}
child {node (C1) {Q}
child {node (C1A) {T}
child {node (C1A1) {T}}
child {node (C1A2) {U}}
child {node (C1A2) {T}}
child {node (C1A4) {U}}
}
child {node (C1B) {U}
child {node (C1B1) {T}}
child {node (C1B2) {U}}
child {node (C1B2) {T}}
child {node (C1B4) {U}}
}
child {node (C1C) {T}}
child {node (C1D) {U}}
}
child {node (C2) {R}
child {node (C2A) {T}}
child {node (C2B) {U}}
child {node (C2C) {T}}
child {node (C2D) {U}}
}
child {node (C3) {S}}
% child {node (C4) {$C^1_4$}
child {node (C4) {$C^1_4$}
child {node (T) {}
child {node (TT) {}
child {node (TTT) {}
}
}
}
child {node (U) {}}
};
\draw[fill=blue!20] (0,8) rectangle +(8,8);
\draw[fill=blue!20] (8,0) rectangle +(8,8);
\draw[fill=blue!20] (0,0) rectangle +(4,4);
\draw[fill=blue!20] (12,12) rectangle +(4,4);
\path (P) -- coordinate[midway] (PQ) (C1);
\path (P) -- coordinate[midway] (PR) (C2);
\draw[fill=brown!50] (4,0) rectangle +(4,4);
\draw[fill=brown!50] (0,4) rectangle +(4,4);
\draw[fill=brown!50] (4,4) rectangle +(4,4);
\draw[fill=brown!50] (8,8) rectangle +(4,4);
\draw[fill=brown!50] (8,12) rectangle +(4,4);
\draw[fill=brown!50] (12,8) rectangle +(4,4);
%Draw the initial octree
\draw[step = 8] (0,0) grid (16,16);
\draw[step = 4] (8,8) grid(16,16);
\draw[step = 4] (0,8) grid(8,16);
\draw[step = 2] (0,4) grid(4,8);
\draw[step = 2] (4,4) grid (8,8);
\draw[step = 2] (4,0) grid (8,4);
\draw[step = 1] (2,4) grid (4,8);
\draw[step = 1] (0,6) grid (2,8);
\draw[step = 0.5] (2,6) grid (3,7);
\draw (PQ) to[bend right=22] (PR);
\draw[step = 2] (8,8) grid(12,16);
\draw[step = 2] (12,8) grid (16,12);
\draw[step = 1] (12,8) grid (14,12);
\draw[step = 1] (14,8) grid (16,10);
\draw[step = 0.5] (13,9) grid (14,10);
\end{tikzpicture}
%sibling distance=2cm,
\begin{tikzpicture}[level distance=1.5cm, grow=down,
every node/.style={draw, circle, thin},
......@@ -84,7 +82,7 @@ level 1/.style={sibling distance=5cm},
}
}
}
% child {node (C2) {}}
child {node (C2) {}}
% child {node (C3) {}}
child {node [fill=blue, text=white] (C4) {$j$}
child {node (T) {}
......@@ -103,4 +101,22 @@ level 1/.style={sibling distance=5cm},
%\draw (PQ) to[bend right=22] (PR);
\end{tikzpicture}
\begin{tikzpicture}
[level distance=30mm, %level/.style={sibling distance=36mm/#1}]
every node/.style={draw, circle, thin},
% edge from parent/.style={-latex, thick, draw},
level 1/.style={sibling distance=12cm},
level 2/.style={sibling distance=30mm},
level 3/.style={sibling distance=7mm},
scale=0.5, rotate=90 ]
\coordinate
child foreach \x in {0,1,2,3} {node{}
{child foreach \y in {0,1,2,3} {node{}
{child foreach \z in {0,1,2,3} {node{}}} }}};
\end{tikzpicture}
\begin{tikzpicture}
%\node {root} child [red] foreach \name in {1,2} {node {\name}}
\end{tikzpicture}
\end{document}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment