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