3ds Max C++ API Reference
IMeshFlattener::TextureCoordChannel Struct 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< Point3coords
 The texture coordinate (UVW) values, one for each vertex in the mesh. More...
 
std::vector< Point3tangentsU
 The tangent basis vector, pointing in the U direction - one for each vertex in the mesh. More...
 
std::vector< Point3tangentsV
 The tangent basis vector, pointing in the V direction - one for each vertex in the mesh. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ TextureCoordChannel() [1/2]

TextureCoordChannel ( )
inline

The default constructor doesn't initialize anything explicitly.

103 {}

◆ TextureCoordChannel() [2/2]

TextureCoordChannel ( const unsigned int  p_channel_id,
const size_t  num_coords 
)
inline

Initializes the container with the given channel ID and number of vertices.

106 : channel_id(p_channel_id), coords(num_coords), tangentsU(num_coords), tangentsV(num_coords) {}
std::vector< Point3 > coords
The texture coordinate (UVW) values, one for each vertex in the mesh.
Definition: IMeshFlattener.h:112
std::vector< Point3 > tangentsV
The tangent basis vector, pointing in the V direction - one for each vertex in the mesh.
Definition: IMeshFlattener.h:117
std::vector< Point3 > tangentsU
The tangent basis vector, pointing in the U direction - one for each vertex in the mesh.
Definition: IMeshFlattener.h:115
unsigned int channel_id
The ID of the texture channel, as used with Mesh::mapVerts()
Definition: IMeshFlattener.h:109

Member Data Documentation

◆ channel_id

unsigned int channel_id

The ID of the texture channel, as used with Mesh::mapVerts()

◆ coords

std::vector<Point3> coords

The texture coordinate (UVW) values, one for each vertex in the mesh.

◆ tangentsU

std::vector<Point3> tangentsU

The tangent basis vector, pointing in the U direction - one for each vertex in the mesh.

◆ tangentsV

std::vector<Point3> tangentsV

The tangent basis vector, pointing in the V direction - one for each vertex in the mesh.