D3DXPATCHINFO structure

Structure that contains the attributes of a patch mesh.

Syntax

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

Members

PatchType

Type: D3DXPATCHMESHTYPE

The patch type. For information about patch types, see D3DXPATCHMESHTYPE.

Degree

Type: D3DDEGREETYPE

Degree of the curves used to construct the patch. For information about the degrees supported, see D3DDEGREETYPE.

Basis

Type: D3DBASISTYPE

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

 

Requirements

Requirement Value
Header
D3dx9mesh.h

See also

D3DX Structures

D3DRECTPATCH_INFO

D3DTRIPATCH_INFO

D3DXCreatePatchMesh