mirror of
https://github.com/overte-org/overte.git
synced 2025-04-14 15:07:29 +02:00
Introduce hfm::Shape object
This commit is contained in:
parent
3c35433f86
commit
df5684c437
1 changed files with 17 additions and 0 deletions
|
@ -287,6 +287,21 @@ public:
|
||||||
bool shouldInitCollisions() const { return _collisionsConfig.size() > 0; }
|
bool shouldInitCollisions() const { return _collisionsConfig.size() > 0; }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
class ShapeTransform {
|
||||||
|
std::vector<uint32_t> clusters;
|
||||||
|
Extents meshExtents;
|
||||||
|
Transform modelTransform;
|
||||||
|
};
|
||||||
|
|
||||||
|
// The lightweight model part description.
|
||||||
|
class Shape {
|
||||||
|
public:
|
||||||
|
uint32_t mesh;
|
||||||
|
uint32_t meshPart;
|
||||||
|
uint32_t material;
|
||||||
|
uint32_t shapeTransform;
|
||||||
|
};
|
||||||
|
|
||||||
/// The runtime model format.
|
/// The runtime model format.
|
||||||
class Model {
|
class Model {
|
||||||
public:
|
public:
|
||||||
|
@ -297,6 +312,8 @@ public:
|
||||||
QString author;
|
QString author;
|
||||||
QString applicationName; ///< the name of the application that generated the model
|
QString applicationName; ///< the name of the application that generated the model
|
||||||
|
|
||||||
|
std::vector<Shape> shapes;
|
||||||
|
|
||||||
QVector<Joint> joints;
|
QVector<Joint> joints;
|
||||||
QHash<QString, int> jointIndices; ///< 1-based, so as to more easily detect missing indices
|
QHash<QString, int> jointIndices; ///< 1-based, so as to more easily detect missing indices
|
||||||
bool hasSkeletonJoints;
|
bool hasSkeletonJoints;
|
||||||
|
|
Loading…
Reference in a new issue