POV-Ray : Newsgroups : povray.advanced-users : Spline disambiguation Server Time
19 Apr 2024 04:37:29 EDT (-0400)
  Spline disambiguation (Message 1 to 7 of 7)  
From: Bald Eagle
Subject: Spline disambiguation
Date: 6 Mar 2016 11:35:00
Message: <web.56dc5b683a65c3815e7df57c0@news.povray.org>
So, there are cubic and "natural" splines that can be used independently, and
then there's the bezier spline that seems to only be invoked with lathe and sor.

Is there a true bezier spline that can be used as a regular spline?  Is it the
same as natural spline?  (I would think that given the different name, the
answer is no)


Post a reply to this message

From: Le Forgeron
Subject: Re: Spline disambiguation
Date: 6 Mar 2016 12:10:07
Message: <56dc646f@news.povray.org>
Le 06/03/2016 17:31, Bald Eagle a écrit :
> So, there are cubic and "natural" splines that can be used independently, and
> then there's the bezier spline that seems to only be invoked with lathe and sor.
> 
> Is there a true bezier spline that can be used as a regular spline?  Is it the
> same as natural spline?  (I would think that given the different name, the
> answer is no)

1. Have a look at

https://github.com/LeForgeron/povray/wiki/Splines



2. linear, quadratic and cubic are "regular" splines, of Bézier.

https://en.wikipedia.org/wiki/B%C3%A9zier_curve


So what is your true Bézier spline ?

In lathe, the bezier_spline is made of segments of spline, point 4 of segment N must
be identical to point 1 of segment N+1
but otherwise there is no requirement of continuity of derivative at that point.
Points 2 & 3 of each segments are only control points and are only involved in one
single segment.


Post a reply to this message

From: Alain
Subject: Re: Spline disambiguation
Date: 6 Mar 2016 15:33:47
Message: <56dc942b$1@news.povray.org>

> So, there are cubic and "natural" splines that can be used independently, and
> then there's the bezier spline that seems to only be invoked with lathe and sor.
>
> Is there a true bezier spline that can be used as a regular spline?  Is it the
> same as natural spline?  (I would think that given the different name, the
> answer is no)
>
>
>
>

For the "natural" spline, it looks like it's similar to the cubic 
spline, but continuing up to the first and last point with curve been 
out of controll at those points.


Post a reply to this message

From: clipka
Subject: Re: Spline disambiguation
Date: 6 Mar 2016 16:30:28
Message: <56dca174@news.povray.org>
Am 06.03.2016 um 18:10 schrieb Le_Forgeron:
> Le 06/03/2016 17:31, Bald Eagle a écrit :
>> So, there are cubic and "natural" splines that can be used independently, and
>> then there's the bezier spline that seems to only be invoked with lathe and sor.
>>
>> Is there a true bezier spline that can be used as a regular spline?  Is it the
>> same as natural spline?  (I would think that given the different name, the
>> answer is no)
> 
...
> 
> 2. linear, quadratic and cubic are "regular" splines, of Bézier.
> 
> https://en.wikipedia.org/wiki/B%C3%A9zier_curve

Actually, no -- Bezier splines are a particular sub-type of cubic
splines, not vice versa.

The mathematical terms "linear spline", "quadratic spline" and "cubic
spline" refer to the type of functions that make up the spline's
individual segments, in this case 1st, 2nd and 3rd order polynomials
respectively.

Terms like "natural spline", "Bezier spline" or "Catmull-Rom spline" do
not refer to the type of underlying functions, but to specific schemes
of how these functions are parameterized via a set of control points.


It is true, however, that every possible cubic spline can be represented
as a Bezier spline.


As for POV-Ray's "cubic_spline", that's actually a misnomer insofar as
it's not the only cubic spline supported by POV-Ray;
"catmull_rom_spline" would have been a more accurate name.


Post a reply to this message

From: Bald Eagle
Subject: Re: Spline disambiguation
Date: 6 Mar 2016 16:50:00
Message: <web.56dca4e9b7fce5205e7df57c0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:

So, If I'm interpreting that correctly,

1. the cubic spline is a cubic spline of the CR type.
2. the natural spline is a cubic spline of another.
3. bezier_spline cannot be use in a spline or sphere sweep declaration

Thanks


Post a reply to this message

From: clipka
Subject: Re: Spline disambiguation
Date: 6 Mar 2016 17:20:42
Message: <56dcad3a$1@news.povray.org>
Am 06.03.2016 um 22:45 schrieb Bald Eagle:
> clipka <ano### [at] anonymousorg> wrote:
> 
> So, If I'm interpreting that correctly,
> 
> 1. the cubic spline is a cubic spline of the CR type.
> 2. the natural spline is a cubic spline of another.

That is correct.

> 3. bezier_spline cannot be use in a spline or sphere sweep declaration

That's correct as well. It's an inconsistency, and it's /somewhere/ on
the agenda to be resolved, but at present that's how it is.


Post a reply to this message

From: Bald Eagle
Subject: Re: Spline disambiguation
Date: 6 Mar 2016 18:25:00
Message: <web.56dcbb3db7fce5205e7df57c0@news.povray.org>
clipka <ano### [at] anonymousorg> wrote:

> > 3. bezier_spline cannot be use in a spline or sphere sweep declaration
>
> That's correct as well. It's an inconsistency, and it's /somewhere/ on
> the agenda to be resolved, but at present that's how it is.

Right on.   Not complaining.
Until it's resolved, I always have
http://news.povray.org/web.55fe784eb76273e03fda44f40%40news.povray.org
and
http://www.joshuarenglish.com/cyclopedia/bezier.html

I was just trying to clarify what the status of the splines was.
Thanks


Post a reply to this message

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