POV-Ray : Newsgroups : povray.binaries.images : CSG problem : Re: CSG problem Server Time
18 Aug 2024 08:26:08 EDT (-0400)
  Re: CSG problem  
From: Mike Williams
Date: 22 May 2001 04:35:32
Message: <ZcuNaCA1VeC7EwHz@econym.demon.co.uk>
Wasn't it Nekar Xenos who wrote:

>I don't know if it's a bug. But if you take a look at the code under
>povray.text.scene-files you'll see  there is a section I marked out that doesn't
>want to cut off the edge. I've checked the placement and it is in the right
>place so I must be missing something.

Check the placement again. It's *not* in the right place.



One way to visualize what's happening is to look at the detail with an
orthographic camera, and to add a visible copy of the suspect difference
to the scene

E.g. temporarily change your camera to

   camera {location <6,-4,0>
        look_at <6,-4,10>         
        orthographic
        }

And temporarily add this at the very end of the scene

   difference {
      box{<4,-2,18>,<7,-5,-18>}
      cylinder{<7,-5,19>,<7,-5,-19> 2}
       pigment {rgb x}
       translate <0,0,50>
   }

When you render that, you'll see that the suspect bit touches the main
object in two places. You really don't want the one around <4,-5,*>, and
the one around <7,-3,*> doesn't do very much.

I reckon that the correct shape is more like

   difference {
      box{<4,-2,18>,<7.5,-4,-18>}
      cylinder{<7.5,-5,19>,<7.5,-5,-19> 2}
    }




-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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