PatchMesh9

定义由贝塞尔修补程序定义的网格。 第一个数组是顶点列表,第二个数组通过索引到顶点数组中定义网格的修补程序。

template PatchMesh9
{
    < B9EC94E1-B9A6-4251-BA18-94893F02C0EA >
    DWORD Type;
    DWORD Degree;
    DWORD Basis;
    DWORD nVertices;
    array Vector vertices[nVertices];
    DWORD nPatches;
    array Patch patches[nPatches];
    [ ... ]
} 

其中:

  • 类型 - 修补网格类型:矩形、三角形或 N 补丁。
  • Degree - 曲线公式中变量的度数。
  • Basis - 高阶补丁图面的基础类型。
  • nVertices - 顶点数。
  • vertices[nVertices] - 顶点数组。 请参阅 Vector
  • nPatches - 修补程序数。
  • patchs[nPatches] - 修补程序数组。 请参阅 修补程序
  • [ ... ]- 可在此处使用任何 .x 文件模板。 这使得体系结构可扩展。

补丁使用顶点数组中的顶点作为每个修补程序的控制点。

另请参阅

模板