Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    Mesh Class

    Namespace: Stride.Rendering
    Assembly: Stride.Rendering.dll
    System.Object → Mesh
    Derived from Mesh:

    [DataContract]
    public class Mesh
    Name Description
    Constructors
    Mesh()

    Initializes a new instance of the Mesh class.

    Mesh(Mesh)

    Initializes a new instance of the Mesh class using a shallow copy constructor.

    Mesh(MeshDraw, ParameterCollection)

    Initializes a new instance of the Mesh class.

    Fields
    BoundingBox

    Gets or sets the bounding box encompassing this Mesh.

    BoundingSphere

    Gets the bounding sphere

    Name
    NodeIndex

    Index of the transformation node in Model.

    Skinning
    Properties
    Draw
    MaterialIndex
    Parameters
    | Improve this Doc View Source

    Constructors


    Mesh()

    Initializes a new instance of the Mesh class.

    public Mesh()

    Mesh(Mesh)

    Initializes a new instance of the Mesh class using a shallow copy constructor.

    public Mesh(Mesh mesh)
    Parameters
    Type Name Description
    Mesh mesh

    The mesh.


    Mesh(MeshDraw, ParameterCollection)

    Initializes a new instance of the Mesh class.

    public Mesh(MeshDraw meshDraw, ParameterCollection parameters)
    Parameters
    Type Name Description
    MeshDraw meshDraw

    The mesh draw.

    ParameterCollection parameters

    The parameters.

    Exceptions
    Type Condition
    System.ArgumentNullException

    parameters

    | Improve this Doc View Source

    Fields


    BoundingBox

    Gets or sets the bounding box encompassing this Mesh.

    public BoundingBox BoundingBox
    Field Value
    Type Description
    BoundingBox

    BoundingSphere

    Gets the bounding sphere

    public BoundingSphere BoundingSphere
    Field Value
    Type Description
    BoundingSphere

    Name

    public string Name
    Field Value
    Type Description
    System.String

    NodeIndex

    Index of the transformation node in Model.

    public int NodeIndex
    Field Value
    Type Description
    System.Int32

    Skinning

    public MeshSkinningDefinition Skinning
    Field Value
    Type Description
    MeshSkinningDefinition
    | Improve this Doc View Source

    Properties


    Draw

    public MeshDraw Draw { get; set; }
    Property Value
    Type Description
    MeshDraw

    MaterialIndex

    public int MaterialIndex { get; set; }
    Property Value
    Type Description
    System.Int32

    Parameters

    public ParameterCollection Parameters { get; }
    Property Value
    Type Description
    ParameterCollection

    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