TeapotProceduralModel Class
Namespace: Stride.Rendering.ProceduralModelsAssembly: Stride.Rendering.dll
A teapot procedural model.
Derived from TeapotProceduralModel:
[DataContract("TeapotProceduralModel")]
[Display("Teapot", null)]
public class TeapotProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
| Name | Description | |
|---|---|---|
| Constructors | ||
| TeapotProceduralModel() | Initializes a new instance of the TeapotProceduralModel class. |
|
| Properties | ||
| Size | Gets or sets the size of this teapot. |
|
| Tessellation | Gets or sets the tessellation factor (default: 3.0) |
|
| Methods | ||
| CreatePrimitiveMeshData() | ||
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
| Type | Description |
|---|---|
| System.Single | The size. |
Tessellation
Gets or sets the tessellation factor (default: 3.0)
[DataMember(20)]
public int Tessellation { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The tessellation of the teapot. That is the number of polygons composing it. |
Methods
CreatePrimitiveMeshData()
protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()
Returns
| Type | Description |
|---|---|
| GeometricMeshData<VertexPositionNormalTexture> |