|
![](/i/fill.gif) |
"Tor Olav Kristensen" <tor### [at] TOBEREMOVEDgmail com> wrote:
> William F Pokorny <ano### [at] anonymous org> wrote:
> > Perhaps time to add an inbuilt f_bezier_cubic() to yuqk too. :-)
>
> Yes, that would be nice.
>
> Then comes the question if adding f_bezier_quadratic() and f_bezier_quartic()
> also is a good idea.
>
> And then if the various derivative functions of them should be added...
I thought there was already some kind of Bezier spline function - but maybe not
as a proper function. We have that spline in prism {}. Unless we consider
user-defined spline functions "good enough".
Might it not be "easier", more useful, and more general to have a single
Bezier/Bernstein function that takes the number of control points as an
argument, and can just assemble the spline on the fly? Then you wouldn't need
multiple functions.
And aren't the derivatives just other Bezier splines?
I'm just thinking that if it was done that way, people could really begin to
harness the power of these splines without having to ascend the steep learning
curve.
Also having a feature where the user could just switch over to a linear spline
would allow looping through the control points - perhaps to draw out the control
points and polygon - without having to write another whole block of code to do
so.
Degree elevation and reduction would be super sweet to have as well.
And, if you want, I can provide the curvature functions - which are useful for
designing function-driven textures, examining how splines fit together, etc.
Big rabbit hole to go down, but IMHO, in 2025, a computer graphics program
really ought to have an entire in-built Bezier spline library.
- BW
Post a reply to this message
|
![](/i/fill.gif) |