Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    TorusProceduralModel Class

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

    The Torus Model.

    System.Object → PrimitiveProceduralModelBase → TorusProceduralModel
    Derived from TorusProceduralModel:

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

    Initializes a new instance of the TorusProceduralModel class.

    Properties
    Radius

    Gets or sets the size of this Torus.

    Tessellation

    Gets or sets the tessellation factor (default: 3.0)

    Thickness

    Gets or sets the thickness.

    Methods
    CreatePrimitiveMeshData()
    | Improve this Doc View Source

    Constructors


    TorusProceduralModel()

    Initializes a new instance of the TorusProceduralModel class.

    public TorusProceduralModel()
    | Improve this Doc View Source

    Properties


    Radius

    Gets or sets the size of this Torus.

    [DataMember(10)]
    public float Radius { get; set; }
    Property Value
    Type Description
    System.Single

    The radius.


    Tessellation

    Gets or sets the tessellation factor (default: 3.0)

    [DataMember(30)]
    public int Tessellation { get; set; }
    Property Value
    Type Description
    System.Int32

    The tessellation.


    Thickness

    Gets or sets the thickness.

    [DataMember(20)]
    public float Thickness { get; set; }
    Property Value
    Type Description
    System.Single

    The minor radius of the torus. That is the radius of the ring.

    | 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