POV-Ray : Newsgroups : povray.general : How to get spline tangent : Re: How to get spline tangent Server Time
19 Nov 2024 13:39:17 EST (-0500)
  Re: How to get spline tangent  
From: Warp
Date: 21 Feb 2002 09:35:23
Message: <3c7505ab@news.povray.org>
Grey Knight <s16### [at] namtarqubacuk> wrote:
: Actually, since splines are nice and smooth (after all, that's what
: they're there for!), if you make sure vlength(T) is very small (say
: 1e-10 for example), then this method should give you a very good
: approximation to the tangent; easily good enough for any purpose I can
: think of anyway.

  Beware of possible floating point inaccuracies with such small numbers.

-- 
#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.