POV-Ray : Newsgroups : povray.newusers : problem with splines and sphere_sweep Server Time
4 Nov 2024 17:37:11 EST (-0500)
  problem with splines and sphere_sweep (Message 1 to 3 of 3)  
From: Ed Mann
Subject: problem with splines and sphere_sweep
Date: 21 Dec 2004 20:30:00
Message: <web.41c8cdaaa10ca6393028a1b20@news.povray.org>
I've got the following problem: when i create a sphere sweep like this

sphere_sweep {
    linear_spline
    4,
    <0, height, 0>, 0.05,
    <0, height+1, 0>, 0.05,
    <0, height+2, 0>, 0.05,
    <0, height+3, 0>, 0.05
}

the produced body looks as it should be. But when i use b_spline (or
cubic_spline) it is cut off in y-direction, so that effectively it looks
like:

sphere_sweep {
    linear_spline
    4,
    <0, height+2, 0>, 0.05,
    <0, height+2, 0>, 0.05,
    <0, height+2, 0>, 0.05,
    <0, height+3, 0>, 0.05
}


Post a reply to this message

From: Neil Kolban
Subject: Re: problem with splines and sphere_sweep
Date: 21 Dec 2004 20:38:18
Message: <41c8d00a$1@news.povray.org>
Ed,
I am a newbie here too but my understanding is that with the b_spline, there
are points before and after the ones that you want "visible" that direct the
shapes entry and exit from the scene.

Have a look at the following web page:
http://www.cse.unsw.edu.au/~lambert/splines/Bspline.html

You will notice that points '0' and '3' don't "show" in the curve but have a
strong effect on how the curve starts and ends.

Neil

"Ed Mann" <nomail@nomail> wrote in message
news:web.41c8cdaaa10ca6393028a1b20@news.povray.org...
> I've got the following problem: when i create a sphere sweep like this
>
> sphere_sweep {
>     linear_spline
>     4,
>     <0, height, 0>, 0.05,
>     <0, height+1, 0>, 0.05,
>     <0, height+2, 0>, 0.05,
>     <0, height+3, 0>, 0.05
> }
>
> the produced body looks as it should be. But when i use b_spline (or
> cubic_spline) it is cut off in y-direction, so that effectively it looks
> like:
>
> sphere_sweep {
>     linear_spline
>     4,
>     <0, height+2, 0>, 0.05,
>     <0, height+2, 0>, 0.05,
>     <0, height+2, 0>, 0.05,
>     <0, height+3, 0>, 0.05
> }
>
>
>
>


Post a reply to this message

From: Ed Mann
Subject: Re: problem with splines and sphere_sweep
Date: 22 Dec 2004 07:10:00
Message: <web.41c9636f424822eab110eaab0@news.povray.org>
"Neil Kolban" <kol### [at] kolbancom> wrote:
> Ed,
> I am a newbie here too but my understanding is that with the b_spline, there
> are points before and after the ones that you want "visible" that direct the
> shapes entry and exit from the scene.
>
> Have a look at the following web page:
> http://www.cse.unsw.edu.au/~lambert/splines/Bspline.html
>
> You will notice that points '0' and '3' don't "show" in the curve but have a
> strong effect on how the curve starts and ends.
>
> Neil

Ah I see. In the meanwhile I had a look at
(http://www.povray.org/documentation/view/3.6.1/63/). Thanks anyway.


Post a reply to this message

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