POV-Ray : Newsgroups : povray.binaries.images : YATM : Re: YATM Server Time
1 Aug 2024 22:23:30 EDT (-0400)
  Re: YATM  
From: Chris B
Date: 6 Jun 2008 15:21:51
Message: <48498e4f$1@news.povray.org>
"Kirk Andrews" <kir### [at] tektonartcom> wrote in message 
news:web.484985d0de6841fdb555cae70@news.povray.org...
>> Yes. Keep a running note of the vector that you used to start the 
>> previous
>> circular sweep. Then use the VPerp_Adjust function in math.inc to adjust 
>> it
>> so that it is perpendicular to the direction of the spline for the next
>> step. This avoids suddenly getting a vector that points in completely the
>> opposite direction and should therefore avoid the irritating twisting
>> effect.
>>
>> Regards,
>> Chris B.
>
> Ah!  Thank you.  Works great.  I didn't think to look in math.inc for more
> vector functions.

My pleasure. I remember it took me quite some time a few years ago to 
discover it when I wanted to add some clothing around a limb and I don't 
think I've ever used it for anything else since :o)


Post a reply to this message

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