NewtonMeshApplyBoxMapping

From Newton Wiki
Revision as of 05:43, 18 June 2019 by WikiSysop (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

NewtonMeshApplyBoxMapping


void NewtonMeshApplyBoxMapping(const NewtonMesh* const mesh, int frontMaterial, int sideMaterial, int topMaterial, const dFloat* const aligmentMatrix)

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).
  • const dFloat* const aligmentMatrix

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