NewtonMeshApplyBoxMapping

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

NewtonMeshApplyBoxMapping


 void NewtonMeshApplyBoxMapping (const NewtonMesh* mesh, int front, int side, int top);

Usage

Generates UV coordinates for the vertices in the mesh primitive using box coordinate mapping.

Parameters

  • const NewtonMesh* mesh - is the pointer to the mesh primitive.
  • int front - handle to the graphical material used for the front and back faces (usually this is the handle of a texture object).
  • int side - handle to the graphical material used for the left and right side faces (usually this is the handle of a texture object).
  • int top - handle to the graphical material used for the top and bottom faces (usually this is the handle of a texture object).

Return

  • Nothing.

Description

Generates UV coordinates for the vertices in the mesh primitive using box coordinate mapping.

Remarks

  • Added since Newton 2.0

See also

NewtonMeshApplySphericalMapping NewtonMeshApplyCylindricalMapping NewtonMeshCalculateVertexNormals