I would like to be able to draw tikz pictures that generalize the following one:
\documentclass{standalone}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw (0,0) to (1,0);
\foreach \n in {.1,.2,...,.9} \draw (\n,0) to (\n,.1);
\end{tikzpicture}
\end{document}
The result of the above code is a horizontal line with short "hairs" growing off one side, perpendicular to the curve. I want to achieve this effect but for curves that bend in customized ways, for example by specifying a number of points they pass through along with in and out angles at each one. In that case, I can't just repeat the above strategy, since the exact endpoints of the hairs are determined in a complicated way by the points and in/out angles used to define the curve. Any ideas?