Programming API Reference: EduGraf.Shapes

Class public static Patch

Geometric representation of a rectangular surface patch as a function of (x, z) by triangles indexing distinct vertices.

Method public static float[] GetPositions()

Return the surface.
  • int nx : number of sub-patches in x-axis direction.
  • int nz : number of sub-patches in y-axis direction.
  • Func<float float floaty : height in y-axis-direction for any given point on the patch.

Method public static ushort[] GetTriangles()

Return the surface.
  • int nx : number of sub-patches in x-axis direction.
  • int nz : number of sub-patches in y-axis direction. )

Method public static float[] GetTextureUvs()

Return (u, v) for all vertices.
  • int nx : number of sub-patches in x-axis direction.
  • int nz : number of sub-patches in y-axis direction.