home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 16 / CD_ASCQ_16_0994.iso / news / 2555 / povhlp / inoutgeo.hlp < prev    next >
Encoding:
Text File  |  1994-07-04  |  1.9 KB  |  43 lines

  1.     Most shape primitives, like spheres, boxes, and blobs, divide the world
  2.  into two regions.  One region is inside the surface and one is outside.  The
  3.  exceptions to this rule are triangles, disc and bezier patches; we'll talk
  4.  about this later.
  5.  
  6.     Given any point in space, you can say it's either inside or outside any
  7.  particular primitive object (well, it could be exactly on the surface, but
  8.  numerical inaccuracies will put it to one side or the other).
  9.  
  10.     Even planes have an inside and an outside.  By definition, the surface
  11.  normal of the plane points towards the outside of the plane.  (For a simple
  12.  floor, for example, the space above the floor is 'outside' and the space be-
  13.  low the floor is 'inside'.  For simple floors this in unimportant, but for
  14.  planes as parts of CSG's it becomes much more important).  CSG uses the con-
  15.  cepts of inside and outside to combine shapes together.
  16.  
  17.     Complex shapes may be created by combining other shapes using a technique
  18.  called 'Constructive Solid Geometry' (or CSG for short).  The CSG shapes are
  19.  difference, intersection, and union.  The following gives a simple 2D over-
  20.  view of how these functions work.
  21.  
  22.     Take the following situation; point 1 is inside object A only.  Point 2
  23.  is inside B only.  Point 3 is inside both A and B while point 0 is outside
  24.  everything:
  25.        * = Object A
  26.        % = Object B
  27.  
  28.                  *  0
  29.                 * *    %
  30.                *   *  % %
  31.               *     *%   %
  32.              *  1   %*    %
  33.             *      %  * 2  %
  34.            *      % 3  *    %
  35.           *******%*******    %
  36.                 %             %
  37.                %%%%%%%%%%%%%%%%%
  38.  
  39.     NOTE: The diagrams shown here demonstrate the concepts in 2D and are in-
  40.  tended only as an analogy to the 3D case.  Also, the triangles and triangle
  41.  based shapes cannot be used as solid objects in CSG since they have no clear
  42.  inside and outside.
  43.