Class GeometricPrimitive.Teapot
- Namespace
- Stride.Graphics.GeometricPrimitives
- Assembly
- Stride.Graphics.dll
A Teapot primitive.
public static class GeometricPrimitive.Teapot
- Inheritance
-
GeometricPrimitive.Teapot
Methods
CubicInterpolate(ref Vector3, ref Vector3, ref Vector3, ref Vector3, float)
public static Vector3 CubicInterpolate(ref Vector3 p1, ref Vector3 p2, ref Vector3 p3, ref Vector3 p4, float t)
Parameters
Returns
New(GraphicsDevice, float, int, float, float, bool)
Creates a teapot primitive.
public static GeometricPrimitive New(GraphicsDevice device, float size = 1, int tessellation = 8, float uScale = 1, float vScale = 1, bool toLeftHanded = false)
Parameters
device
GraphicsDeviceThe device.
size
floatThe size.
tessellation
intThe tessellation.
uScale
floatScale U coordinates between 0 and the values of this parameter.
vScale
floatScale V coordinates 0 and the values of this parameter.
toLeftHanded
boolif set to
true
vertices and indices will be transformed to left handed. Default is false.
Returns
- GeometricPrimitive
GeometricPrimitive.
Exceptions
- ArgumentOutOfRangeException
tessellation;tessellation must be > 0
New(float, int, float, float, bool)
Creates a teapot primitive.
public static GeometricMeshData<VertexPositionNormalTexture> New(float size = 1, int tessellation = 8, float uScale = 1, float vScale = 1, bool toLeftHanded = false)
Parameters
size
floatThe size.
tessellation
intThe tessellation.
uScale
floatScale U coordinates between 0 and the values of this parameter.
vScale
floatScale V coordinates 0 and the values of this parameter.
toLeftHanded
boolif set to
true
vertices and indices will be transformed to left handed. Default is false.
Returns
- GeometricMeshData<VertexPositionNormalTexture>
GeometricPrimitive.
Exceptions
- ArgumentOutOfRangeException
tessellation;tessellation must be > 0