Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer 1

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.

share|improve this answer
    
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. –  Todd Lehman Nov 29 '13 at 8:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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