GeometricPrimitive.Torus Class
Namespace: Stride.Graphics.GeometricPrimitivesAssembly: Stride.Graphics.dll
A Torus primitive.
public static class Torus
| Name | Description | |
|---|---|---|
| Methods | ||
| New(GraphicsDevice, Single, Single, Int32, Single, Single, Boolean) | Creates a torus primitive. |
|
| New(Single, Single, Int32, Single, Single, Boolean) | Creates a torus primitive. |
|
Methods
New(GraphicsDevice, Single, Single, Int32, Single, Single, Boolean)
Creates a torus primitive.
public static GeometricPrimitive New(GraphicsDevice device, float majorRadius = 0.5F, float minorRadius = 0.16666F, int tessellation = 32, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsDevice | device | The device. |
| System.Single | majorRadius | The majorRadius. |
| System.Single | minorRadius | The minorRadius. |
| System.Int32 | tessellation | The tessellation. |
| System.Single | uScale | Scale U coordinates between 0 and the values of this parameter. |
| System.Single | vScale | Scale V coordinates 0 and the values of this parameter. |
| System.Boolean | toLeftHanded | if set to |
Returns
| Type | Description |
|---|---|
| GeometricPrimitive | A Torus primitive. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | tessellation;tessellation parameter out of range |
New(Single, Single, Int32, Single, Single, Boolean)
Creates a torus primitive.
public static GeometricMeshData<VertexPositionNormalTexture> New(float majorRadius = 0.5F, float minorRadius = 0.16666F, int tessellation = 32, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | majorRadius | The major radius of the torus. |
| System.Single | minorRadius | The minor radius of the torus. |
| System.Int32 | tessellation | The tessellation. |
| System.Single | uScale | Scale U coordinates between 0 and the values of this parameter. |
| System.Single | vScale | Scale V coordinates 0 and the values of this parameter. |
| System.Boolean | toLeftHanded | if set to |
Returns
| Type | Description |
|---|---|
| GeometricMeshData<VertexPositionNormalTexture> | A Torus primitive. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | tessellation;tessellation parameter out of range |