NewtonMeshApplySphericalMapping

From Newton Wiki
Jump to: navigation, search


NewtonMeshApplySphericalMapping

void NewtonMeshApplySphericalMapping(const NewtonMesh* const mesh, int material, const dFloat* const aligmentMatrix)

Usage

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


Parameters

  • const NewtonMesh* mesh - is the pointer to the mesh primitive.
  • int material - handle to the graphical material (usually this is the handle of a texture object).
  • const dFloat* const aligmentMatrix

Return

  • (Procedure)

Description

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

See also

NewtonMeshApplyBoxMapping NewtonMeshApplyCylindricalMapping NewtonMeshCalculateVertexNormals