11 Constants

11 CSG Equations

QuickDraw3D provides constants for some common CSG equations. See "Constructive Solid Geometry" on page 11-5 for more information on how CSG equations are determined.

typedef enum TQ3CSGEquation {
 kQ3CSGEquationAandB            = (int) 0x88888888,
 kQ3CSGEquationAandnotB            = 0x22222222,
 kQ3CSGEquationAanBonCad            = 0x2F222F22,
 kQ3CSGEquationnotAandB            = 0x44444444,
 kQ3CSGEquationnAaBorCanD            = 0x74747474
} TQ3CSGEquation;

Constant descriptions

kQ3CSGEquationAandB
A << B. The renderer draws the intersection of object A and object B.
kQ3CSGEquationAandnotB
A << ÂB. The renderer draws the portion of object A that lies outside of object B.
kQ3CSGEquationAanBonCad
(A << ÂB) ÈC << D). The renderer draws the portion of object A that lies outside of object B, and the portion of object D that lies outside of object C.
kQ3CSGEquationnotAandB
ÂA << B. The renderer draws the portion of object B that lies outside of object A.
kQ3CSGEquationnAaBorCanD
A << B) È (C << ÂD). The renderer draws the portion of object B that lies outside of object A, and the portion of object C that lies outside of object D.
Constant descriptions

3D Graphics Programming with QuickDraw 3D - 17 OCT 1995

© Apple Computer, Inc.

Let us know what you think of these prototype pages.

Generated with Harlequin WebMaker