Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    SphereProceduralModel Class

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

    A sphere procedural.

    System.Object → PrimitiveProceduralModelBase → SphereProceduralModel
    Derived from SphereProceduralModel:

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

    Initializes a new instance of the SphereProceduralModel class.

    Properties
    Radius

    Gets or sets the radius of this sphere.

    Tessellation

    Gets or sets the tessellation factor (default: 3.0)

    Methods
    CreatePrimitiveMeshData()
    | Improve this Doc View Source

    Constructors


    SphereProceduralModel()

    Initializes a new instance of the SphereProceduralModel class.

    public SphereProceduralModel()
    | Improve this Doc View Source

    Properties


    Radius

    Gets or sets the radius of this sphere.

    [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(20)]
    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