POV-Ray : Newsgroups : povray.binaries.images : Trefoil experiment : Re: Trefoil experiment Server Time
5 Nov 2024 00:24:25 EST (-0500)
  Re: Trefoil experiment  
From: Bill Pragnell
Date: 15 Dec 2005 05:55:01
Message: <web.43a14b1384bdc257731f01d10@news.povray.org>
"Charles C" <nomail@nomail> wrote:
> I'm curious about your approach.  Is your macro one that is supposed to
> create a spline that doesn't have different distances or is your macro
> meant to evenly interpolate an arbitrary spline?  Or am I off the mark
> altogether and there is no spline? :D
Well, it's probably technically a spline, but I haven't adhered to any
particular set of formulae beyond the parametric knot function (the centre
column is a sphere_sweep). The knot function, although evenly-spaced in b
(0 > b > 2*pi), bunches component objects up on the curves in x,y,z just as
any trig function would (think point-plot of sin(x)). My macro tries to
evenly space them by inching along the path in very small increments of b
until the cumulative distance reaches a preset, whereupon I place a
component object and start again. It's probably a numerical line integral,
thinking about it... :)

I think the slight bunching effect still apparent is caused by the stairs
pointing inwards on the inside of the curves; the ends on the knot path are
evenly spaced, but the opposite ends are pushed together by the curve. This
effect can be minimised by shortening the width of the stair object, but I
may have to put up with it!

> PS. pun intended.
Consider it groaned! :)

Bill


Post a reply to this message

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