Table of Contents

Class TeapotProceduralModel

Namespace
Stride.Rendering.ProceduralModels
Assembly
Stride.Rendering.dll

A teapot procedural model.

[DataContract("TeapotProceduralModel")]
[Display("Teapot", null)]
public class TeapotProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
Inheritance
TeapotProceduralModel
Implements
Inherited Members

Constructors

TeapotProceduralModel()

Initializes a new instance of the TeapotProceduralModel class.

public TeapotProceduralModel()

Properties

Size

Gets or sets the size of this teapot.

[DataMember(10)]
public float Size { get; set; }

Property Value

float

The size.

Tessellation

Gets or sets the tessellation factor (default: 3.0)

[DataMember(20)]
public int Tessellation { get; set; }

Property Value

int

The tessellation of the teapot. That is the number of polygons composing it.

Methods

CreatePrimitiveMeshData()

protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()

Returns

GeometricMeshData<VertexPositionNormalTexture>