GeometricPrimitive.Teapot Class
Namespace: Stride.Graphics.GeometricPrimitivesAssembly: Stride.Graphics.dll
A Teapot primitive.
public static class Teapot
Name | Description | |
---|---|---|
Methods | ||
CubicInterpolate(ref Vector3, ref Vector3, ref Vector3, ref Vector3, Single) | ||
New(GraphicsDevice, Single, Int32, Single, Single, Boolean) | Creates a teapot primitive. |
|
New(Single, Int32, Single, Single, Boolean) | Creates a teapot primitive. |
Methods
CubicInterpolate(ref Vector3, ref Vector3, ref Vector3, ref Vector3, Single)
public static Vector3 CubicInterpolate(ref Vector3 p1, ref Vector3 p2, ref Vector3 p3, ref Vector3 p4, float t)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | p1 | |
Vector3 | p2 | |
Vector3 | p3 | |
Vector3 | p4 | |
System.Single | t |
Returns
Type | Description |
---|---|
Vector3 |
New(GraphicsDevice, Single, Int32, Single, Single, Boolean)
Creates a teapot primitive.
public static GeometricPrimitive New(GraphicsDevice device, float size = 1F, int tessellation = 8, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
Type | Name | Description |
---|---|---|
GraphicsDevice | device | The device. |
System.Single | size | The size. |
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 | GeometricPrimitive. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | tessellation;tessellation must be > 0 |
New(Single, Int32, Single, Single, Boolean)
Creates a teapot primitive.
public static GeometricMeshData<VertexPositionNormalTexture> New(float size = 1F, int tessellation = 8, float uScale = 1F, float vScale = 1F, bool toLeftHanded = false)
Parameters
Type | Name | Description |
---|---|---|
System.Single | size | The size. |
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> | GeometricPrimitive. |
Exceptions
Type | Condition |
---|---|
System.ArgumentOutOfRangeException | tessellation;tessellation must be > 0 |