POV-Ray : Newsgroups : povray.general : FindKnee macro : Re: FindKnee macro Server Time
8 Aug 2024 08:15:13 EDT (-0400)
  Re: FindKnee macro  
From: Ron Parker
Date: 31 Jan 2001 15:25:10
Message: <slrn97gt5d.2le.ron.parker@fwi.com>
On Wed, 31 Jan 2001 19:16:17 -0000, Mick Hazelgrove wrote:
>Hi All
>
>Has any body got a copy of th FIndKnee macro. I can connect to John's site I
>keep getting the following  message;

I don't get that message, so perhaps your browser isn't sending a 
referer: header.  Here ya go:

#macro FindKnee(pA,pH,lT,lS,vD)
  #local lB=vlength(pA-(pH));
#if( (lB>lT+lS) | (lT>lB+lS) | (lS>lT+lB) )
#error "Invalid span lengths.\n"
#end
  #local tX=(lT*lT-lS*lS+lB*lB)/2/lB;
  #local tY=sqrt(lT*lT-tX*tX);
  #local vO=vnormalize(pA-(pH));
  #local vF=vnormalize(vcross(vD,vO));
  #local vU=vnormalize(vcross(vO,vF));
  (pH+vO*tX+vU*tY)
#end




-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

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