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()
int
nx : number of sub-patches in x-axis direction.int
nz : number of sub-patches in y-axis direction.Func
<float
,
float
,
float
> y : height in y-axis-direction for any given point on the patch.
Method public static ushort
[
] GetTriangles()
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.