Sujet : Re: improve a spline
De : saitology9 (at) *nospam* gmail.com (saito)
Groupes : comp.lang.tclDate : 13. Jun 2025, 18:44:59
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <102ho2s$3iplm$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 6/13/2025 4:28 AM, Arjen wrote:
This is the character of the Bezier smoothing. If you want a curve with
only a single "bent", you might consider to derive a midpoint from the
two endpoints and draw a smoothed line (-smooth 1) through THREE points.
A possible method:
- Take the vector from point A to point B
- Determine the normal n to that vector (note: choice of direction!)
- Use a fraction of the distance between A and B to calculate the new point:
new point = (A + B)/2 + fraction * distance(A,B) * normal vector
You have a number of choices here :).
Thanks. I will give it a try. And I appreciate your confidence in my geometry chops :-)