Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Length of Spline #372

Answered by haplokuon
Pietervdwest asked this question in Q&A
Discussion options

You must be logged in to vote

There is no formula to calculate exactly the length of a NURBS curve. With the available methods you have at the moment you can calculate it using brute force, discretizing the spline into a set of segments, with the desired precision, using the ToPolygonVertexes method and add up their lengths which will always be a lower bound of the actual spline length. If you dig up perhaps you may find a smarter, more optimized solution.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by haplokuon
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants