Vuo  0.8.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros | Functions
VuoMeshParametric.cc File Reference

Description

VuoMeshParametric implementation.

Macros

#define PI   3.14159265359
 Constant providing the ratio of a circle's circumference to its diameter.
 

Functions

static double deg2rad (double degrees)
 Converts degrees to radians.
 
static double rad2deg (double radians)
 Converts radians to degrees.
 
static VuoPoint4d VuoMeshParametric_faceNormal (VuoPoint4d a, VuoPoint4d b, VuoPoint4d c)
 Calculates the face normal for position vertices a, b, and c.
 
void VuoMeshParametric_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.
 
VuoMesh VuoMeshParametric_generate (VuoReal time, VuoText xExp, VuoText yExp, VuoText zExp, VuoInteger uSubdivisions, VuoInteger vSubdivisions, bool closeU, VuoReal uMin, VuoReal uMax, bool closeV, VuoReal vMin, VuoReal vMax)
 Generates a mesh given a set of mathematical expressions specifying a warped surface.
 
static double sinInDegrees (double degrees)
 Trigonometric functions that take degrees instead of radians.
 
static double cosInDegrees (double degrees)
 Trigonometric functions that take degrees instead of radians.
 
static double tanInDegrees (double degrees)
 Trigonometric functions that take degrees instead of radians.
 
static double asinInDegrees (double x)
 Trigonometric functions that take degrees instead of radians.
 
static double acosInDegrees (double x)
 Trigonometric functions that take degrees instead of radians.
 
static double atanInDegrees (double x)
 Trigonometric functions that take degrees instead of radians.
 
static double sinhInDegrees (double degrees)
 Trigonometric functions that take degrees instead of radians.
 
static double coshInDegrees (double degrees)
 Trigonometric functions that take degrees instead of radians.
 
static double tanhInDegrees (double degrees)
 Trigonometric functions that take degrees instead of radians.
 
static double asinhInDegrees (double x)
 Trigonometric functions that take degrees instead of radians.
 
static double acoshInDegrees (double x)
 Trigonometric functions that take degrees instead of radians.
 
static double atanhInDegrees (double x)
 Trigonometric functions that take degrees instead of radians.
 

Macro Definition Documentation

#define PI   3.14159265359

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

Function Documentation

static double acoshInDegrees ( double  x)
static

Trigonometric functions that take degrees instead of radians.

static double acosInDegrees ( double  x)
static

Trigonometric functions that take degrees instead of radians.

static double asinhInDegrees ( double  x)
static

Trigonometric functions that take degrees instead of radians.

static double asinInDegrees ( double  x)
static

Trigonometric functions that take degrees instead of radians.

static double atanhInDegrees ( double  x)
static

Trigonometric functions that take degrees instead of radians.

static double atanInDegrees ( double  x)
static

Trigonometric functions that take degrees instead of radians.

static double coshInDegrees ( double  degrees)
static

Trigonometric functions that take degrees instead of radians.

static double cosInDegrees ( double  degrees)
static

Trigonometric functions that take degrees instead of radians.

static double deg2rad ( double  degrees)
static

Converts degrees to radians.

static double rad2deg ( double  radians)
static

Converts radians to degrees.

static double sinhInDegrees ( double  degrees)
static

Trigonometric functions that take degrees instead of radians.

static double sinInDegrees ( double  degrees)
static

Trigonometric functions that take degrees instead of radians.

static double tanhInDegrees ( double  degrees)
static

Trigonometric functions that take degrees instead of radians.

static double tanInDegrees ( double  degrees)
static

Trigonometric functions that take degrees instead of radians.

void VuoMeshParametric_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 VuoMesh_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

static VuoPoint4d VuoMeshParametric_faceNormal ( VuoPoint4d  a,
VuoPoint4d  b,
VuoPoint4d  c 
)
inlinestatic

Calculates the face normal for position vertices a, b, and c.

VuoMesh VuoMeshParametric_generate ( VuoReal  time,
VuoText  xExp,
VuoText  yExp,
VuoText  zExp,
VuoInteger  uSubdivisions,
VuoInteger  vSubdivisions,
bool  closeU,
VuoReal  uMin,
VuoReal  uMax,
bool  closeV,
VuoReal  vMin,
VuoReal  vMax 
)

Generates a mesh given a set of mathematical expressions specifying a warped surface.