Replies: 2 comments
-
@achirita thanks for using JSCAD. And of course, Please feel free to contribute. Just a few suggestions on the pull requests... Keep changes as small as possible as that make reviews easier... Please add a simple test for the changes. By the way, we are looking to add 'arc' to the curves functions. If interested then this would be a nice addition as well. 😃 |
Beta Was this translation helpful? Give feedback.
0 replies
-
New methods for Bezier curves were added to the master branch and will probably be released soon. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm working on a JSCAD project and noticed there are no methods for measuring the length of an Bezier curve as well as a way of getting the value at a specific arc length rather than a time value.
Both of these would be useful in a wide range of projects and I would be happy to contribute a pull request.
Length measurement is a complicated topic but we could use the naïve approach of sampling the curve at multiple points then adding up all the distances. The more points you use the better the accuracy gets. Three.js uses the same approach and much of my code is adapted from there.
If you're interested, let me know.
Beta Was this translation helpful? Give feedback.
All reactions