POV-Ray : Newsgroups : povray.advanced-users : A macro I'm proud of I think (public Beta) : Re: A macro I'm proud of I think (public Beta) Server Time
30 Jul 2024 00:28:58 EDT (-0400)
  Re: A macro I'm proud of I think (public Beta)  
From: Tor Olav Kristensen
Date: 4 May 2001 14:06:35
Message: <3AF2EF5D.1193AEE@hotmail.com>
Dan Johnson wrote:
>...
> Having written my own version I have a fairly comprehensive test scene.  I
> decided to replace my macro with your macro in the scene, and see what
> happens.  Immediately it got a user error directive.  I commented out all
> the function calls, but the first, and it still happened.  Now I knew that
> the very first function call was getting an error.  I did the math by hand,
> and found out that the value of STP should be -4 not 0.  I dug further, and
> found out that the value of vN was <0,0,0>.  This shouldn't be, now I am
> very confused.  Here is the test scene maybe you can make sense of it.
>....


Your macro below has an error.

>....
> #macro ThreePointPlane(P1,P2,P3)
>         FourPointPlane(P1,P2,P2,<0,0,0>)
> #end
>....

You're not using P3. (P2 is written twice.)

I'm in a hurry right now, so I don't have 
time for more testing or to try and explain.
Maybe later ...

But if you're going to do further tests,
then I'm interested in hearing about your
results.


-- 
Best regards,

Tor Olav

mailto:tor### [at] hotmailcom
http://hjem.sol.no/t-o-k/tokpicts.html
http://www.crosswinds.net/~tok


Post a reply to this message

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