|
HDK
|
#include <Mesh.h>
Public Member Functions | |
| Mesh (const string &name) | |
| ~Mesh () | |
| const string & | getName () const |
| Return the name of this mesh. More... | |
| void | setSourceUri (const string &sourceUri) |
| Set the mesh's source URI. More... | |
| bool | hasSourceUri () const |
| Return true if this mesh has a source URI. More... | |
| const string & | getSourceUri () const |
| Return the mesh's source URI. More... | |
| MeshStreamPtr | getStream (const string &name) const |
| MeshStreamPtr | getStream (const string &type, unsigned int index) const |
| void | addStream (MeshStreamPtr stream) |
| Add a mesh stream. More... | |
| void | removeStream (MeshStreamPtr stream) |
| Remove a mesh stream. More... | |
| void | setVertexCount (size_t val) |
| Set vertex count. More... | |
| size_t | getVertexCount () const |
| Get vertex count. More... | |
| void | setMinimumBounds (const Vector3 &val) |
| Set the minimum bounds for the geometry. More... | |
| const Vector3 & | getMinimumBounds () const |
| Return the minimum bounds for the geometry. More... | |
| void | setMaximumBounds (const Vector3 &v) |
| Set the minimum bounds for the geometry. More... | |
| const Vector3 & | getMaximumBounds () const |
| Return the minimum bounds for the geometry. More... | |
| void | setSphereCenter (const Vector3 &val) |
| Set center of the bounding sphere. More... | |
| const Vector3 & | getSphereCenter () const |
| Return center of the bounding sphere. More... | |
| void | setSphereRadius (float val) |
| Set radius of the bounding sphere. More... | |
| float | getSphereRadius () const |
| Return radius of the bounding sphere. More... | |
| size_t | getPartitionCount () const |
| Return the number of mesh partitions. More... | |
| void | addPartition (MeshPartitionPtr partition) |
| Add a partition. More... | |
| MeshPartitionPtr | getPartition (size_t partIndex) const |
| Return a reference to a mesh partition. More... | |
| MeshStreamPtr | generateTextureCoordinates (MeshStreamPtr positionStream) |
| MeshStreamPtr | generateNormals (MeshStreamPtr positionStream) |
| MeshStreamPtr | generateTangents (MeshStreamPtr positionStream, MeshStreamPtr normalStream, MeshStreamPtr texcoordStream) |
| MeshStreamPtr | generateBitangents (MeshStreamPtr normalStream, MeshStreamPtr tangentStream) |
| void | mergePartitions () |
| Merge all mesh partitions into one. More... | |
| void | splitByUdims () |
| Split the mesh into a single partition per UDIM. More... | |
Static Public Member Functions | |
| static MeshPtr | create (const string &name) |
| Create a new mesh. More... | |
| Mesh::Mesh | ( | const string & | name | ) |
|
inline |
|
inline |
| MeshStreamPtr Mesh::generateBitangents | ( | MeshStreamPtr | normalStream, |
| MeshStreamPtr | tangentStream | ||
| ) |
| MeshStreamPtr Mesh::generateNormals | ( | MeshStreamPtr | positionStream | ) |
Generate face normals from the given positions.
| positionStream | Input position stream |
| MeshStreamPtr Mesh::generateTangents | ( | MeshStreamPtr | positionStream, |
| MeshStreamPtr | normalStream, | ||
| MeshStreamPtr | texcoordStream | ||
| ) |
| MeshStreamPtr Mesh::generateTextureCoordinates | ( | MeshStreamPtr | positionStream | ) |
Create texture coordinates from the given positions. The texture coordinates are all initialize to a zero value.
| positionStream | Input position stream |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void Mesh::mergePartitions | ( | ) |
Merge all mesh partitions into one.
|
inline |
|
inline |
| void Mesh::splitByUdims | ( | ) |
Split the mesh into a single partition per UDIM.