POV-Ray : Newsgroups : povray.binaries.images : A prism doodle : Re: A prism doodle Server Time
30 Jul 2024 02:13:48 EDT (-0400)
  Re: A prism doodle  
From: clipka
Date: 17 Feb 2013 15:18:11
Message: <51213b03$1@news.povray.org>
Am 17.02.2013 20:57, schrieb Christian Froeschlin:

> nice design! I didn't know you could have overlapping parts
> in the prism geometry ... are these treated as "outside"?

Yup.

The algorithm behind it is actually pretty simple: To test whether point 
X is inside the prism, a line is drawn "outward"; if that line crosses 
the prism's outline an odd number of times the point is considered 
inside, otherwise it is outside.


Post a reply to this message

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