POV-Ray : Newsgroups : povray.beta-test : CSG Issues with disc shape. v38 beta 2. : Re: CSG Issues with disc shape. v38 beta 2. Server Time
2 Oct 2025 22:27:28 EDT (-0400)
  Re: CSG Issues with disc shape. v38 beta 2.  
From: William F Pokorny
Date: 24 Sep 2025 15:07:56
Message: <68d4418c$1@news.povray.org>
On 9/24/25 09:40, Bald Eagle wrote:
> So, I need to question the whole top row.
> I refer to the disc {} in its form with a hole using the mathematically accurate
> term "annulus".

I think the answer to most (all?) of your questions about the disc is 
the inside test is supposed to be equivalent to a plane{}'s inside test 
using the disc{}'s normal.

In yuqk I'm leaning heavily toward changing the disc{} to a patch object 
with an inside test that always returns false. To fix it, I suspect I'd 
have add internal dual cylinder bounding, but cost wise this will be not 
much different than a CSG difference with two cylinders...

FYI. You are correct the issue in v3.8 beta2 is bounding related. 
Attached an image rendered with yuqk using the '-b' flag to turn 
bounding off. The yuqk fork turns bounding 'completely' off with '-b' 
where v3.7 and v3.8 made code changes which pushed the last level of 
bounding for shapes outside the +-b flag's control(*). The yuqk fork has 
restored the v3.6 and prior behavior - and the restoration is certainly 
helpful here for debugging.

(*) - The change offered a performance optimization in some situations.

---

Ah, I see the cone is doing something weird where the two radii are 
negative. We should probably just not allow negative radii arguments in 
the parser - for any shape.

Bill P.

Aside 1: Long on my todo list is breaking apart the cylinder and cone 
code. Today it's all munged together making both slower and more complex 
than they need be.

Aside 2: clipka fixed something with the cone behavior (my memory 
otherwise fails) in v3.8. I expect v3.7 cone behavior is different in 
some aspect.


Post a reply to this message


Attachments:
Download 'discoddnessnoboundingcsg_yuqk.png' (58 KB) Download 'coneoddnesscsg_v38.png' (63 KB)

Preview of image 'discoddnessnoboundingcsg_yuqk.png'
discoddnessnoboundingcsg_yuqk.png

Preview of image 'coneoddnesscsg_v38.png'
coneoddnesscsg_v38.png


 

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