ixmilia / dxf

MIT License
205 stars 65 forks source link

How to calculate spline length? #197

Closed erdn0 closed 1 year ago

erdn0 commented 1 year ago

Hello everyone, im struggling while trying to find the length of a spline that will be inputted by the user. How can I achieve it?

brettfo commented 1 year ago

Calculating spline length is outside the scope of this repo (and frankly, beyond my mathematical ability), but I've found a good explanation of Bezier curves, which are a type of spline, here. You'll specifically want to look at the sections "Arc length" and "Approximated arc length".

erdn0 commented 1 year ago

i'll check it out, thanks!