Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
GuillaumeLaplante-Anfossi
GitHub Repository: GuillaumeLaplante-Anfossi/Poissons
Path: blob/main/Talk GDRIM/diag2ter.tex
1016 views
1
\documentclass[border=2pt]{standalone}
2
\usepackage{tikz}
3
\usetikzlibrary{positioning, fit, shapes, arrows, calc}
4
5
\pgfdeclarelayer{bg} % declare background layer
6
\pgfsetlayers{bg,main} % set the order of the layers (main is the standard layer)
7
8
\newcommand{\coula}{0785F2}
9
\newcommand{\coulb}{F29F05}
10
\newcommand{\coulc}{F21313}
11
\newcommand{\could}{E6F21F}
12
13
14
15
\definecolor{part1}{HTML}{\coula}
16
\definecolor{part2}{HTML}{\coulb}
17
\definecolor{part3}{HTML}{\coulc}
18
\definecolor{part4}{HTML}{\could}
19
20
\begin{document}
21
\begin{tikzpicture}[very thick]
22
\coordinate (A) at (0:2);
23
\coordinate (B) at (60:2);
24
\coordinate (C) at (120:2);
25
\coordinate (D) at (180:2);
26
\coordinate (E) at (-120:2);
27
\coordinate (F) at (-60:2);
28
\draw[part1] ($3*(A)$)--($3*(D)$);
29
\draw[part2] ($3*(B)$)--($3*(E)$);
30
\draw[part4] ($3*(C)$)--($3*(F)$);
31
\draw (30:2.309)--(90:2.309)--(150:2.309)--(210:2.309)--(-90:2.309)--(-30:2.309)--cycle;
32
\begin{scope}[yshift = -4.618cm]
33
\coordinate (Ab) at (0:2);
34
\coordinate (Bb) at (60:2);
35
\coordinate (Cb) at (120:2);
36
\coordinate (Db) at (180:2);
37
\coordinate (Eb) at (-120:2);
38
\coordinate (Fb) at (-60:2);
39
\draw[part1] ($3*(Ab)$)--($3*(Db)$);
40
\draw[part2] ($3*(Bb)$)--($3*(Eb)$);
41
\draw[part4] ($3*(Cb)$)--($3*(Fb)$);
42
\draw (30:2.309)--(90:2.309)--(150:2.309)--(210:2.309)--(-90:2.309)--(-30:2.309)--cycle;
43
44
\end{scope}
45
46
%\coordinate (Ag1) at ($(A)+(C)+(D)$);
47
%\coordinate (Ag2) at ($(A)+(C)$);
48
%\coordinate (B) at ($2*(C)+(E)$);
49
%\coordinate (Bg1) at ($(C)+(B)$);
50
%\coordinate (Bg2) at ($(C)+(B)+(E)$);
51
%\coordinate (G) at ($2*(F)+(D)$);
52
%\coordinate (Gg1) at ($(G)+(F)$);
53
%\coordinate (Gg2) at ($(G)+(F)+(D)$);
54
%\coordinate (H) at ($2*(F)+(E)$);
55
%\coordinate (Hg1) at ($(H)+(F)+(E)$);
56
%\coordinate (Hg2) at ($(H)+(F)$);
57
%\coordinate (F1) at ($3*(E)+2*(C)$);
58
%\coordinate (F2) at ($3*(E)+2*(F)$);
59
%\coordinate (F3) at ($3*(D)+2*(C)$);
60
%\coordinate (F4) at ($3*(D)+2*(F)$);
61
%\coordinate (123123) at ($2*(E)$);
62
%\coordinate (123132) at ($(C)+1.5*(E)$);
63
%\coordinate (123213) at ($(F)+1.5*(E)$);
64
%\coordinate (123231) at ($(F)+0.5*(E)$);
65
%\coordinate (123312) at ($(C)+0.5*(E)$);
66
%\coordinate (123321) at (0,0);
67
%\coordinate (132132) at ($(B)+(C)+0.5*(E)$);
68
%\coordinate (132321) at ($(C)+0.5*(D)$);
69
%\coordinate (132312) at ($2*(C)$);
70
%\coordinate (213213) at ($(H)+0.5*(E)+(F)$);
71
%\coordinate (213231) at ($2*(F)$);
72
%\coordinate (213321) at ($(F)+0.5*(D)$);
73
%\coordinate (231231) at ($(G)+0.5*(D)+(F)$);
74
%\coordinate (231321) at ($1.5*(D)+(F)$);
75
%\coordinate (312312) at ($(A)+(C)+0.5*(D)$);
76
%\coordinate (312321) at ($(C)+1.5*(D)$);
77
%\coordinate (321321) at ($2*(D)$);
78
%\draw[part1] (Ag2)--(Gg1);
79
%%\draw[blue] (Bg1)--(Hg2);
80
%\draw[part2] (Bg2)--(F4);
81
%%\draw[red] (F1)--(Gg2);
82
%%\draw[green] (Ag1)--(F2);
83
%\draw[part4] (F3)--(Hg1);
84
%%\draw (123123)--(123132)--(123312)--(123321)--(123231)--(123213)--cycle;
85
%%\draw (123132)--(123312)--(132312)--(132132)--(123132);
86
%%\draw (123312)--(123321)--(132321)--(132312)--cycle;
87
%\draw (132312)--(132321)--(312321)--(312312)--cycle;
88
%\draw (123213)--(213213)--(213231)--(123231)--cycle;
89
%\draw (123321)--(123231)--(213231)--(213321)--cycle;
90
%\draw (213321)--(213231)--(231231)--(231321)--cycle;
91
%\draw (123321)--(132321)--(312321)--(321321)--(231321)--(213321)--cycle;
92
93
\end{tikzpicture}
94
95
\end{document}
96
97