NewtonMeshMaterialGetIndexStreamShort

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NewtonMeshMaterialGetIndexStreamShort

void NewtonMeshMaterialGetIndexStreamShort (const NewtonMesh* const mesh, void* const handle, int materialId, short int* const index)

Usage

Returns the vertex indices of the faces of the mesh which share the given material.

Parameters

  • const NewtonMesh* mesh - pointer to the mesh primitive.
  • int materialHandle - the mesh material handle.
  • short int* index - pointer to the storage in memory which will hold the indices.

Return

  • Nothing.

Description

Returns the vertex indices of the faces of the mesh which share the given material.

Remarks

  • Added in Newton 2.0
  • The memory are pointed by index shall have enough room for the index data
  • If the number of indices in the mesh is too large to fit into short ints use NewtonMeshMaterialGetIndexStream instead

See also

NewtonMeshMaterialGetIndexCount NewtonMeshMaterialGetIndexStream