?/TD>
Microsoft DirectX 9.0

D3DXPATCHINFO Structure


Structure that contains the attributes of a patch mesh.

Syntax

typedef struct _D3DXPATCHINFO {
    DWORD PatchType;
    D3DDEGREETYPE Degree;
    D3DBASISTYPE D3DBasis;
} D3DXPATCHINFO;

Members

PatchType
The patch type. For information about patch types, see D3DXPATCHMESHTYPE.
Degree
Degree of the curves used to construct the patch. For information about the degrees supported, see D3DDEGREETYPE.
D3DBasis
Type of curve used to construct the patch. For information about the basis types supported, see D3DBASISTYPE.

Remarks

A mesh is a set of faces, each of which is described by a simple polygon. Objects can be created by connecting several meshes together. A patch mesh is constructed from patches. A patch is a four-sided piece of geometry constructed from curves. The type of curve used and the order of the curve can be varied so that the patch surface will fit almost any surface shape.

The following types of patch combinations are supported:

Patch TypeBasisDegree
RectangleBezier2,3,5
RectangleB-Spline2,3,5
RectangleCatmull-Rom3
TriangleBezier2,3,5
N-patchN/A3

Structure Information

Headerd3dx9mesh.h
Minimum operating systems Windows 98

See Also

D3DRECTPATCH_INFO, D3DTRIPATCH_INFO, D3DXCreatePatchMesh


© 2002 Microsoft Corporation. All rights reserved.