Structure that contains the attributes of a patch mesh.
typedef struct D3DXPATCHINFO { D3DXPATCHMESHTYPE PatchType; D3DDEGREETYPE Degree; D3DBASISTYPE Basis; } D3DXPATCHINFO, *LPD3DXPATCHINFO;
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 |