POV-Ray : Documentation : 2.4.6.3 Intersection
  POV-Ray 3.6 Documentation Online View  
2.4.6.2 Union   2.4.6.4 Difference

2.4.6.3 Intersection

The intersection object creates a shape containing only those areas where all components overlap. A point is part of an intersection if it is inside both objects, A and B, as show in the figure below.

The intersection of two objects.

The syntax is:

INTERSECTION:
    intersection
    {
        SOLID_OBJECTS...
        [OBJECT_MODIFIERS...]
    }

The component objects must have well defined inside/outside properties. Patch objects are not allowed.

Note: if all components do not overlap, the intersection object disappears.

Here is an example that overlaps:

  intersection {
    box { <-1.5, -1, -1>, <0.5, 1, 1> }
    cylinder { <0.5, 0, -1>, <0.5, 0, 1>, 1 }
  }
2.4.6.2 Union   2.4.6.4 Difference


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