POV-Ray : Newsgroups : povray.binaries.images : spline "ribbon" Server Time
14 Aug 2024 18:05:41 EDT (-0400)
  spline "ribbon" (Message 1 to 5 of 5)  
From: david sharp
Subject: spline "ribbon"
Date: 8 Sep 2002 22:18:20
Message: <3d7c04ec@news.povray.org>
Trying to get POV 3.5 spline object to behave.


Post a reply to this message


Attachments:
Download 'sprib.jpg' (27 KB)

Preview of image 'sprib.jpg'
sprib.jpg


 

From: Batronyx
Subject: Re: spline "ribbon"
Date: 8 Sep 2002 23:08:40
Message: <3d7c10b8@news.povray.org>
"david sharp" <dav### [at] rcncom> wrote in message
news:3d7c04ec@news.povray.org...
> Trying to get POV 3.5 spline object to behave.

Looks like a decent start on a roller coaster. :)


--
light_source{0,1}#macro c(J,a)sphere{0,1pigment{rgb z}scale a translate J+O}
#end#macro B(R,V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+
10)c(0<7.5,45,5>)}}#end B(12,0z*25)B(8y*4<0,12,50>)          // Batronyx ^"^


Post a reply to this message

From: Marc Jacquier
Subject: Re: spline "ribbon"
Date: 9 Sep 2002 06:01:44
Message: <3d7c7188@news.povray.org>

3d7c10b8@news.povray.org...
> "david sharp" <dav### [at] rcncom> wrote in message
> news:3d7c04ec@news.povray.org...
> > Trying to get POV 3.5 spline object to behave.
>
> Looks like a decent start on a roller coaster. :)
>
>
You won't see me on this one though :c)
Marc


Post a reply to this message

From: Ryan Mooney
Subject: Re: spline "ribbon"
Date: 11 Sep 2002 00:09:11
Message: <3D7EC1EB.DCE63E65@earthlink.net>
Source... Or clues...??

david sharp wrote:

> Trying to get POV 3.5 spline object to behave.
>
>  [Image]


Post a reply to this message

From: david sharp
Subject: Re: spline "ribbon"
Date: 11 Sep 2002 11:40:31
Message: <3d7f63ef@news.povray.org>
"Ryan Mooney" <rdm### [at] earthlinknet> wrote
> Source... Or clues...??

Once you have the spline points, calculate the direction the spline curve
is heading at each point (its tangent) and call that 'forward', calculate
the
direction the spline curve is curving towards (from the rate of change of
the tangent) and call that 'left'.  Do vcross(forward,left) and call that
'up'.
I just assume that the ribbon should always try to span the up direction.
(That is, the width of the ribbon should be perpendicular to the curvature).
Then make two spline curves; one moved 'up' from the original spline
and the other moved 'down' from the original. The 'ribbon' (or track, or
whatever) fills in the space between the up curve and the down curve.

I will work on the source to post.


Post a reply to this message

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