|
|
I want that function, too, but for a different purpose. If I could
calculate the distance from a 2D-point in space to the nearest point on a
bezier spline, I would be drawing rivers and streams in landscapes. I
suspect the math would be rather egregious, though.
"D. H. Berlin" <wee### [at] PoVStefaniede> wrote in message
news:web.41427fd3c601232d88e4a61c0@news.povray.org...
> Hi!
>
> I don't have to much knowledge about the math I need. So I hope my
> explanation what I want to achieve is right.
>
> I want to use a curve-function (f.e. a cubic-bezier) which is defined
> through points laying in the x,y-plane (2D-curve) in a function for a
> texture. Where the curve runs, the function should give back 1 and it
> should have a fallof described through a factor f (fallof maybe like when
> using an airbrush) so the function gives back 0 when the texture-point to
> be calculated is away f.e. 0.01 povray-units.
>
> If 1 povray-unit would be 1 meter, this function should draw a texture
which
> would be a line defined by the points of the bezier-curve and a fallof to
0
> in a distance of 0.01 units to both side of the curve.
>
> The goal would be, that one could just draw text using a bezier-curve for
a
> letter in a program, export the points, and by just putting the point-list
> in to the povray-function could use the drawn-text as texture.
>
> I hope it's not do difficult.
>
> Greetings
> Dieter
>
>
Post a reply to this message
|
|