POV-Ray : Newsgroups : povray.general : Looking for a formula : Re: Looking for a formula Server Time
29 Jul 2024 10:32:22 EDT (-0400)
  Re: Looking for a formula  
From: scott
Date: 15 Feb 2013 02:59:47
Message: <511deaf3$1@news.povray.org>
> It might be even easier, no V_Perp_To_Vector or Point_At_Trans needed : Let the
> trace's initial 'position' (its "shoot-from" point) be the beginning point of
> one line (call that the 1st line); then make a small-diameter cylinder for the
> 2nd line; then shoot a single trace ray toward the 1st line's end point (which
> would be trace's "trace direction.") Voila! Trace will either hit the 2nd-line
> cylinder and return its position, or it will not (and return <0,0,0> for the
> normal--in which case, the two lines don't actually intersect.)

That's exactly what I suggested in my post :-) Sorry if it wasn't clear.


Post a reply to this message

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