I need to divide an edge into a number of equal parts. I have the following way to do this for straight edges:
\begin{tikzpicture}
[very thick, transform shape, scale=.2,
rect/.style={rectangle, }
]
\node[rect, fill = red,minimum width =.005cm, minimum height = 1cm] (1) at (20,0) {};
\node[rect, fill = red,minimum width =.005cm, minimum height = 1cm] (2) at (0,0) {};
\node[rect, fill = red, minimum width =.005cm, minimum height = 1cm ](3) at (5,0) {};
\node[rect, fill = red, minimum width =.005cm, minimum height = 1cm ](4) at (10,0) {};
\node[rect, fill = red, minimum width =.005cm, minimum height = 1cm ](5) at (15,0) {};
\path[-]
(1) edge[bend left = 0, red] node {} (2)
;
\end{tikzpicture}
Which results in this:
I want to do a similar thing for an edge that is curved. My issue is that I can't think of an easy way to find the coordinates of equal line segments of a curved edge, and then rotate each node so that it is perpendicular to the edge.
I was hoping to find a way where it is not necessary to define the coordinates of the edge dividers, or the rotation of the dividers, is this possible?
If not does anyone know where I can find information on the Bezier curves used in tikz as I can try to code a program to calculate the locations and slope of the curve at those points.
This is how I usually define curved edges fyi:
\begin{tikzpicture}
[very thick, transform shape, scale=.2,
rect/.style={rectangle, }
]
\node[rect, rotate=90,fill = red,minimum width =.005cm, minimum height = 1cm] (1) at (20,0) {};
\node[rect, rotate=90, fill = red,minimum width =.005cm, minimum height = 1cm] (2) at (0,0) {};
\node[rect, fill = red, minimum width =.005cm, minimum height = 1cm ](3) at (5,0) {};
\node[rect, fill = red, minimum width =.005cm, minimum height = 1cm ](4) at (10,0) {};
\node[rect, fill = red, minimum width =.005cm, minimum height = 1cm ](5) at (15,0) {};
\path[-]
(1) edge[bend left = -90, red] node {} (2)
;
\end{tikzpicture}
Which gives:



