- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Directories
- Examples

- Class List
- Class Hierarchy
- Class Members

Classes

# UVGeneratorNode Class Reference

Search for all occurrences

## Detailed Description

This class is used to create a UV layout for a mesh.

To quickly generate a set of UVs create a node of this type, and call GenerateUVs

UVGeneratorNode* pUVGen = myMesh->ChildByClass<UVGeneratorNode>(true);

Optional: Set the texture resolution of face 1 to 32 x 32. pUVGen->SetFaceSize( 1, 32, 32 );

pUVGen->GenerateUVs( false );

myMesh now has an auto-generated UV layout. If the mesh is not going to be used in UVlessPainting mode (See Mesh::UVlessPaintingStatus) pUVGen can be deleted after calling UVGeneratorNode::GenerateUVs()

Examples:

  PtexExtractor/PtexLayout.cpp, PtexExtractor/PtexLayout.h, PtexExtractor/PtexPaintExporter.cpp, and PtexExtractor/PtexPaintExporter.h.

Definition at line 31 of file UVGeneratorInterface.h.

`#include <UVGeneratorInterface.h>`

Inheritance diagram for UVGeneratorNode:
[legend]

List of all members.

## Classes
struct | DimData2
struct | DimData4
| These are utility classes to return n-tuples of unsigned ints.

The documentation for this class was generated from the following file:

- UVlessPainting/UVGeneratorInterface.h

UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode
UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode UVGeneratorNode