Creating a Bezier's path

Hi guys,

I need to create an algorithm to draw a Bezier’s path like 3DS Max does.

I tried with glMap1f() but I didn’t find the way to get the position of a point. Is it possible to get the position of a point using evaluators?

So I decided to create the algorithm from scratch using the parametric form of the cubic Bezier’s curve but when I try to create many copies of an object throughout it but the objects positions are not equidistant.

Can someone give me a link to an algorithm or some idea to get the distribution of the objects throughout the curve equidistant?

Thank you very much.

The magic search-words are “ark length parameterization”. See e.g. http://www.saccade.com/writing/graphics/RE-PARAM.PDF