Vuo  2.3.2
Functions
VuoMeshUtility.h File Reference

Description

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_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 VuoPoint3d VuoMeshUtility_faceNormal (VuoPoint3d a, VuoPoint3d b, VuoPoint3d c)
 Calculates the face normal for position vertices a, b, and c. More...
 

Function Documentation

◆ VuoMeshUtility_calculateCubicUVs()

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 267 of file VuoMeshUtility.cc.

◆ VuoMeshUtility_calculateCubicUVsPerTriangle()

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 319 of file VuoMeshUtility.cc.

◆ VuoMeshUtility_calculateNormals()

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 34 of file VuoMeshUtility.cc.

◆ VuoMeshUtility_calculateSphericalUVs()

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 154 of file VuoMeshUtility.cc.

◆ VuoMeshUtility_faceNormal()

static VuoPoint3d VuoMeshUtility_faceNormal ( VuoPoint3d  a,
VuoPoint3d  b,
VuoPoint3d  c 
)
inlinestatic

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

Definition at line 56 of file VuoMeshUtility.h.

◆ VuoMeshUtility_insertSeam()

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 397 of file VuoMeshUtility.cc.

◆ VuoMeshUtility_removeUnusedVertices()

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 536 of file VuoMeshUtility.cc.