NewtonMesh* NewtonMeshCreate(const NewtonWorld* const newtonWorld)
Creates an empty mesh primitive.
- const NewtonWorld* const newtonWorld
- NewtonMesh* Pointer to the mesh primitive.
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.
- 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