|
|
Bill Brehm wrote:
> I'd like to create an compound object that adds something to the scene, but
> also removes something else from whatever it happens to intersect.
Like Steve said, there's no direct way to do this. However, you can make it a
little simpler by using an array.
#declare n=20;
#declare Pos=array[n]
#declare Pos[0]=<10,0,10>;
#declare Pos[1]=<14,0,11>;
...
#declare GolfBall=sphere{0,1}
//Then run a loop to put the golf balls
#declare i=0;#while (i<n) object{GolfBall translate Pos[i]} #declare i=i+1; #end
//and then another loop to make the ground
difference{
plane{y,0}
#declare i=0;#while (i<n) object{GolfBall scale 1.1 translate Pos[i]}
#declare i=i+1; #end
}
G.
Post a reply to this message
|
|