Programming API Reference: EduGraf.Shapes

Class public static Sphere

Geometric representation of a sphere by triangles indexing distinct vertices.

Method public static float[] GetPositions()

Return a triangulation that corresponds to the usual sub-division of a globe.
  • int longitudeCount
  • int latitudeCount

Method public static float[] GetTextureUvs()

Return (u, v) for all vertices.
  • int longitudeCount
  • int latitudeCount

Method public static ushort[] GetTriangles()

Return a triangulation that corresponds to the usual sub-division of a globe.
  • int longitudeCount
  • int latitudeCount

Method public static float[] GetIsoPositions()

Return equilateral triangles.
  • int rings

Method public static ushort[] GetIsoTriangles()

Return a triangulation consisting of equilateral triangles.
  • int rings