Patch
Microsoft DirectX 9.0 SDK Update (October 2004)

Patch


Defines a Bézier control patch. The array defines the control points for the patch.

        template Patch
        {
            < A3EB5D44-FC22-429D-9AFB-3221CB9719A6 >
            DWORD nControlIndices;
            array DWORD controlIndices[nControlIndices];
        } 

Where:

The type of patch is defined by the number of control points, as shown in the following table.

Number of control pointsType
10Cubic Bézier triangular patch
15Quartic Bézier triangular patch
16Cubic Bézier quad rectangle patch

The order of the control points are given in a spiral pattern, as shown in the following diagrams for triangular and rectangular patches.

Triangular patches used the following pattern.

Triangular patches

Rectangular patches use the following pattern.

Rectangular patches



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.