-
-
Notifications
You must be signed in to change notification settings - Fork 289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choosing e1
and e2
#326
Comments
The base line is the line between start and end. As for (2) and the followup question: draw it out to understand it. Take a cubic curve, place all its control points on a line, equally spaced, so for instance start=(0,0), c1=(1,0), c2=(2,0), end=(3,0). This is still a Bezier curve, but it draws a line. Now, compute and draw points for t=0, t=1/3, t=2/3, and t=1 on that curve: what's special about their where they ended up? (or use the sketch in https://pomax.github.io/bezierinfo/#splitting with the points four grid spaces apart each, if you don't want to draw it by hand, of course) |
I am not sure I get it. What I see is that they stay on the line and that they are always 4 grid space apart. Is that what I should have come to? Still don't understand why setting t = 0t = 1/3t == 2/3t = 1 |
Good start, now, do the same thing but move the control points up one grid spot, so you can see the construction skeleton, and set t to 0.5. Now what do you notice about where e1 and e2 are? |
right, so now we know why "one third of the baseline" is at least a good approach: it matches how cubic curves already work, and we see that in the "linear" curve, where e1 is the same coordinate as C1, and e2 is also the same coordinate as C2. |
more clear now @Pomax thanks, but not totally. Maybe by compare & contrast I'll get it. Can you please give me an example of another reasonable approach to choose the length of the segment |
I can't because it depends entirely on your own aesthetic choices and the needs of your users, and what you consider "a good looking curve". You work backwards: you have three points, what curve would you draw through that? Cool, now what cubic curve parameters go with that? The 1/3rd length is merely the simplest, basic-curve-property-associated approach that yields reasonable curves, but maybe you want e1/e2 to change depending on the distance and angle of B with respect to start/end, there are as many ways to come up with e1/e2 as there are curves to fit through three points, so it really is a matter of "this is the part that is up to you". |
ok, got it. I'll so some experiments, thanks! |
Section 31
Totally lost here :) @Pomax can you please elaborate more or in a different way?
The text was updated successfully, but these errors were encountered: