POV-Ray : Newsgroups : povray.general : help with splines : Re: help with splines Server Time
30 Apr 2024 12:11:16 EDT (-0400)
  Re: help with splines  
From: Tor Olav Kristensen
Date: 11 Dec 2010 08:00:01
Message: <web.4d0374a3464c1137c734aecd0@news.povray.org>
"yoyodunno" <nomail@nomail> wrote:
> Warp <war### [at] tagpovrayorg> wrote:
>
> > but the most common approach to this is to approach the problem iteratively.
> > In other words, when you want a point on the spline which is at a distance
> > x from the beginning of the spline, you sample points on the spline,
> > approximate their distance from the beginning, and then use something
> > like binary partitioning to get a point arbitrarily close to the actual point
> > you are searching.
> >
> >   IIRC Colefax's spline macro utility had such a functionality built-in
> > (but it's not related to the splines in POV-Ray 3.6).
> >
> > --
> >                                                           - Warp
>
> How do I sample points along the spline? Is there some command to get a point on
> the spline or something? Also I have no idea what binary partitioning is, but
> I'll look it up.

The spline macro that Warp mentioned above can now be found here:

http://povrayinclude.wytraven.com/spline/index.html

--
Tor Olav
http://subcube.com


Post a reply to this message

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