Hello,
I’m new to the svgwrite library and I wanted to know if it’s possible to draw small shapes at regular intervals along a path (like a bezier or a spline) in such a way that they’re aligned with the local direction of the curve.

Here’s an example of what I’m trying to accomplish (sorry for the poor quality of the drawing)

Alternatively, are there any ways of generating an svg that achieves this? I see that svgwrite is basically a wrapper around the native svg representation, and it’s very difficult to do what I described with it

Later I realized that my idea will not probably help you much. It requires that you generate the boundary points already at regular intervals on the final curve…

You will probably need to compute the Bézier curve yourself and split it at the regular intervals. This splitting has to be solved using approximation: