TorusProceduralModel Class
Namespace: Stride.Rendering.ProceduralModelsAssembly: Stride.Rendering.dll
The Torus Model.
Derived from TorusProceduralModel:
[DataContract("TorusProceduralModel")]
[Display("Torus", null)]
public class TorusProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
| Name | Description | |
|---|---|---|
| Constructors | ||
| TorusProceduralModel() | Initializes a new instance of the TorusProceduralModel class. |
|
| Properties | ||
| Radius | Gets or sets the size of this Torus. |
|
| Tessellation | Gets or sets the tessellation factor (default: 3.0) |
|
| Thickness | Gets or sets the thickness. |
|
| Methods | ||
| CreatePrimitiveMeshData() | ||
Constructors
TorusProceduralModel()
Initializes a new instance of the TorusProceduralModel class.
public TorusProceduralModel()
Properties
Radius
Gets or sets the size of this Torus.
[DataMember(10)]
public float Radius { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The radius. |
Tessellation
Gets or sets the tessellation factor (default: 3.0)
[DataMember(30)]
public int Tessellation { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 | The tessellation. |
Thickness
Gets or sets the thickness.
[DataMember(20)]
public float Thickness { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single | The minor radius of the torus. That is the radius of the ring. |
Methods
CreatePrimitiveMeshData()
protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()
Returns
| Type | Description |
|---|---|
| GeometricMeshData<VertexPositionNormalTexture> |