3ds Max C++ API Reference
|
Contains the vertex UVW coordinates for a single texture coordinate channel. More...
#include <IMeshFlattener.h>
Public Member Functions | |
TextureCoordChannel () | |
The default constructor doesn't initialize anything explicitly. More... | |
TextureCoordChannel (const unsigned int p_channel_id, const size_t num_coords) | |
Initializes the container with the given channel ID and number of vertices. More... | |
Public Attributes | |
unsigned int | channel_id |
The ID of the texture channel, as used with Mesh::mapVerts() More... | |
std::vector< Point3 > | coords |
The texture coordinate (UVW) values, one for each vertex in the mesh. More... | |
std::vector< Point3 > | tangentsU |
The tangent basis vector, pointing in the U direction - one for each vertex in the mesh. More... | |
std::vector< Point3 > | tangentsV |
The tangent basis vector, pointing in the V direction - one for each vertex in the mesh. More... | |
Contains the vertex UVW coordinates for a single texture coordinate channel.
A mesh may define an arbitrary number of UVW coordinate channels. Each channel associates a single UVW coordinate to each vertex in the mesh. Channels are defined by an ID (not an index), and such IDs are defined sparsely - i.e. a mesh may define UVW channels 0,1,5.
|
inline |
|
inline |
Initializes the container with the given channel ID and number of vertices.
unsigned int channel_id |
The ID of the texture channel, as used with Mesh::mapVerts()
std::vector<Point3> coords |
The texture coordinate (UVW) values, one for each vertex in the mesh.
std::vector<Point3> tangentsU |
The tangent basis vector, pointing in the U direction - one for each vertex in the mesh.
std::vector<Point3> tangentsV |
The tangent basis vector, pointing in the V direction - one for each vertex in the mesh.