I am trying to create fraction diagrams for children using TikZ.
Is there an elegant way to fix the top of this diagram of 1/2 in a way that will scale when I want to show, say 29/6 with triangles... and eventually other shapes? It seems that intersections of paths that meet at non-90 degree angles don't quite intersect the way I want them to...

\documentclass{article}
\usepackage{tikz}
\usepackage{xcolor}
\begin{document}
\(\frac{1}{2}\)
\begin{tikzpicture}
\filldraw[fill=gray, draw=black, thick] (0,0)--(1,0)--(1,2)--cycle;
\draw[thick] (1,0)--(2,0)--(1,2)--cycle;
\end{tikzpicture}
\end{document}



\drawstarts a new path. – cfr Aug 03 '15 at 21:57other shapes as well. That changes the question very significantly and renders an extremely complete and sophisticated answer a merely partial one addressing only a special case. Do you really think that is fair? I would recommend undoing the edit, seriously considering accepting the clearly best answer and asking a new question if needed specifying which shapes. – cfr Aug 04 '15 at 01:30\drawcommands join more nicely for my fraction diagrams. I happened to use triangles as the one example shape because examples on this forum, I thought, are supposed to be minimal. I edited the original post because the pictures caused this thread to come across as way too triangle-focused, as opposed to path-joining-for-all-types-of-fraction-diagrams focused. Sorry for misleading anyone here; I greatly appreciate your responses! Next time I'll make sure my examples are broader more diverse. – WeCanLearnAnything Aug 04 '15 at 01:52\drawcommands? – WeCanLearnAnything Aug 04 '15 at 02:05