Disks
A disk is a two-dimensional surface defined by an origin (that is, the center of the disk) and two vectors that define the major and minor radii of the disk. A disk is defined by the
TQ3DiskData
data type. See
"Creating and Editing Disks"
for a description of the routines you can use to create and edit disks.
Figure 33
shows a disk.
Figure 33
A disk
typedef struct TQ3DiskData {
TQ3Point3D origin;
TQ3Vector3D majorRadius;
TQ3Vector3D minorRadius;
float uMin, uMax, vMin, vMax;
TQ3AttributeSet diskAttributeSet;
} TQ3DiskData;
-
origin
-
The origin (that is, the center) of the disk.
-
majorRadius
-
The major radius of the disk.
-
minorRadius
-
The minor radius of the disk.
-
uMin
-
The minimum value in the
u
parametric direction of the disk. This value should be greater than or equal to 0.0 and less than or equal to 1.0.
-
uMax
-
The maximum value in the
u
parametric direction of the disk. This value should be greater than or equal to 0.0 and less than or equal to 1.0.
-
vMin
-
The minimum value in the
v
parametric direction of the disk. This value should be greater than or equal to 0.0 and less than or equal to 1.0.
-
vMax
-
The maximum value in the
v
parametric direction of the disk. This value should be greater than or equal to 0.0 and less than or equal to 1.0.
-
diskAttributeSet
-
A set of attributes for the disk. The value in this field is
NULL
if no disk attributes are defined.
© 1997 Apple Computer, Inc.