POV-Ray : Newsgroups : povray.newusers : trace direction : Re: trace direction Server Time
29 Jul 2024 16:19:24 EDT (-0400)
  Re: trace direction  
From: Mike Williams
Date: 21 Jun 2005 12:13:35
Message: <zEJvODAgyDuCFw0Q@econym.demon.co.uk>
Wasn't it Jim Charter who wrote:
>I have any point, A
>I have a second point B
>
>I want to use the trace() function such that I want to intersect a 
>surface between A and B, travelling From A to B.
>
>So, is this correct?
>
>#local Surface = some object;
>#local Start = A;
>#local Dir = B-A;
>#local Norm = <0,0,0>;
>
>#local Pos = trace(Surface,Start,Dir,Norm);

Yes.

Don't foreget to check to see if Norm isn't <0,0,0> if there's any
possibility of missing the Surface.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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