POV-Ray : Newsgroups : povray.newusers : csg woes : Re: csg woes Server Time
20 Apr 2024 01:10:04 EDT (-0400)
  Re: csg woes  
From: Thomas de Groot
Date: 30 Apr 2017 02:48:12
Message: <590588ac@news.povray.org>
On 30-4-2017 6:56, dick balaska wrote:
> Am 2017-04-28 03:52, also sprach Thomas de Groot:
>> On 28-4-2017 9:03, dick balaska wrote:
>>> I have a weird simple csg error that I'm missing the solution to.
>>> I'm trying to make a TV with rounded corners for the picture tube.
>>> Seems simple enough.
>>> union {
>>>    difference {
>>>       tvBox
>>>       tvTubeCutout
>>>    }
>>>    rectangle_with_image_to_stick_in_TV
>>> }
>>>
>>> but my rounded corners, inside corners for the screen are not working.
>>> Can someone take a look?
>>>
>>
>> Because you are using 'merge'? Replace by 'union' and all will be well.
>>
>> If not applied on transparent objects, merge should be avoided as it
>> also is slower than union.
>>
>>
>
> Thanks. That was it.  I had switched it from union to merge; I was
> getting weird coincidence errors on the main outer box. They've gone
> away too.
> (I think I was doing union {box {color Red} box {color Red}} instead of
> union {box {} box {} color Red}
> )
>
> Weird that merge has that issue. I would think it shouldn't matter for
> this application, just be slower.
>

I too have been wondering about that. The only difference merge does is 
taking out the internal surfaces of the objects, but works as a union 
otherwise... or so I believe.

-- 
Thomas


Post a reply to this message

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