Table of Contents

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

p1 Vector3
p2 Vector3
p3 Vector3
p4 Vector3
t float

Returns

Vector3

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 GraphicsDevice

The device.

size float

The size.

tessellation int

The tessellation.

uScale float

Scale U coordinates between 0 and the values of this parameter.

vScale float

Scale V coordinates 0 and the values of this parameter.

toLeftHanded bool

if 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 float

The size.

tessellation int

The tessellation.

uScale float

Scale U coordinates between 0 and the values of this parameter.

vScale float

Scale V coordinates 0 and the values of this parameter.

toLeftHanded bool

if 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