Class GeometricPrimitive.Teapot
- Namespace
- Stride.Graphics.GeometricPrimitives
- Assembly
- Stride.Graphics.dll
A Teapot primitive.
public static class GeometricPrimitive.Teapot
- Inheritance
-
objectGeometricPrimitive.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
deviceGraphicsDeviceThe device.
sizefloatThe size.
tessellationintThe tessellation.
uScalefloatScale U coordinates between 0 and the values of this parameter.
vScalefloatScale V coordinates 0 and the values of this parameter.
toLeftHandedboolif set to
truevertices 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
sizefloatThe size.
tessellationintThe tessellation.
uScalefloatScale U coordinates between 0 and the values of this parameter.
vScalefloatScale V coordinates 0 and the values of this parameter.
toLeftHandedboolif set to
truevertices and indices will be transformed to left handed. Default is false.
Returns
- GeometricMeshData<VertexPositionNormalTexture>
GeometricPrimitive.
Exceptions
- ArgumentOutOfRangeException
tessellation;tessellation must be > 0