Class MeshPrimitive
Inheritance
MeshPrimitive
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
Extensions
Dictionary object with extension-specific objects.
Declaration
[JsonProperty("extensions")]
public Dictionary<string, object> Extensions { get; set; }
Property Value
Application-specific data.
Declaration
[JsonProperty("extras")]
public Extras Extras { get; set; }
Property Value
Indices
The index of the accessor that contains the indices.
Declaration
[JsonProperty("indices")]
public int? Indices { get; set; }
Property Value
Material
The index of the material to apply to this primitive when rendering.
Declaration
[JsonProperty("material")]
public int? Material { get; set; }
Property Value
Mode
The type of primitives to render.
Declaration
[JsonProperty("mode")]
public MeshPrimitive.ModeEnum Mode { get; set; }
Property Value
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
Methods
ShouldSerializeAttributes()
Declaration
public bool ShouldSerializeAttributes()
Returns
ShouldSerializeExtensions()
Declaration
public bool ShouldSerializeExtensions()
Returns
Declaration
public bool ShouldSerializeExtras()
Returns
ShouldSerializeIndices()
Declaration
public bool ShouldSerializeIndices()
Returns
ShouldSerializeMaterial()
Declaration
public bool ShouldSerializeMaterial()
Returns
ShouldSerializeMode()
Declaration
public bool ShouldSerializeMode()
Returns
ShouldSerializeTargets()
Declaration
public bool ShouldSerializeTargets()
Returns
Extension Methods