Class TorusProceduralModel
- Namespace
- Stride.Rendering.ProceduralModels
- Assembly
- Stride.Rendering.dll
The Torus Model.
[DataContract("TorusProceduralModel")]
[Display("Torus", null)]
public class TorusProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
- Inheritance
-
TorusProceduralModel
- Implements
- Inherited Members
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
- float
The radius.
Tessellation
Gets or sets the tessellation factor (default: 3.0)
[DataMember(30)]
public int Tessellation { get; set; }
Property Value
- int
The tessellation.
Thickness
Gets or sets the thickness.
[DataMember(20)]
public float Thickness { get; set; }
Property Value
- float
The minor radius of the torus. That is the radius of the ring.
Methods
CreatePrimitiveMeshData()
protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()