2
$\begingroup$

I want to divide a cubic bezier curve, with 4 points, start, end and 2 control points, into segments that are not bigger then a certain distance. So, am looking for a computationally quick way to approximate the arc length of curve.

$\endgroup$
2
$\begingroup$

Use subdivision and stop recursion when the line segment joining the two endpoints is small enough. Not the same thing as arc length, but will probably be good enough.

If you want to approximate the arc length of a Bézier curve, see my answer in this question.

$\endgroup$
  • $\begingroup$ Instead of looking at the sub-segment length, you could look at the curvature of the sub-Bezier and stop recursion when the curvature is below some threshold. A couple simple dot-product operations and square roots are needed to check the cosines of the angles involved. $\endgroup$ – Todd Lehman Nov 29 '13 at 8:12
  • $\begingroup$ It is not a very good method. The curve can be long, while the start and the end are at the same point. i.imgur.com/oma5APk.png $\endgroup$ – Ivan Kuckir Jul 17 '16 at 12:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.