POV-Ray : Newsgroups : povray.general : weird merge : weird merge Server Time
11 Aug 2024 05:20:23 EDT (-0400)
  weird merge  
From: Remco de Korte
Date: 6 Sep 1999 18:00:23
Message: <37D43439.27A3F265@xs4all.nl>
/*
There's something weird with the following code:
*/

camera{location <0,0,-13.5> look_at<0,0,0> angle 30}

light_source{<-200,100,-150> color rgb <1,1,1>.1}

plane{z,600 hollow on pigment{rgb .25}}
   
#declare xx=1.9;
#declare yy=.5;

merge{
  sphere{<-xx,-yy,0>,.1}
  sphere{<xx,-yy,0>,.1}
  sphere{<-xx,yy,0>,.1}
  sphere{<xx,yy,0>,.1}
  cylinder{<-xx,-yy,0><xx,-yy,0>,.1}
  cylinder{<-xx,yy,0><xx,yy,0>,.1}
  cylinder{<-xx,-yy,0><-xx,yy,0>,.1}
  cylinder{<xx,-yy,0><xx,yy,0>,.1}

  cylinder{<-xx,-yy,0><-xx,-yy,5>,.1}
  cylinder{<xx,-yy,0><xx,-yy,5>,.1}
  cylinder{<-xx,yy,0><-xx,yy,5>,.1}
  cylinder{<xx,yy,0><xx,yy,5>,.1}
        
  box{<-xx,-yy-.1,0><xx,yy+.1,5>}
  box{<-xx-.1,-yy,0><xx+.1,yy,5>}
  pigment{rgb 5}
}

/*
What you should get is a bevelled box. 
If I make this into a union it's okay,
but with merge the inner part is gone.

Is this some known weird merge-behaviour
or am I making a stupid mistake?
(I thought union and merge should look
the same on the outside)

Cheerio,

Remco


Post a reply to this message

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