Vuo
0.4.6
|
VuoVerticesParametric implementation.
Macros | |
#define | DEG2RAD 0.0174532925 |
Constant for converting degrees to radians. | |
#define | RAD2DEG 57.2957795 |
Constant for converting radians to degrees. | |
#define | PI 3.14159265359 |
Constant providing the ratio of a circle's circumference to its diameter. | |
Functions | |
void | VuoVerticesParametric_calculateTangentArray (int vertexCount, const VuoPoint4d *vertex, const VuoPoint4d *normal, const VuoPoint4d *texcoord, int triangleCount, const int *triangle, VuoPoint4d *tangent, VuoPoint4d *bitangent) |
Calculates tangents and bitangents for a mesh given vertices, textures, normals, and triangles. | |
VuoList_VuoVertices | VuoVerticesParametric_generate (VuoText xExp, VuoText yExp, VuoText zExp, VuoText uExp, VuoText vExp, VuoInteger uSubdivisions, VuoInteger vSubdivisions, bool closeU, bool closeV) |
Generates a mesh (VuoVertices ) given a set of mathematical expressions specifying a warped surface. | |
void VuoVerticesParametric_calculateTangentArray | ( | int | vertexCount, |
const VuoPoint4d * | vertex, | ||
const VuoPoint4d * | normal, | ||
const VuoPoint4d * | texcoord, | ||
int | triangleCount, | ||
const int * | triangle, | ||
VuoPoint4d * | tangent, | ||
VuoPoint4d * | bitangent | ||
) |
Calculates tangents and bitangents for a mesh given vertices, textures, normals, and triangles.
Assumes triangles are wound using VuoVertices_IndividualTriangles. Lengyel, Eric. “Computing Tangent Space Basis Vectors for an Arbitrary Mesh”. Terathon Software 3D Graphics Library, 2001. http://www.terathon.com/code/tangent.html