積集合 intersection
今度は重なった部分だけ表示されるようになります。以下例
#include "colors.inc"
camera { location<0,20,-30> look_at<0,0,0> }
light_source { <-30,30,-30> color rgb 1 }
plane { y,-0.2 pigment { checker color White, color Gray50 } scale 10 translate 2}
intersection { //これが積集合を表す単語です。
box { <-5,0,-5>,<5,10,5> pigment{color MediumTurquoise} }
//↑と↓の重なった部分だけ表示されます。
box { <0,5,-5.1>,<10,15,5.1> pigment{color MediumTurquoise} }
}
結果はこうなります。(分かりづらいですが中間の重なった部分だけになっています。
