POV-Ray : Newsgroups : povray.general : Getting a normal from trace() : Re: Getting a normal from trace() Server Time
29 Jul 2024 16:28:00 EDT (-0400)
  Re: Getting a normal from trace()  
From: Stephen
Date: 27 Jan 2011 18:32:58
Message: <4d4200aa$1@news.povray.org>
On 27/01/2011 11:04 PM, StephenS wrote:
> From: \scene\language\trace2.pov
> Add: #include "transforms.inc" // at the top of the scene
> about line 64
>
>      //cylinder {iPt, iPt + iNorm*PinHeight, 0.01}
>      cylinder {0,<0,PinHeight,0>, 0.01
>       Reorient_Trans(<0,1,0>, iNorm)
>       translate iPt   //<iPt.x,iPt.y,iPt.z>
>      }
>
> I have replaced the original cylinder{} with one defined at the origin and
> rotated to match the normal, then translated into place.
>
> Is this what you where looking for?

Thanks Stephen, I looked at that scene but missed "Reorient_Trans".


-- 
Regards
     Stephen


Post a reply to this message

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