Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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 TypeBasisDegree
RectangleBezier2,3,5
RectangleB-Spline2,3,5
RectangleCatmull-Rom3
TriangleBezier2,3,5
N-patchN/A3

 

Requirements

Header

D3dx9mesh.h

See also

D3DRECTPATCH_INFO
D3DTRIPATCH_INFO
D3DXCreatePatchMesh

 

 

Community Additions

ADD
Show:
© 2015 Microsoft