Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    PlaneProceduralModel Class

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

    The geometric descriptor for a plane.

    System.Object → PrimitiveProceduralModelBase → PlaneProceduralModel
    Derived from PlaneProceduralModel:

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

    Initializes a new instance of geometric descriptor for a plane.

    Properties
    GenerateBackFace

    Gets or sets value indicating if a back face should be added.

    Normal

    Gets or sets the normal direction of the plane.

    Size

    Gets or sets the size of the plane.

    Tessellation

    Gets or sets the tessellation of the plane.

    Methods
    CreatePrimitiveMeshData()
    | Improve this Doc View Source

    Constructors


    PlaneProceduralModel()

    Initializes a new instance of geometric descriptor for a plane.

    public PlaneProceduralModel()
    | Improve this Doc View Source

    Properties


    GenerateBackFace

    Gets or sets value indicating if a back face should be added.

    [DataMember(50)]
    [Display("Back Face", null)]
    public bool GenerateBackFace { get; set; }
    Property Value
    Type Description
    System.Boolean

    Normal

    Gets or sets the normal direction of the plane.

    [DataMember(40)]
    [Display("Normal", null)]
    public NormalDirection Normal { get; set; }
    Property Value
    Type Description
    NormalDirection

    Size

    Gets or sets the size of the plane.

    [DataMember(10)]
    [Display("Size", null)]
    public Vector2 Size { get; set; }
    Property Value
    Type Description
    Vector2

    The size x.


    Tessellation

    Gets or sets the tessellation of the plane.

    [DataMember(20)]
    [Display("Tessellation", null)]
    public Int2 Tessellation { get; set; }
    Property Value
    Type Description
    Int2

    The tessellation x.

    | 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