Vuo  0.5.1
VuoVerticesParametric.cc File Reference

Description

VuoVerticesParametric implementation.

Macros

Constant for converting degrees to radians.

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.

Macro Definition Documentation

Constant for converting degrees to radians.

 #define PI   3.14159265359

Constant providing the ratio of a circle's circumference to its diameter.

Constant for converting radians to degrees.

Function Documentation

 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

 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.