Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface MeshPrimitive

Geometry to be rendered with the given material.

Hierarchy

  • MeshPrimitive

Indexable

[k: string]: any

Geometry to be rendered with the given material.

Index

Properties

attributes

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.

Type declaration

Optional extensions

extensions: any

Optional extras

extras: any

Optional indices

indices: GlTfId

The index of the accessor that contains the indices.

Optional material

material: GlTfId

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

Optional mode

mode: 0 | 1 | 2 | 3 | 4 | 5 | 6 | number

The type of primitives to render.

Optional targets

targets: Array<{}>

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.