AGX Dynamics 2.41.1.2
Loading...
Searching...
No Matches
agxUtil::TextureAtlasGenerator Class Reference

This class will take an input mesh and recompute texture coordinates to fit on a texture atlas. More...

#include <TextureAtlasGenerator.h>

Static Public Member Functions

static bool process (agxCollide::RenderData *renderData)
 From the input data, it will build a texture atlas, recompute texture coordinates to the output data.
 
static bool process (const agx::Vec3Vector &vertices, const agx::Vec3Vector &normals, const agx::UInt32Vector &indices, const agx::Vec2Vector &texCoordinates, agx::Vec3Vector &out_vertices, agx::Vec3Vector &out_normals, agx::UInt32Vector &out_indices, agx::Vec2Vector &out_texCoordinates)
 From the input data, it will build a texture atlas, recompute texture coordinates to the output data.
 

Detailed Description

This class will take an input mesh and recompute texture coordinates to fit on a texture atlas.

It might change the number of vertices/normals and texture coordinates.

Definition at line 30 of file TextureAtlasGenerator.h.

Member Function Documentation

◆ process() [1/2]

static bool agxUtil::TextureAtlasGenerator::process ( agxCollide::RenderData renderData)
static

From the input data, it will build a texture atlas, recompute texture coordinates to the output data.

The number of vertices, normals and texCoordinates must be larger than zero and equal in size.

Parameters
renderData- The data in the object will be read and the recomputed data will be written back into renderData.
Returns
true if the indata and outdata is valid.

◆ process() [2/2]

static bool agxUtil::TextureAtlasGenerator::process ( const agx::Vec3Vector vertices,
const agx::Vec3Vector normals,
const agx::UInt32Vector indices,
const agx::Vec2Vector texCoordinates,
agx::Vec3Vector out_vertices,
agx::Vec3Vector out_normals,
agx::UInt32Vector out_indices,
agx::Vec2Vector out_texCoordinates 
)
static

From the input data, it will build a texture atlas, recompute texture coordinates to the output data.

The number of vertices, normals and texCoordinates must be larger than zero and equal in size. The input vectors (vertices, normals, indices, texCoordinates) must be separate from the output vectors.

Parameters
vertices- Input vertex positions
normals- Input normals
indices- Input indices
texCoordinates- Input texture cordinates
out_vertices- Output vertex positions
out_normals- Output normals
out_indices- Output indices
out_texCoordinates- Output texture cordinates
Returns
true if the indata and outdata is valid.

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