Vuo  0.4.3
VuoSceneParametricVertices.cc File Reference

## Description

VuoSceneParametricVertices 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

VuoList_VuoVertices VuoSceneParametricVertices_generate (char *xExp, char *yExp, char *zExp, char *uExp, char *vExp, VuoInteger uSubdivisions, VuoInteger vSubdivisions, bool closeU, bool closeV)
Generates a mesh (`VuoVertices`) given a set of mathematical expressions specifying a warped surface.

VuoPoint4d VuoSceneParametricVertices_faceNormal (VuoPoint4d a, VuoPoint4d b, VuoPoint4d c)
Calculates the face normal for position vertices `a`, `b`, and `c`.

void 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.

## Function Documentation

 void 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 VuoSceneParametricVertices_generate ( char * xExp, char * yExp, char * zExp, char * uExp, char * vExp, VuoInteger uSubdivisions, VuoInteger vSubdivisions, bool closeU, bool closeV )

Generates a mesh (`VuoVertices`) given a set of mathematical expressions specifying a warped surface.