POV-Ray : Newsgroups : povray.beta-test : Filling in T values in splines : Re: Filling in T values in splines Server Time
30 Jul 2024 04:14:11 EDT (-0400)
  Re: Filling in T values in splines  
From: Warp
Date: 24 Feb 2002 11:02:48
Message: <3c790ea8@news.povray.org>
Rune <run### [at] mobilixnetdk> wrote:
> Do you mean evenly distributed T values or evenly distributed points of the
> spline.

  I meant evenly distributed T values (ie. just interpolate them between
0 and 1).

  (Of course a more advanced option could make the macro to interpolate
the T values non-linearly.)

  As for evenly-distributed points along the spline, I think that the only
feasible way of doing that is to make a macro which returns points for the
given spline (in the same way as the Colefax include does). Of course this
will make it a bit slow (because it has to approximate by sampling points on
the spline).

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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