I need to a scheme like this one:
The problem is, I have no idea how to do the dashed line on top of rectangle and the hatching in the left side and in the bottom.
Is it possible with Tikz?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityHere is a starting point for you. Start to modify it to your needs and if you run into problems, edit your question and comment under this answer, so I get a notification. Then I am going to help you further:
\documentclass[tikz, border=2mm]{standalone}
\usetikzlibrary{patterns}
%
\begin{document}
%
\begin{tikzpicture}
%
\pattern[pattern=north east lines] (0,0)--(0,1)--(1,1)--(1,0)--cycle;
\draw[dashed] (0,2) -- (1,2);
%
\end{tikzpicture}%
%
\end{document}
This could be a good starting point.
\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{patterns, decorations.pathreplacing, calc}
\begin{document}
\renewcommand{\b}{10}
\newcommand{\h}{5}
\renewcommand{\t}{.5}
\begin{tikzpicture}
\coordinate (O) at (0,0);
\coordinate (E) at (\b,0);
\coordinate (En) at (\b,\t);
\coordinate (One) at (\t,\t);
\coordinate (Ne) at (\t,\h);
\coordinate (N) at (0,\h);
\coordinate (NE) at (N -| E);
\draw[thick, pattern=north east lines] (O) -- (E) -- (En) -- (One) -- (Ne) -- (N) -- cycle;
\draw[thick] (En) -- (NE);
\draw[dashed] (Ne) -- (NE);
\draw[thick, decorate, decoration={brace, raise=20pt}] (NE) -- (E) node[midway, right=30pt] {text};
\draw[thick, decorate, decoration={brace, raise=20pt, mirror}] (O) -- (E) node[midway, below=30pt] {text};
\end{tikzpicture}
\end{document}
Another starting point
\documentclass[tikz,border=2mm]{standalone}
\usetikzlibrary{patterns}
\begin{document}
\begin{tikzpicture}
\draw[pattern=north west lines] (0,0)-|(3,.5)-|(0.5,2)-|cycle;
\draw[dashed] (0,2)--(3,2);
\draw (3,0)--(3,2);
\end{tikzpicture}
\end{document}
\usetikzlibrary{patterns}
. Then you create a path with\pattern[pattern=north west lines] (x1,y1) -- (x2,y2) ... -- cycle
which gets filled with the hatching. The dashed lines you simply create with\draw[dashed] (x1,y1) -- (x2,y2) -- ...
Here (x,y) are the coordinates of the corners. Just try it and when you run into problems, edit your question to the specific problem.