POV-Ray : Documentation : 1.2.3.3 CSG Intersection
  POV-Ray 3.6 Documentation Online View  
1.2.3.2 CSG Union   1.2.3.4 CSG Difference

1.2.3.3 CSG Intersection

Now let's use these same spheres to illustrate theintersection CSG object. We change the word union to intersection and delete the scale and rotate statements:

  intersection {
    sphere { <0, 0, 0>, 1
      translate -0.5*x
    }
    sphere { <0, 0, 0>, 1
      translate 0.5*x
    }
    pigment { Red }
  }

We trace the file and will see a lens-shaped object instead of the two spheres. This is because an intersection consists of the area shared by both shapes, in this case the lens-shaped area where the two spheres overlap. We like this lens-shaped object so we will use it to demonstrate differences.

1.2.3.2 CSG Union   1.2.3.4 CSG Difference


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