Vuo  1.2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
VuoMeshUtility.h File Reference

Description

VuoMeshUtility interface.

Functions

void VuoMeshUtility_calculateNormals (VuoSubmesh *submesh)
 Generate normals for this submesh.
 
void VuoMeshUtility_calculateTangents (VuoSubmesh *submesh)
 Generate tangents and bitangents for this submesh.
 
void VuoMeshUtility_calculateSphericalUVs (VuoSubmesh *submesh)
 Generate spherical UVs for this submesh.
 
void VuoMeshUtility_calculateCubicUVs (VuoSubmesh *submesh)
 Generate cubic UVs for this submesh.
 
void VuoMeshUtility_calculateCubicUVsPerTriangle (VuoSubmesh *submesh)
 Generate cubic UVs for this submesh, using the triangle normal to project UV instead of vertex normal.
 
void VuoMeshUtility_insertSeam (VuoSubmesh *submesh)
 Inserts a seam along a vertical line on the left side of a mesh.
 
void VuoMeshUtility_removeUnusedVertices (VuoSubmesh *mesh)
 Remove unused vertices in a mesh.
 
static VuoPoint4d VuoMeshUtility_faceNormal (VuoPoint4d a, VuoPoint4d b, VuoPoint4d c)
 Calculates the face normal for position vertices a, b, and c.
 

Function Documentation

void VuoMeshUtility_calculateCubicUVs ( VuoSubmesh submesh)

Generate cubic UVs for this submesh.

Works best with IndividualTriangles meshes where no vertex is shared between triangles.

void VuoMeshUtility_calculateCubicUVsPerTriangle ( VuoSubmesh submesh)

Generate cubic UVs for this submesh, using the triangle normal to project UV instead of vertex normal.

void VuoMeshUtility_calculateNormals ( VuoSubmesh submesh)

Generate normals for this submesh.

Generate normals for this submesh.

Vertices pointed at by multiple element indices will be averaged.

void VuoMeshUtility_calculateSphericalUVs ( VuoSubmesh submesh)

Generate spherical UVs for this submesh.

Generate spherical UVs for this submesh.

http://en.wikipedia.org/wiki/UV_mapping

void VuoMeshUtility_calculateTangents ( VuoSubmesh submesh)

Generate tangents and bitangents for this submesh.

Generate tangents and bitangents for this submesh.

Assumes triangles are wound using VuoMesh_IndividualTriangles, and that the positions, textures, normals, and triangles arrays are valid. 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 VuoMeshUtility_faceNormal ( VuoPoint4d  a,
VuoPoint4d  b,
VuoPoint4d  c 
)
inlinestatic

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

void VuoMeshUtility_insertSeam ( VuoSubmesh submesh)

Inserts a seam along a vertical line on the left side of a mesh.

Inserts a seam along a vertical line on the left side of a mesh.

May (probably will) leave unused vertices.

void VuoMeshUtility_removeUnusedVertices ( VuoSubmesh mesh)

Remove unused vertices in a mesh.

This should usually be called after a seam is inserted.