Table of Contents

Class CapsuleProceduralModel

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

A Capsule descriptor

[DataContract("CapsuleProceduralModel")]
[Display("Capsule", null)]
public class CapsuleProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
Inheritance
CapsuleProceduralModel
Implements
Inherited Members

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

float

The length.

Radius

Gets or sets the radius of the base of the Capsule.

[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

Methods

CreatePrimitiveMeshData()

protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()

Returns

GeometricMeshData<VertexPositionNormalTexture>