I have the following figure using this code coming from GeoGebra
. For the third figure, I want to shade the area between the semicircle and the segments, but I cannot figure out how to do this.
\documentclass[french,12pt,a4paper,titlepage]{article}
\usepackage{pgfplots}
\pgfplotsset{compat=1.15}
\usepackage{mathrsfs}
\usepackage{marginnote}
\usetikzlibrary{arrows}
\definecolor{qqwuqq}{rgb}{0,0.39215686274509803,0}
\definecolor{zzttqq}{rgb}{0.6,0.2,0}
\definecolor{cqcqcq}{rgb}{0.7529411764705882,0.7529411764705882,0.7529411764705882}
\definecolor{dyrbwq}{rgb}{0.8470588235294118,0.10588235294117647,0.3764705882352941}
\definecolor{xdxdff}{rgb}{0.49019607843137253,0.49019607843137253,1}
\definecolor{ududff}{rgb}{0.30196078431372547,0.30196078431372547,1}
\begin{document}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1cm,y=1cm]
% Grid
\draw [color=cqcqcq,, xstep=1cm,ystep=1cm] (-6,-2) grid (9,4); (11.566219733339873,8.525002520591164);
% Whole circle
\draw [line width=.8pt,color=zzttqq,fill=zzttqq,fill opacity=0.12] (-3,1) circle (2cm);
% Quarter circle
\draw [shift={(3,0)},line width=.8pt,color=zzttqq,fill=zzttqq,fill opacity=0.12] (0,0) -- plot[domain=1.5707963267948966:3.141592653589793,variable=\t]({1*3*cos(\t r)+0*3*sin(\t r)},{0*3*cos(\t r)+1*3*sin(\t r)}) -- cycle ;
% 3e figure
\draw [line width=.8pt,color=zzttqq] (4,1)-- (4,3);
\draw [line width=.8pt,color=zzttqq] (4,3)-- (8,3);
\draw [line width=.8pt,color=zzttqq] (8,3)-- (8,1);
\draw [shift={(6,1)},line width=.8pt,color=zzttqq] plot[domain=0:3.141592653589793,variable=\t]({1*2*cos(\t r)+0*2*sin(\t r)},{0*2*cos(\t r)+1*2*sin(\t r)});
\draw [line width=.8pt,color=zzttqq] (4,1)-- (4,3);
\draw [line width=.8pt,color=zzttqq] (4,3)-- (8,3);
\draw [line width=.8pt,color=zzttqq] (8,3)-- (8,1);
% Vector
\draw [line width=.8pt, latex-latex] (-1,3)-- (0,3);
\draw (-1.,3.8) node[anchor=north west] {$\mathbf{15 \ mm}$};
% Centers
\draw [fill=black] (-3,1) circle (1pt);
\draw[color=black] (-2.8359128474830912,1.271089406461309) node {$C_{1}$};
\draw [fill=black] (3,0) circle (1pt);
\draw[color=black] (3.1,-0.3) node {$C_{2}$};
\draw [fill=black] (6,1) circle (1pt);
\draw[color=black] (5.774154770848989,0.850353117956426) node {$C_{3}$};
\end{tikzpicture}
\end{document}