POV-Ray : Newsgroups : povray.newusers : Where is a bug ? : Re: Where is a bug ? Server Time
14 Sep 2025 10:22:18 EDT (-0400)
  Re: Where is a bug ?  
From: Cousin Ricky
Date: 1 Sep 2025 16:42:03
Message: <68b6051b$1@news.povray.org>
On 2025-09-01 12:23 (-4), Alain Martel wrote:
> Le 2025-09-01 à 11:54, kurtz le pirate a écrit :
>>
>> #declare corner = cylinder { <0, -H, 0>, <0, 0, 0>, R }
>>
>> merge or union
>>    {
>>    box { <-S+R, -H, -S>, <+S-R, 0, +S> }
>>    box { <-S, -H, -S+R>, <+S, 0, +S-R> }
>>
>>    object { corner translate <+(S-R), 0, +(S-R)> }
>>    object { corner translate <-(S-R), 0, +(S-R)> }
>>    object { corner translate <+(S-R), 0, -(S-R)> }
>>    object { corner translate <-(S-R), 0, -(S-R)> }
>>    }
> 
> The noise in the hole lead me to think that it may be a coincident
> surface issue.
> The merge remove internal surfaces. When two surfaces are in the exact
> same location, you get all sort of glitches as the program can't tell
> witch one is inside and need to get removed.
> Try moving one of the box up or down by a very small amount, like :
> translate y*10^-7
> 
> Does that help ?

In fact, both boxes will need to be moved (one up, and one down),
because they also share coincident surfaces with the four cylinders.

P.S.  There is a typo: y*10^-7 should be y*10e-7.


Post a reply to this message

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