NewtonMeshCreate

From Newton Wiki
Jump to: navigation, search

NewtonMeshCreate

NewtonMesh* NewtonMeshCreate(const NewtonWorld* const newtonWorld)

Usage

Creates an empty mesh primitive.

Parameters

  • const NewtonWorld* const newtonWorld

Return

  • NewtonMesh* Pointer to the mesh primitive.

Description

Creates an empty mesh primitive. Meshes represent generic geometric objects.

In Newton mesh primitives accomplish the goal to exchange geometry data between the physics sub-system and the rendering sub-system. Mesh primitives contain vertex and index streams. For vertices not just the position is stored in this object but also vertex normals and UV texture coordinates.

Remarks

  • Added since Newton 2.0
  • No need to pass a Newton world as parameter as meshes does not belong to physics worlds, however, it is needed to have at least an existing Newton world in order to use the mesh functionalities

See also

NewtonMeshCreateFromCollision NewtonMeshDestroy