|
AGX Dynamics 2.41.1.2
|
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. | |
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.
|
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.
| renderData | - The data in the object will be read and the recomputed data will be written back into 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. The input vectors (vertices, normals, indices, texCoordinates) must be separate from the output vectors.
| 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 |