primitive

vgl. primitive

new primitive() → {vgl.primitive}

Description:
  • Create a new instance of class primitive.

Source:
Returns:
Type
vgl.primitive

Methods

indices() → {Uint16Array}

Description:
  • Get indices of the primitive.

Source:
Returns:
Type
Uint16Array

indicesValueType() → {number}

Description:
  • Return indices value type.

Source:
Returns:
Type
number

numberOfIndices() → {number}

Description:
  • Return the number of indices.

Source:
Returns:

The number of indices.

Type
number

setIndices(indicesArray)

Description:
  • Set indices from a array.

Source:
Parameters:
Name Type Description
indicesArray Array

The array of new indices.

setIndicesValueType(type)

Description:
  • Set indices value type.

Source:
Parameters:
Name Type Description
type number

setPrimitiveType(type)

Description:
  • Set primitive type.

Source:
Parameters:
Name Type Description
type number

The new type.