POV-Ray : Newsgroups : povray.pov4.discussion.general : Suggest v4.0 f_kappa_2d() function. (yuqk R19 v0.6.13.0) : Re: Suggest v4.0 f_kappa_2d() function. (yuqk R19 v0.6.13.0) Server Time
23 Feb 2025 18:27:37 EST (-0500)
  Re: Suggest v4.0 f_kappa_2d() function. (yuqk R19 v0.6.13.0)  
From: Alain Martel
Date: 23 Feb 2025 10:32:54
Message: <67bb3fa6$1@news.povray.org>
Le 2025-02-23 à 09:07, Bald Eagle a écrit :
> William F Pokorny <ano### [at] anonymousorg> wrote:
> 
>> This a general helper function / technique to match any two curves at
>> their endpoints given you have the means to calculate the first and
>> second derivatives for both curves being glued together at (t).
> 
> Are f' and f" arguments to the function?
> 
>> The function will calculate and return 'k(t)' or the 'radius of
>> curvature' (1.0/k(t)).
>>
>> Attaching images showing on the left k(t), and on the right the 'radius
>> of curvature' at t, as the length of the normal vectors for a
>> f_bezier_2d_cubic() curve.
> 
> That's pretty slick.
> (If you add f'", then you can match RATE of curvature, so that reflections are
> smooth as well.)
> 
> 
> Do you plug f_bezier_2d_cubic() into your function and it calculates the
> derivatives?  Can you plug in, say, Perlin Noise, and have that work?
> 
> You've been busy!  :)
> 
> - BW
> 
f' and f" being first and second derivatives, it's easy to calculate 
them on the fly.

Let say that you have f(x) = 7x^2+-3x+6,
  then, f'(x) = 7x-3,
  and f"(x) = 7


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.