Ciao a tutti. Vorrei adagiare un blocchetto di legno su un piano inclinato. Non capisco perché la mia soluzione non funziona.
`\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{center}
\begin{tikzpicture} [font=\small]
\draw [thick] (0,0) — (4.5,0) — (0,2.59808) — cycle;
\draw [thick] (4.5,0) ++(150:5mm) arc (150:180:5mm);
\node [above] at (3.5,0) {$30°$};
\draw [thick,rounded corners,shift={(2.25+0.25,1.29904+0.25)},rotate =-30] (-0.5,-0.25) rectangle (0.5,0.25);
\end{tikzpicture}
\end{center}
\begin{center}
\begin{tikzpicture} [font=\small]
\draw [thick] (0,0) — (3,0) — (0,3) — cycle;
\draw [thick] (3,0) ++(135:5mm) arc (135:180:5mm);
\node [above] at (2.25,0) {$45°$};
\draw [thick,rounded corners,shift={(1.5+0.25,1.5+0.25)},rotate =-45] (-0.5,-0.25) rectangle (0.5,0.25);
\draw [<->,dashed] (-0.25,-0) — (-0.25,3);
\node
at (-0.25,1.5) {$h$};
\end{tikzpicture}
\end{center}
\end{document}`
Come valore di shift metto la metà delle dimensioni del piano + la metà dello spessore del blocchetto. Perché non funziona? Come correggere?
Ah, se volessi adagiare il blocchetto non a metà del piano, ma un po’ più su?
Grazie anticipate,
Lorenzo