POV-Ray : Newsgroups : povray.programming : POV-Ray source code development thread : Re: POV-Ray source code development thread Server Time
20 Oct 2025 12:57:49 EDT (-0400)
  Re: POV-Ray source code development thread  
From: Bald Eagle
Date: 17 Oct 2025 14:10:00
Message: <web.68f286262ef98f628f1ef7f525979125@news.povray.org>
"Bald Eagle" <cre### [at] netscapenet> wrote:

> I'll likely now be poring over the line/ray-cylinder intersection articles.
>
> (Since it is directly related to sor spline bounding, but also there seems to be
> issue with correctly rendering cylinders with an essentially unbounded endpoint)

Desmos 3d Graph
All vector math, no algebraic solver needed!

https://www.desmos.com/3d/c795aacwsb

(Just click on the orange surface icon on (at present) line 14 to toggle the
cylinder and see the vectors)

"A benefit of this geometric approach to the ray-cylinder intersection is that
it deals directly in object-space coordinates.  This avoids the overhead of
transforming either the rays and/or the bounded cylinder into a canonical form
for testing."

Will work on adding the end cap intersections and surface normals.

Enjoy,

- BE


Post a reply to this message


Attachments:
Download 'screenshot 2025-10-17 140817.png' (64 KB)

Preview of image 'screenshot 2025-10-17 140817.png'
screenshot 2025-10-17 140817.png


 

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