VuoMeshUtility interface.
Definition in file VuoMeshUtility.h.
Go to the source code of this file.
Functions | |
void | VuoMeshUtility_calculateNormals (VuoMesh mesh) |
Generate normals for this mesh. More... | |
void | VuoMeshUtility_calculateTangents (VuoMesh mesh) |
Generate tangents and bitangents for this mesh. More... | |
void | VuoMeshUtility_calculateSphericalUVs (VuoMesh mesh) |
Generate spherical UVs for this mesh. More... | |
void | VuoMeshUtility_calculateCubicUVs (VuoMesh mesh) |
Generate cubic UVs for this mesh. More... | |
void | VuoMeshUtility_calculateCubicUVsPerTriangle (VuoMesh mesh) |
Generate cubic UVs for this mesh, using the triangle normal to project UV instead of vertex normal. More... | |
void | VuoMeshUtility_insertSeam (VuoMesh mesh) |
Inserts a seam along a vertical line on the left side of a mesh. More... | |
void | VuoMeshUtility_removeUnusedVertices (VuoMesh mesh) |
Remove unused vertices in a mesh. More... | |
static VuoPoint4d | VuoMeshUtility_faceNormal (VuoPoint4d a, VuoPoint4d b, VuoPoint4d c) |
Calculates the face normal for position vertices a , b , and c . More... | |
void VuoMeshUtility_calculateCubicUVs | ( | VuoMesh | mesh | ) |
Generate cubic UVs for this mesh.
Works best with IndividualTriangles meshes where no vertex is shared between triangles.
Definition at line 439 of file VuoMeshUtility.cc.
void VuoMeshUtility_calculateCubicUVsPerTriangle | ( | VuoMesh | mesh | ) |
Generate cubic UVs for this mesh, using the triangle normal to project UV instead of vertex normal.
Definition at line 487 of file VuoMeshUtility.cc.
void VuoMeshUtility_calculateNormals | ( | VuoMesh | mesh | ) |
Generate normals for this mesh.
Generate normals for this mesh.
Vertices pointed at by multiple element indices will be averaged.
Definition at line 60 of file VuoMeshUtility.cc.
void VuoMeshUtility_calculateSphericalUVs | ( | VuoMesh | mesh | ) |
Generate spherical UVs for this mesh.
Generate spherical UVs for this mesh.
https://en.wikipedia.org/wiki/UV_mapping
Definition at line 328 of file VuoMeshUtility.cc.
void VuoMeshUtility_calculateTangents | ( | VuoMesh | mesh | ) |
Generate tangents and bitangents for this mesh.
Generate tangents and bitangents for this mesh.
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
Definition at line 145 of file VuoMeshUtility.cc.
|
inlinestatic |
Calculates the face normal for position vertices a
, b
, and c
.
Definition at line 61 of file VuoMeshUtility.h.
void VuoMeshUtility_insertSeam | ( | VuoMesh | mesh | ) |
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.
Definition at line 572 of file VuoMeshUtility.cc.
void VuoMeshUtility_removeUnusedVertices | ( | VuoMesh | mesh | ) |
Remove unused vertices in a mesh.
This should usually be called after a seam is inserted.
Remove unused vertices in a mesh.
Definition at line 711 of file VuoMeshUtility.cc.