Difference between revisions of "NewtonMeshApplyCylindricalMapping"
m (1 revision imported) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{WIP|This function interface is not final and is subject to change in the future}} | ||
+ | |||
== NewtonMeshApplyCylindricalMapping == | == NewtonMeshApplyCylindricalMapping == | ||
− | + | void NewtonMeshApplyCylindricalMapping(const NewtonMesh* const mesh, int cylinderMaterial, int capMaterial, const dFloat* const aligmentMatrix) | |
− | |||
− | |||
== Usage == | == Usage == | ||
Line 14: | Line 14: | ||
* int cylinderMaterial - handle to the graphical material used for the cylinder cope (usually this is the handle of a texture object). | * 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). | * int capMaterial - handle to the graphical material used for the cylinder caps (usually this is the handle of a texture object). | ||
+ | * const dFloat* const aligmentMatrix | ||
== Return == | == Return == |
Latest revision as of 05:45, 18 June 2019
Work In Progress: This function interface is not final and is subject to change in the future |
Contents
NewtonMeshApplyCylindricalMapping
void NewtonMeshApplyCylindricalMapping(const NewtonMesh* const mesh, int cylinderMaterial, int capMaterial, const dFloat* const aligmentMatrix)
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).
- const dFloat* const aligmentMatrix
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