CylinderProceduralModel Class
Namespace: Stride.Rendering.ProceduralModelsAssembly: Stride.Rendering.dll
A Cylinder descriptor
Derived from CylinderProceduralModel:
[DataContract("CylinderProceduralModel")]
[Display("Cylinder", null)]
public class CylinderProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
Name | Description | |
---|---|---|
Constructors | ||
CylinderProceduralModel() | Initializes a new instance of the Cylinder descriptor class. |
|
Properties | ||
Height | Gets or sets the height. |
|
Radius | Gets or sets the radius of the base of the cylinder. |
|
Tessellation | Gets or sets the tessellation factor. |
|
Methods | ||
CreatePrimitiveMeshData() |
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
Type | Description |
---|---|
System.Single | The height. |
Radius
Gets or sets the radius of the base of the cylinder.
[DataMember(20)]
public float Radius { get; set; }
Property Value
Type | Description |
---|---|
System.Single | The radius. |
Tessellation
Gets or sets the tessellation factor.
[DataMember(30)]
public int Tessellation { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The tessellation. |
Methods
CreatePrimitiveMeshData()
protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()
Returns
Type | Description |
---|---|
GeometricMeshData<VertexPositionNormalTexture> |