2

Hi!I have two questions about my current paper. Sorry for my poor hand drawing.

  1. How can I fill an Arbitrary part (Red area with A)?
  2. I want to draw some lines from the buttom curve of filled Area A than stop at Line CD. I think intersect command should be used. But I don't know how to do it.

Thanks for helping me.

enter image description here

    \usepackage{tikz-dimline,wasysym}%dimensional lines
    \begin{figure}
    \centering
    \caption{Caption}
    \begin{tikzpicture}
    \coordinate (origin) at (0,0);
    \coordinate (A) at (135:2);
    \coordinate (B) at (-45:2);
    \coordinate (C) at (-70:2);
    \coordinate (D) at (-110:2);
    \draw (C)--++(0,0.5) coordinate (E);
    \draw (D)--++(0,0.5) coordinate (F);
    \draw (E)--node[below] {shoe} (F);
    \draw (origin) circle [radius=2cm];
    \draw [<->,thick](B)--node[below] {D} (A);
    \draw (C)--++(-45:0.5) coordinate (G);
    \draw (D)--++(-45:0.5) coordinate (H);
    \draw (G)--(H);
    \draw (-80:2)--++(-45:0.5);
    \draw (-90:2)--++(-45:0.5);
    \draw (-100:2)--++(-45:0.5);
    \dimline[line style = {line width=0.7,
    arrows=dimline reverse-dimline reverse},extension start 
    length=0.14,extension end length=0.14,label style={above}] {(E)}{(F)} 
    {ABC};
    \label{fig:my_label}
    \end{tikzpicture}
    \end{figure}
AndréC
  • 24,137
Yuchi
  • 63

1 Answers1

3

Here is a proposal. I took the liberty to replace your 45 degree lines by a pattern.

\documentclass[tikz,border=3.14mm]{standalone}
\usepackage{tikz-dimline}%dimensional lines
\makeatletter % https://tex.stackexchange.com/a/127045/121799
\tikzset{use path/.code=\tikz@addmode{\pgfsyssoftpath@setcurrentpath#1}}
\makeatother
\usetikzlibrary{backgrounds,patterns}
\begin{document}
    \begin{tikzpicture}
    \coordinate (origin) at (0,0);
    \coordinate (A) at (135:2);
    \coordinate (B) at (-45:2);
    \coordinate (C) at (-70:2);
    \coordinate (D) at (-110:2);
    \draw (C)--++(0,0.5) coordinate (E);
    \draw (D)--++(0,0.5) coordinate (F);
    \draw (E)--node[below] {shoe} (F);
    \draw[save path=\Circle] (origin) circle [radius=2cm];
    \draw [<->,thick](B)--node[below] {D} (A);
    \draw (C)--++(-45:0.5) coordinate (G);
    \draw (D)--++(-45:0.5) coordinate (H);
    \draw (G)--(H);
%     \draw (-80:2)--++(-45:0.5);
%     \draw (-90:2)--++(-45:0.5);
%     \draw (-100:2)--++(-45:0.5);
    \dimline[line style = {line width=0.7,
    arrows=dimline reverse-dimline reverse},extension start 
    length=0.14,extension end length=0.14,label style={above}] {(E)}{(F)} 
    {ABC};
    \begin{scope}[on background layer]
    \fill[pattern=north west lines] (C) -- (G) -- (H) -- (D);
    \end{scope}
    \begin{scope}[on background layer]
    \clip [use path=\Circle];
    \fill[red] (E|- 0,-2) rectangle (F);
    \end{scope}
    \end{tikzpicture}
\end{document}

enter image description here