Table of Contents

Class CylinderProceduralModel

Namespace
Stride.Rendering.ProceduralModels
Assembly
Stride.Rendering.dll

A Cylinder descriptor

[DataContract("CylinderProceduralModel")]
[Display("Cylinder", null)]
public class CylinderProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
Inheritance
object
CylinderProceduralModel
Implements
Inherited Members
Extension Methods

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.

HeightRings

Gets or sets the number of vertex rings added along the height of the side.

[DataMember(40)]
[DataMemberRange(0, NaN, NaN, NaN, 0)]
public int HeightRings { get; set; }

Property Value

int

Remarks

Negative values are treated as 0.

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()

Returns

GeometricMeshData<VertexPositionNormalTexture>