GeometricPrimitive.Cylinder Class
Namespace: Stride.Graphics.GeometricPrimitivesAssembly: Stride.Graphics.dll
A Cylinder primitive.
public static class Cylinder
| Name | Description | |
|---|---|---|
| Methods | ||
| New(GraphicsDevice, Single, Single, Int32, Single, Single, Boolean) | Creates a cylinder primitive. |
|
| New(Single, Single, Int32, Single, Single, Boolean) | Creates a cylinder primitive. |
|
Methods
New(GraphicsDevice, Single, Single, Int32, Single, Single, Boolean)
Creates a cylinder primitive.
public static GeometricPrimitive New(GraphicsDevice device, float height = 1F, float radius = 0.5F, int tessellation = 32, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
| Type | Name | Description |
|---|---|---|
| GraphicsDevice | device | The device. |
| System.Single | height | The height. |
| System.Single | radius | The radius. |
| 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 cylinder primitive. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | tessellation;tessellation must be >= 3 |
New(Single, Single, Int32, Single, Single, Boolean)
Creates a cylinder primitive.
public static GeometricMeshData<VertexPositionNormalTexture> New(float height = 1F, float radius = 0.5F, int tessellation = 32, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | height | The height. |
| System.Single | radius | The radius. |
| 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 cylinder primitive. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentOutOfRangeException | tessellation;tessellation must be >= 3 |