Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    CylinderProceduralModel Class

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

    A Cylinder descriptor

    System.Object → PrimitiveProceduralModelBase → CylinderProceduralModel
    Derived from CylinderProceduralModel:

    [DataContract("CylinderProceduralModel")]
    [Display("Cylinder", null)]
    public class CylinderProceduralModel : PrimitiveProceduralModelBase, IProceduralModel
    Name Description
    Constructors
    CylinderProceduralModel()

    Initializes a new instance of the Cylinder descriptor class.

    Properties
    Height

    Gets or sets the height.

    Radius

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

    Tessellation

    Gets or sets the tessellation factor.

    Methods
    CreatePrimitiveMeshData()
    | Improve this Doc View Source

    Constructors


    CylinderProceduralModel()

    Initializes a new instance of the Cylinder descriptor class.

    public CylinderProceduralModel()
    | Improve this Doc View Source

    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 cylinder.

    [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.

    | 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