Class MeshPrimitive

MeshPrimitive class

Geometry to be rendered with the given material.

public sealed class MeshPrimitive : ExtraProperties, IChildOf<Mesh>

Properties

NameDescription
DrawPrimitiveType { get; set; }
Extensions { get; }Gets a collection of JsonSerializable instances.
Extras { get; set; }Gets or sets the extras content of this instance.
IndexAccessor { get; set; }
LogicalIndex { get; }Gets the zero-based index of this MeshPrimitive at Primitives.
LogicalParent { get; }Gets the Mesh instance that owns this MeshPrimitive instance.
Material { get; set; }Gets or sets the Material instance, or null.
MorphTargetsCount { get; }
VertexAccessors { get; }

Methods

NameDescription
GetBufferViews(bool, bool, bool)
GetExtension<T>()
GetIndexAccessor()
GetIndices()Gets the raw list of indices of this primitive.
GetLineIndices()Decodes the raw indices and returns a list of indexed lines.
GetMorphTargetAccessors(int)
GetPointIndices()Decodes the raw indices and returns a list of indexed points.
GetTriangleIndices()Decodes the raw indices and returns a list of indexed triangles.
GetVertexAccessor(string)
GetVertexAccessorsByBuffer(BufferView)
GetVertices(string)
RemoveExtensions<T>()
RemoveExtensions<T>(T)
SetExtension<T>(T)
SetIndexAccessor(Accessor)
SetMorphTargetAccessors(int, IReadOnlyDictionary<string, Accessor>)
SetVertexAccessor(string, Accessor)
UseExtension<T>()

See Also