POV-Ray : Newsgroups : povray.binaries.images : spline "ribbon" : Re: spline "ribbon" Server Time
14 Aug 2024 20:24:37 EDT (-0400)
  Re: spline "ribbon"  
From: david sharp
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.