- tags are now imported as nodes in the hierarchy

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@344 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
aramis_acg
2009-02-12 16:44:12 +00:00
parent fd9769eae6
commit e6758ce923
3 changed files with 94 additions and 54 deletions

View File

@@ -66,6 +66,7 @@ namespace MD3 {
// common limitations
#define AI_MD3_VERSION 15
#define AI_MD3_MAXQPATH 64
#define AI_MD3_MAXFRAME 16
#define AI_MD3_MAX_FRAMES 1024
#define AI_MD3_MAX_TAGS 16
#define AI_MD3_MAX_SURFACES 32
@@ -126,7 +127,21 @@ struct Header
// ---------------------------------------------------------------------------
struct Frame
{
// no need to define this, we won't need
//! minimum bounds
aiVector3D min;
//! maximum bounds
aiVector3D max;
//! local origin for this frame
aiVector3D origin;
//! radius of bounding sphere
float radius;
//! name of frame
char name[ AI_MD3_MAXFRAME ];
} PACK_STRUCT;
@@ -136,7 +151,13 @@ struct Frame
// ---------------------------------------------------------------------------
struct Tag
{
// no need to define this, we won't need
//! name of the tag
unsigned char NAME[ AI_MD3_MAXQPATH ];
//! Local tag origin and orientation
aiVector3D origin;
float orientation[3][3];
} PACK_STRUCT;