Search Results for

    Show / Hide Table of Contents

    Class MeshPrimitive

    Inheritance
    object
    MeshPrimitive
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: glTFLoader.Schema
    Assembly: Evergine.Assets.dll
    Syntax
    public class MeshPrimitive

    Properties

    Attributes

    A dictionary object, where each key corresponds to mesh attribute semantic and each value is the index of the accessor containing attribute's data.

    Declaration
    [JsonRequired]
    [JsonProperty("attributes")]
    public Dictionary<string, int> Attributes { get; set; }
    Property Value
    Type Description
    Dictionary<string, int>

    Extensions

    Dictionary object with extension-specific objects.

    Declaration
    [JsonProperty("extensions")]
    public Dictionary<string, object> Extensions { get; set; }
    Property Value
    Type Description
    Dictionary<string, object>

    Extras

    Application-specific data.

    Declaration
    [JsonProperty("extras")]
    public Extras Extras { get; set; }
    Property Value
    Type Description
    Extras

    Indices

    The index of the accessor that contains the indices.

    Declaration
    [JsonProperty("indices")]
    public int? Indices { get; set; }
    Property Value
    Type Description
    int?

    Material

    The index of the material to apply to this primitive when rendering.

    Declaration
    [JsonProperty("material")]
    public int? Material { get; set; }
    Property Value
    Type Description
    int?

    Mode

    The type of primitives to render.

    Declaration
    [JsonProperty("mode")]
    public MeshPrimitive.ModeEnum Mode { get; set; }
    Property Value
    Type Description
    MeshPrimitive.ModeEnum

    Targets

    An array of Morph Targets, each Morph Target is a dictionary mapping attributes (only POSITION, NORMAL, and TANGENT supported) to their deviations in the Morph Target.

    Declaration
    [JsonProperty("targets")]
    public Dictionary<string, int>[] Targets { get; set; }
    Property Value
    Type Description
    Dictionary<string, int>[]

    Methods

    ShouldSerializeAttributes()

    Declaration
    public bool ShouldSerializeAttributes()
    Returns
    Type Description
    bool

    ShouldSerializeExtensions()

    Declaration
    public bool ShouldSerializeExtensions()
    Returns
    Type Description
    bool

    ShouldSerializeExtras()

    Declaration
    public bool ShouldSerializeExtras()
    Returns
    Type Description
    bool

    ShouldSerializeIndices()

    Declaration
    public bool ShouldSerializeIndices()
    Returns
    Type Description
    bool

    ShouldSerializeMaterial()

    Declaration
    public bool ShouldSerializeMaterial()
    Returns
    Type Description
    bool

    ShouldSerializeMode()

    Declaration
    public bool ShouldSerializeMode()
    Returns
    Type Description
    bool

    ShouldSerializeTargets()

    Declaration
    public bool ShouldSerializeTargets()
    Returns
    Type Description
    bool

    Extension Methods

    ReflectionHelper.GetMemberAssembly(object)
    ReflectionHelper.GetTypeName(object)
    In This Article
    Back to top
    Generated by DocFX