NewtonMeshApplyCylindricalMapping

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

NewtonMeshApplyCylindricalMapping


 void NewtonMeshApplyCylindricalMapping (const NewtonMesh* mesh, int cylinderMaterial, int capMaterial);

Usage

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

Parameters

  • const NewtonMesh* mesh - is the pointer to the mesh primitive.
  • int cylinderMaterial - handle to the graphical material used for the cylinder cope (usually this is the handle of a texture object).
  • int capMaterial - handle to the graphical material used for the cylinder caps (usually this is the handle of a texture object).

Return

  • Nothing.

Description

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

Remarks

  • Added since Newton 2.0

See also

NewtonMeshApplySphericalMapping NewtonMeshApplyBoxMapping NewtonMeshCalculateVertexNormals