|
| Mesh (const string &name) |
|
const string & | getName () const |
| Return the name of this mesh.
|
|
void | setSourceUri (const string &sourceUri) |
| Set the mesh's source URI.
|
|
bool | hasSourceUri () const |
| Return true if this mesh has a source URI.
|
|
const string & | getSourceUri () const |
| Return the mesh's source URI.
|
|
MeshStreamPtr | getStream (const string &name) const |
| Get a mesh stream by name. More...
|
|
MeshStreamPtr | getStream (const string &type, unsigned int index) const |
| Get a mesh stream by type and index. More...
|
|
void | addStream (MeshStreamPtr stream) |
| Add a mesh stream.
|
|
void | removeStream (MeshStreamPtr stream) |
| Remove a mesh stream.
|
|
void | setVertexCount (size_t val) |
| Set vertex count.
|
|
size_t | getVertexCount () const |
| Get vertex count.
|
|
void | setMinimumBounds (const Vector3 &val) |
| Set the minimum bounds for the geometry.
|
|
const Vector3 & | getMinimumBounds () const |
| Return the minimum bounds for the geometry.
|
|
void | setMaximumBounds (const Vector3 &v) |
| Set the minimum bounds for the geometry.
|
|
const Vector3 & | getMaximumBounds () const |
| Return the minimum bounds for the geometry.
|
|
void | setSphereCenter (const Vector3 &val) |
| Set center of the bounding sphere.
|
|
const Vector3 & | getSphereCenter () const |
| Return center of the bounding sphere.
|
|
void | setSphereRadius (float val) |
| Set radius of the bounding sphere.
|
|
float | getSphereRadius () const |
| Return radius of the bounding sphere.
|
|
size_t | getPartitionCount () const |
| Return the number of mesh partitions.
|
|
void | addPartition (MeshPartitionPtr partition) |
| Add a partition.
|
|
MeshPartitionPtr | getPartition (size_t partIndex) const |
| Return a reference to a mesh partition.
|
|
MeshStreamPtr | generateTextureCoordinates (MeshStreamPtr positionStream) |
| Create texture coordinates from the given positions. More...
|
|
MeshStreamPtr | generateNormals (MeshStreamPtr positionStream) |
| Generate face normals from the given positions. More...
|
|
MeshStreamPtr | generateTangents (MeshStreamPtr positionStream, MeshStreamPtr normalStream, MeshStreamPtr texcoordStream) |
| Generate tangents from the given positions, normals, and texture coordinates. More...
|
|
MeshStreamPtr | generateBitangents (MeshStreamPtr normalStream, MeshStreamPtr tangentStream) |
| Generate bitangents from the given normals and tangents. More...
|
|
void | mergePartitions () |
| Merge all mesh partitions into one.
|
|
void | splitByUdims () |
| Split the mesh into a single partition per UDIM.
|
|