Thursday, July 11, 2019

interpolation - Points evenly spaced along a bezier curve


I have looked around for a while and I can't find a solution to this problem. Let's say I have a cubic bezier curve (defined by 4 points) and I want to get a set of points that are spaced evenly along the curve. Think of placing a text along a curve for an example.


Now the problem is that if I input t (interpolation value from 0-1) with a constant increment the points are not evenly spaced. The distance along the curve is smaller when the curve makes a turn and longer when the curve is straight.


So how do I place points evenly along a bezier curve?



Answer



Well it has been some time...


But I was finally able to solve this problem!


Everything you need is in this post: Moving ships between two planets along a bezier, missing some equations for acceleration



No comments:

Post a Comment

Simple past, Present perfect Past perfect

Can you tell me which form of the following sentences is the correct one please? Imagine two friends discussing the gym... I was in a good s...