NewtonMeshApplyBoxMapping
Contents
NewtonMeshApplyBoxMapping
Work In Progress: This function interface is not final and is subject to change in the future |
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