POV-Ray : Newsgroups : povray.unofficial.patches : Smooth linear splines : Re: Smooth linear splines Server Time
2 Sep 2024 08:18:37 EDT (-0400)
  Re: Smooth linear splines  
From: Chris Huff
Date: 22 Mar 2000 06:29:53
Message: <chrishuff_99-D09D1E.06315822032000@news.povray.org>
In article <38d8387f@news.povray.org>, "Greg M. Johnson" 
<"gregj;-)56590\""@aol.c;-)om> wrote:

> How do I get them?
> 
> The linear spline isn't smooth.

No, it is made of straight line segments. That is the whole point of it 
being "linear". If it was smooth, it wouldn't be a linear spline. :-)


> The cubic_spline looks like an ungainly pita. Why can't the computer
> figure out ways for it to be smooth on either end?

What do you mean? Maybe you would get better results by using more 
points in the spline?


> The #init_spline bombs out if I don't have my numbers "in ascending
> way."

Could you be more specific?
And you might want to try the "other" spline patch included in MegaPOV, 
the one using this kind of syntax:
#declare MySpline = spline {...}

sphere {MySpline(Val), Radius...}

See section "5.9. Splines with clock" in the MegaPOV documentation for 
details. The documentation says "Note: argument/value pairs needn't be 
sorted by argument value.", which I assume is your problem.

-- 
Christopher James Huff - Personal e-mail: chr### [at] yahoocom
TAG(Technical Assistance Group) e-mail: chr### [at] tagpovrayorg
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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