POV-Ray : Newsgroups : povray.advanced-users : Speaking of Mathematics : Re: Speaking of Mathematics Server Time
28 Jul 2024 16:24:26 EDT (-0400)
  Re: Speaking of Mathematics  
From: Captain Chemistry
Date: 7 Dec 2004 17:50:00
Message: <web.41b632af864be4ea2d4ac62a0@news.povray.org>
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


Post a reply to this message

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