POV-Ray : Newsgroups : povray.advanced-users : Speaking of Mathematics : Re: Speaking of Mathematics Server Time
28 Jul 2024 16:17:39 EDT (-0400)
  Re: Speaking of Mathematics  
From: Mike Raiford
Date: 8 Dec 2004 08:06:33
Message: <41b6fc59$1@news.povray.org>
Captain Chemistry wrote:
> Mike Raiford <mra### [at] hotmailcom> wrote:
> 
>>The macro did work for me, except one small problem: there's a "twist"
>>at one part in the spline that doesn't seem to make sense.
> 
> 
> 
> I belive the twist occurs because the Reorient_Trans macro uses cross
> products to get perpendicular vectors for it's new axes and there are
> always two solutions that are perpendicular to any two vectors - one going
> one way, and one going in exactly the opposite direction.
> 
> For some evil reason the macro chose the cross product vector in the
> opposite direction - I have had this problem before too.
> 
> The only way I overcame it (but not the only way to fix the problem) was
> that I designed the shape (or spline or whatever) to be fixed in one axis
> (kind of).
> 
> For example, I made sure the shape never crossed the positive z axis and
> stayed in the negative z axis area. I believe the direction changed when I
> crossed the z axis.
> 
> What I have said does not give a solution to the problem but I hope it give
> some insight into why the problem is occurring.
> 
> Nathan

That makes sense. The point where I'm seeing the twist is right where it 
would cross +/- Z.

-- 
~Mike


Post a reply to this message

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