2018-10-25 00:19:38 +00:00
|
|
|
#ifndef DUST3D_SKINNED_MESH_CREATOR_H
|
|
|
|
#define DUST3D_SKINNED_MESH_CREATOR_H
|
2018-09-18 03:17:35 +00:00
|
|
|
#include <QMatrix4x4>
|
|
|
|
#include <vector>
|
|
|
|
#include <QVector3D>
|
2018-10-26 23:04:45 +00:00
|
|
|
#include <QColor>
|
2018-09-18 03:17:35 +00:00
|
|
|
#include "meshloader.h"
|
2018-10-25 00:19:38 +00:00
|
|
|
#include "outcome.h"
|
2018-09-18 03:17:35 +00:00
|
|
|
#include "jointnodetree.h"
|
|
|
|
|
|
|
|
class SkinnedMeshCreator
|
|
|
|
{
|
|
|
|
public:
|
2018-10-25 00:19:38 +00:00
|
|
|
SkinnedMeshCreator(const Outcome &outcome,
|
2018-10-26 23:04:45 +00:00
|
|
|
const std::map<int, RiggerVertexWeights> &resultWeights);
|
2018-09-18 03:17:35 +00:00
|
|
|
MeshLoader *createMeshFromTransform(const std::vector<QMatrix4x4> &matricies);
|
|
|
|
private:
|
2018-10-25 00:19:38 +00:00
|
|
|
Outcome m_outcome;
|
2018-10-26 23:04:45 +00:00
|
|
|
std::map<int, RiggerVertexWeights> m_resultWeights;
|
2018-11-17 23:02:12 +00:00
|
|
|
std::vector<std::vector<int>> m_verticesOldIndices;
|
2018-10-26 23:04:45 +00:00
|
|
|
std::vector<std::vector<QVector3D>> m_verticesBindPositions;
|
|
|
|
std::vector<std::vector<QVector3D>> m_verticesBindNormals;
|
|
|
|
std::vector<QColor> m_triangleColors;
|
2018-09-18 03:17:35 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|