Difference between revisions of "NewtonMeshApplyBoxMapping"

From Newton Wiki
Jump to: navigation, search
m (1 revision imported)
 
Line 3: Line 3:
 
{{WIP|This function interface is not final and is subject to change in the future}}
 
{{WIP|This function interface is not final and is subject to change in the future}}
  
  void NewtonMeshApplyBoxMapping (const NewtonMesh* mesh, int front, int side, int top);
+
void NewtonMeshApplyBoxMapping(const NewtonMesh* const mesh, int frontMaterial, int sideMaterial, int topMaterial, const dFloat* const aligmentMatrix)
  
 
== Usage ==
 
== Usage ==
Line 15: Line 15:
 
* 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 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).
 
* 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 ==
 
== Return ==

Latest revision as of 05:43, 18 June 2019

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