Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    CapsuleProceduralModel Class

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

    A Capsule descriptor

    System.Object → PrimitiveProceduralModelBase → CapsuleProceduralModel
    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()
    | Improve this Doc View Source

    Constructors


    CapsuleProceduralModel()

    Initializes a new instance of the Capsule descriptor class.

    public CapsuleProceduralModel()
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Methods


    CreatePrimitiveMeshData()

    protected override GeometricMeshData<VertexPositionNormalTexture> CreatePrimitiveMeshData()
    Returns
    Type Description
    GeometricMeshData<VertexPositionNormalTexture>
    Overrides
    PrimitiveProceduralModelBase.CreatePrimitiveMeshData()

    Inherited Members

    PrimitiveProceduralModelBase.SetMaterial(String, Material)
    PrimitiveProceduralModelBase.Scale
    PrimitiveProceduralModelBase.UvScale
    PrimitiveProceduralModelBase.LocalOffset
    PrimitiveProceduralModelBase.NumberOfTextureCoordinates
    PrimitiveProceduralModelBase.MaterialInstance
    PrimitiveProceduralModelBase.MaterialInstances
    PrimitiveProceduralModelBase.Generate(IServiceRegistry, Model)

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation