GeometricPrimitive.GeoSphere Class
Namespace: Stride.Graphics.GeometricPrimitivesAssembly: Stride.Graphics.dll
A Geodesic sphere.
System.Object →
GeometricPrimitive.GeoSphere
Derived from GeometricPrimitive.GeoSphere:
public static class GeoSphere
| Name | Description | |
|---|---|---|
| Methods | ||
| New(GraphicsDevice, Single, Int32, Single, Single, Boolean) | Creates a Geodesic sphere. |
|
| New(Single, Int32, Single, Single, Boolean) | Creates a Geodesic sphere. |
|
Methods
New(GraphicsDevice, Single, Int32, Single, Single, Boolean)
Creates a Geodesic sphere.
public static GeometricPrimitive New(GraphicsDevice graphicsDevice, float radius = 0.5F, int tessellation = 3, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsDevice | graphicsDevice | The graphics device. |
| System.Single | radius | The radius. |
| System.Int32 | tessellation | The tessellation. |
| System.Single | uScale | |
| System.Single | vScale | |
| System.Boolean | toLeftHanded | if set to |
Returns
| Type | Description |
|---|---|
| GeometricPrimitive | A Geodesic sphere. |
New(Single, Int32, Single, Single, Boolean)
Creates a Geodesic sphere.
public static GeometricMeshData<VertexPositionNormalTexture> New(float radius = 0.5F, int tessellation = 3, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | radius | The radius. |
| System.Int32 | tessellation | The tessellation. |
| System.Single | uScale | |
| System.Single | vScale | |
| System.Boolean | toLeftHanded | if set to |
Returns
| Type | Description |
|---|---|
| GeometricMeshData<VertexPositionNormalTexture> | A Geodesic sphere. |