/// <summary> /// Creates a Geodesic sphere. /// </summary> /// <param name="radius">The radius.</param> /// <param name="tessellation">The tessellation.</param> /// <param name="vScale"></param> /// <param name="toLeftHanded">if set to <c>true</c> vertices and indices will be transformed to left handed. Default is false.</param> /// <param name="uScale"></param> /// <returns>A Geodesic sphere.</returns> public static GeometricMeshData <VertexPositionNormalTexture> New(float radius = 0.5f, int tessellation = 3, float uScale = 1.0f, float vScale = 1.0f, bool toLeftHanded = false) { var sphere = new GeoSphereData(); return(sphere.Create(radius, tessellation, uScale, vScale, toLeftHanded)); }
/// <summary> /// Creates a Geodesic sphere. /// </summary> /// <param name="diameter">The diameter.</param> /// <param name="tessellation">The tessellation.</param> /// <param name="toLeftHanded">if set to <c>true</c> vertices and indices will be transformed to left handed. Default is false.</param> /// <param name="uScale">The scale to apply on the u component of the texture coordinates</param> /// <param name="vScale">The scale to apply on the v component of the texture coordinates</param> /// <returns>A Geodesic sphere.</returns> public static GeometricMeshData <VertexPositionNormalTexture> New(float diameter = 1.0f, int tessellation = 3, bool toLeftHanded = false) { var sphere = new GeoSphereData(); return(sphere.Create(diameter, tessellation, toLeftHanded)); }