D3DXPATCHINFO

Structure that contains the attributes of a patch mesh.

typedef struct D3DXPATCHINFO {
    D3DXPATCHMESHTYPE PatchType;
    D3DDEGREETYPE Degree;
    D3DBASISTYPE Basis;
} D3DXPATCHINFO, *LPD3DXPATCHINFO;

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.
Basis
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 Type Basis Degree
Rectangle Bezier 2,3,5
Rectangle B-Spline 2,3,5
Rectangle Catmull-Rom 3
Triangle Bezier 2,3,5
N-patch N/A 3

See Also

D3DRECTPATCH_INFO, D3DTRIPATCH_INFO, D3DXCreatePatchMesh