Path: blob/main/Talk GDRIM/diagTer.tex
1016 views
%author : berenice delcroix-oger12\documentclass[border=2pt]{standalone}3\usepackage{tikz}4\usetikzlibrary{positioning, fit, shapes, arrows, calc}56\pgfdeclarelayer{bg} % declare background layer7\pgfsetlayers{bg,main} % set the order of the layers (main is the standard layer)89\newcommand{\coula}{0785F2}10\newcommand{\coulb}{F29F05}11\newcommand{\coulc}{F21313}12\newcommand{\could}{E6F21F}13141516\definecolor{part1}{HTML}{\coula}17\definecolor{part2}{HTML}{\coulb}18\definecolor{part3}{HTML}{\coulc}19\definecolor{part4}{HTML}{\could}2021\begin{document}22\begin{tikzpicture}23\coordinate (A) at (30:2);24\coordinate (B) at (90:2);25\coordinate (C) at (150:2);26\coordinate (D) at (-150:2);27\coordinate (E) at (-90:2);28\coordinate (F) at (-30:2);29\coordinate (G) at (0,0);30\coordinate (AB) at ($0.5*(A)+0.5*(B)$);31\coordinate (BC) at ($0.5*(B)+0.5*(C)$);32\coordinate (DE) at ($0.5*(E)+0.5*(D)$);33\coordinate (EF) at ($0.5*(E)+0.5*(F)$);34\coordinate (AF) at ($0.5*(A)+0.5*(F)$);35\coordinate (CD) at ($0.5*(D)+0.5*(C)$);36\coordinate (xa) at ($(AB)+(E)$);37\coordinate (xb) at ($(BC)+(E)$);38\coordinate (xc) at ($(DE)+(B)$);39\coordinate (xd) at ($(EF)+(B)$);40\draw (A)--(B)--(C)--(D)--(E)--(F)--cycle;41\draw (AB)--(B)--(BC)--(xc)--(G)--(xd)--cycle;42\draw (G)--(xb)--(DE)--(E)--(EF)--(xa)--cycle;43\draw (AF)--(xd)--(G)--(xa)--cycle;44\draw (CD)--(xc)--(G)--(xb)--cycle;45\draw[part1, very thick] ($0.5*(A)+0.5*(AF)+0.5*(1,0)$)--($0.5*(A)+0.5*(AF)$)--($0.5*(AB)+0.5*(xd)$)--(90:1)--($0.5*(BC)+0.5*(xc)$)--($0.5*(C)+0.5*(CD)$)--($0.5*(C)+0.5*(CD)+0.5*(-1,0)$);46\draw[blue, very thick] ($0.5*(F)+0.5*(AF)+0.5*(1,0)$)--($0.5*(F)+0.5*(AF)$)--($0.5*(EF)+0.5*(xa)$)--(-90:1)--($0.5*(DE)+0.5*(xb)$)--($0.5*(D)+0.5*(CD)$)--($0.5*(D)+0.5*(CD)+0.5*(-1,0)$);47\draw[part2, very thick] ($0.5*(AB)+0.5*(B)+0.5*(60:1)$)--($0.5*(AB)+0.5*(B)$)--(90:1)--($0.5*(G)+0.5*(xc)$)--($0.5*(xb)+0.5*(CD)$)--($0.5*(D)+0.5*(DE)$)--($0.5*(D)+0.5*(DE)+0.5*(0,-1)$);48\draw[red, very thick] ($0.5*(DE)+0.5*(E)+0.5*(-120:1)$)--($0.5*(DE)+0.5*(E)$)--(-90:1)--($0.5*(G)+0.5*(xa)$)--($0.5*(xd)+0.5*(AF)$)--($0.5*(A)+0.5*(AB)$)--($0.5*(A)+0.5*(AB)+0.5*(0,1)$);49\draw[green, very thick] ($0.5*(EF)+0.5*(E)+0.5*(-60:1)$)--($0.5*(EF)+0.5*(E)$)--(-90:1)--($0.5*(G)+0.5*(xb)$)--($0.5*(xc)+0.5*(CD)$)--($0.5*(C)+0.5*(BC)$)--($0.5*(C)+0.5*(BC)+0.5*(0,1)$);50\draw[part4, very thick] ($0.5*(BC)+0.5*(B)+0.5*(120:1)$)--($0.5*(BC)+0.5*(B)$)--(90:1)--($0.5*(G)+0.5*(xd)$)--($0.5*(xa)+0.5*(AF)$)--($0.5*(F)+0.5*(EF)$)--($0.5*(F)+0.5*(EF)+0.5*(0,-1)$);515253\end{tikzpicture}5455\end{document}565758