#include <spLightmapGeneratorStructs.hpp>
Public Member Functions | |
SModel (scene::Mesh *ObjMesh, bool DefStayAlone, const std::vector< std::vector< f32 > > &InitTrianglesDensity) | |
~SModel () | |
void | partitionMesh (const dim::size2di &MaxLightmapSize, f32 DefaultDensity) |
void | createAxles () |
void | linkAxisTriangles (const s32 Axis) |
void | buildFaces (scene::Mesh *Mesh, const dim::size2di &MaxLightmapSize) |
Public Attributes | |
scene::Mesh * | Mesh |
SAxisData | Axles [6] |
f32 | DefaultDensity |
dim::matrix4f | Matrix |
dim::matrix4f | MatrixInv |
dim::matrix4f | NormalMatrix |
bool | StayAlone |
std::vector< std::vector< f32 > > | TrianglesDensity |
std::vector< std::vector < STriangle * > > | Triangles |
sp::tool::LightmapGen::SModel::SModel | ( | scene::Mesh * | ObjMesh, | |
bool | DefStayAlone, | |||
const std::vector< std::vector< f32 > > & | InitTrianglesDensity | |||
) |
sp::tool::LightmapGen::SModel::~SModel | ( | ) |
void sp::tool::LightmapGen::SModel::buildFaces | ( | scene::Mesh * | Mesh, | |
const dim::size2di & | MaxLightmapSize | |||
) |
void sp::tool::LightmapGen::SModel::createAxles | ( | ) |
void sp::tool::LightmapGen::SModel::linkAxisTriangles | ( | const s32 | Axis | ) |
void sp::tool::LightmapGen::SModel::partitionMesh | ( | const dim::size2di & | MaxLightmapSize, | |
f32 | DefaultDensity | |||
) |
std::vector< std::vector<STriangle*> > sp::tool::LightmapGen::SModel::Triangles |
std::vector< std::vector<f32> > sp::tool::LightmapGen::SModel::TrianglesDensity |