Earlier quoted context omitted.
Thanks! Actually it wasn't too difficult. It's all in C++ but the Adobe Illustrator SDK came with some examples that were pretty close to what I wanted already. Once I'd figured out the maths I had a prototype working in about a day. The one thing left that I can't figure out is how to have the curvature comb update live as you drag the Bezier control points. Currently it only updates when you mouse up.
Does it run on multiple platforms, or only OSX?
Drawing better-looking Bézier curves
21–30 of 45 posts
Re: Drawing better-looking Bézier curves
#22Spiro Curves are a nice alternative: http://www.levien.com/spiro/
Re: Drawing better-looking Bézier curves
#23http://wiki.povray.org/uploaded/5/5e/LeForgeronXSplines-10.1...
Confusingly, there seem to be other splines called "X-splines" that appear to be completely unrelated, where the X seems to refer to the varying degree of the spline instead of just cubic.
Re: Drawing better-looking Bézier curves
#24Re: Drawing better-looking Bézier curves
#25Are the sliders working for you?
Re: Drawing better-looking Bézier curves
#26Re: Drawing better-looking Bézier curves
#27Re: Drawing better-looking Bézier curves
#28Hello :) I'm the author of this notebook if you have any questions. I'm also currently working on a plugin for Adobe Illustrator based on this. Screenshot: https://i.imgur.com/tIPTjLsr.png
Re: Drawing better-looking Bézier curves
#29Hello :) I'm the author of this notebook if you have any questions. I'm also currently working on a plugin for Adobe Illustrator based on this. Screenshot: https://i.imgur.com/tIPTjLsr.png
May I ask how you made the notebook interactive? Is this based on a jupyter notebook?
Re: Drawing better-looking Bézier curves
#30I'm wondering how well one could define curves by using the physical model of a strip of material, and allowing one to change the properties (stiffness) of the material at different points along the curve, or to insert more material at a given point. Of course, there should be the usual constraints that the strip should pass through a bunch of given (x,y) coordinates, and there could be constraint that "pins" the str…
It's really interesting if you look at how CAD handles this stuff. It lets you set the degree of curvature-continuity/smoothness you want—and it kind of takes care of filling in the curve for you. You have to give up some direct control over the curve if you need it to meet these constraints. Here's what different degrees of curvature continuity look like: http://help.autodesk.com/cloudhelp/2017/ENU/Alias-Tutorials/.…