Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GeoSphereProceduralModel Class

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

    A sphere procedural model.

    System.Object → PrimitiveProceduralModelBase → GeoSphereProceduralModel
    Derived from GeoSphereProceduralModel:

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

    Initializes a new instance of the GeoSphereProceduralModel 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


    GeoSphereProceduralModel()

    Initializes a new instance of the GeoSphereProceduralModel class.

    public GeoSphereProceduralModel()
    | 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