POV-Ray : Newsgroups : povray.binaries.images : trace function (5K) : Re: trace function (5K) Server Time
19 Aug 2024 18:24:55 EDT (-0400)
  Re: trace function (5K)  
From: David Fontaine
Date: 27 Oct 2000 17:00:09
Message: <39F9EA1C.85044D11@faricy.net>
sacrofts wrote:

> #declare Mycyl = cylinder { <0, -3, 0>,<0,3,0>, 2 }
> #declare Norm = <0, 0, 0>;
> #declare Start = <5,0,0>;
> #declare End = <-5,-3,0>;
> #declare Inter= trace ( Mycyl, Start, End, Norm);

IIRC, the third parameter should be a direction, not a point to shoot towards. Instead
of getting the point where the line form Start to End intersects the cylinder, you're
getting the point for the line Start to (Start+End).

--
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

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