Class CylinderProceduralModel
- Namespace
- Stride.Rendering.ProceduralModels
- Assembly
- Stride.Rendering.dll
A Cylinder descriptor
[DataContract("CylinderProceduralModel")]
[Display("Cylinder", null)]
public class CylinderProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
- Inheritance
-
CylinderProceduralModel
- Implements
- Inherited Members
Constructors
CylinderProceduralModel()
Initializes a new instance of the Cylinder descriptor class.
public CylinderProceduralModel()
Properties
Height
Gets or sets the height.
[DataMember(10)]
public float Height { get; set; }
Property Value
- float
The height.
Radius
Gets or sets the radius of the base of the cylinder.
[DataMember(20)]
public float Radius { get; set; }
Property Value
- float
The radius.
Tessellation
Gets or sets the tessellation factor.
[DataMember(30)]
public int Tessellation { get; set; }
Property Value
- int
The tessellation.
Methods
CreatePrimitiveMeshData()
protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()