ConeProceduralModel Class
Namespace: Stride.Rendering.ProceduralModelsAssembly: Stride.Rendering.dll
A Cone descriptor
Derived from ConeProceduralModel:
[DataContract("ConeProceduralModel")]
[Display("Cone", null)]
public class ConeProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
| Name | Description | |
|---|---|---|
| Constructors | ||
| ConeProceduralModel() | Initializes a new instance of the Cone descriptor class. |
|
| Properties | ||
| Height | Gets or sets the height. |
|
| Radius | Gets or sets the radius of the base of the Cone. |
|
| Tessellation | Gets or sets the tessellation factor. |
|
| Methods | ||
| CreatePrimitiveMeshData() | ||
Constructors
ConeProceduralModel()
Initializes a new instance of the Cone descriptor class.
public ConeProceduralModel()
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 Cone.
[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> |